45+ tips for getting the most out of Claude Code, from basics to advanced - includes a custom status line script and Claude Code running itself in a container. Also includes the dx plugin: skills for everyday dev workflows.
This repository collects 43 practical tips for working with Claude Code, the CLI-based agentic coding tool from Anthropic, organized from introductory concepts to advanced workflows. Topics covered include managing context window usage with proactive compaction, using Git worktrees for parallel branch work, running Claude Code inside containers for long-running or risky tasks, spawning background subagents, applying test-driven development, and conducting interactive pull request reviews. A standout inclusion is a customizable status line script that displays the active model, current directory, git branch, uncommitted file count, token usage as a progress bar, and the last message sent, available in ten color themes. The collection also covers CLAUDE.md configuration, the difference between skills, slash commands, and plugins, and includes installation instructions for the dx plugin. Developers using Claude Code daily will find the most value, particularly those looking to structure multi-agent workflows, manage context limits, and tighten their agentic coding habits.
- ✓Actively maintained (<30d)
- ✓Healthy fork ratio
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
- !Licence file present but not machine-readable
git clone https://github.com/ykdojo/claude-code-tips && cp claude-code-tips/*.md ~/.claude/agents/10 items in this repository
Clone the current conversation so the user can branch off and try a different approach.
Clone the later half of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
Write or update a handoff document so the next agent with fresh context can continue this work.
Fetch content from Reddit via its JSON API using a browser session (DuckDuckGo-hop unlock). Use when accessing Reddit URLs, researching topics on Reddit, or when Reddit returns 403/blocked errors.
Fetch and summarize Hacker News / hckrnews.com top stories, articles, and their comment threads. Use when asked to summarize HN front-page stories, a specific HN story plus its discussion, or "the top N from hckrnews".
Recommend which Claude Code version to run, or whether to update. Use when asked which Claude Code version is best/safe, whether to update now, whether a recent release is buggy, or what changed since the installed version.
Full-text search across all of the user's GitHub repos (including private ones) using a local mirror and ripgrep. Use for "where did I put X", "which repo has X", or any search spanning the user's repos - gh search code / the REST API cannot reliably search private repos.
Clone the last quarter of the current conversation, discarding earlier context to reduce token usage while preserving recent work.
Subagents overview
# 45+ Claude Code Tips: From Basics to Advanced
Here are my tips for getting the most out of Claude Code, including a custom status line script and Claude Code running itself in a container. Also includes the [dx plugin](#tip-44-install-the-dx-plugin): skills for everyday dev workflows.
📺 [Quick demo](https://www.youtube.com/watch?v=hiISl558JGE) - See some of these tips in action with a multi-Claude workflow and voice input:
[](https://www.youtube.com/watch?v=hiISl558JGE)
<!-- TOC -->
## Table of Contents
- [Tip 0: Customize your status line](#tip-0-customize-your-status-line)
- [Tip 1: Learn a few essential slash commands](#tip-1-learn-a-few-essential-slash-commands)
- [Tip 2: Talk to Claude Code with your voice](#tip-2-talk-to-claude-code-with-your-voice)
- [Tip 3: Break down large problems into smaller ones](#tip-3-break-down-large-problems-into-smaller-ones)
- [Tip 4: Using Git and GitHub CLI like a pro](#tip-4-using-git-and-github-cli-like-a-pro)
- [Tip 5: AI context is like milk; it's best served fresh and condensed!](#tip-5-ai-context-is-like-milk-its-best-served-fresh-and-condensed)
- [Tip 6: Getting output out of your terminal](#tip-6-getting-output-out-of-your-terminal)
- [Tip 7: Set up terminal aliases for quick access](#tip-7-set-up-terminal-aliases-for-quick-access)
- [Tip 8: Proactively compact your context](#tip-8-proactively-compact-your-context)
- [Tip 9: Complete the write-test cycle for autonomous tasks](#tip-9-complete-the-write-test-cycle-for-autonomous-tasks)
- [Tip 10: Cmd+A and Ctrl+A are your friends](#tip-10-cmda-and-ctrla-are-your-friends)
- [Tip 11: Invest in your own workflow](#tip-11-invest-in-your-own-workflow)
- [Tip 12: Search through your conversation history](#tip-12-search-through-your-conversation-history)
- [Tip 13: Multitasking with terminal tabs](#tip-13-multitasking-with-terminal-tabs)
- [Tip 14: Git worktrees for parallel branch work](#tip-14-git-worktrees-for-parallel-branch-work)
- [Tip 15: Manual exponential backoff for long-running jobs](#tip-15-manual-exponential-backoff-for-long-running-jobs)
- [Tip 16: Claude Code as a writing assistant](#tip-16-claude-code-as-a-writing-assistant)
- [Tip 17: Markdown is the s**t](#tip-17-markdown-is-the-st)
- [Tip 18: Preserve links when pasting](#tip-18-preserve-links-when-pasting)
- [Tip 19: Isolated environments for long-running risky tasks](#tip-19-isolated-environments-for-long-running-risky-tasks)
- [Tip 20: The best way to get better at using Claude Code is by using it](#tip-20-the-best-way-to-get-better-at-using-claude-code-is-by-using-it)
- [Tip 21: Fork and half-clone conversations](#tip-21-fork-and-half-clone-conversations)
- [Tip 22: Use realpath to get absolute paths](#tip-22-use-realpath-to-get-absolute-paths)
- [Tip 23: Understanding CLAUDE.md vs Skills vs Slash Commands vs Plugins](#tip-23-understanding-claudemd-vs-skills-vs-slash-commands-vs-plugins)
- [Tip 24: Interactive PR reviews](#tip-24-interactive-pr-reviews)
- [Tip 25: Claude Code as a research tool](#tip-25-claude-code-as-a-research-tool)
- [Tip 26: Mastering different ways of verifying its output](#tip-26-mastering-different-ways-of-verifying-its-output)
- [Tip 27: Claude Code as a DevOps engineer](#tip-27-claude-code-as-a-devops-engineer)
- [Tip 28: Keep CLAUDE.md simple and review it periodically](#tip-28-keep-claudemd-simple-and-review-it-periodically)
- [Tip 29: Claude Code as the universal interface](#tip-29-claude-code-as-the-universal-interface)
- [Tip 30: It's all about choosing the right level of abstraction](#tip-30-its-all-about-choosing-the-right-level-of-abstraction)
- [Tip 31: Use auto mode](#tip-31-use-auto-mode)
- [Tip 32: Control Claude Code from your phone](#tip-32-control-claude-code-from-your-phone)
- [Tip 33: Learn to use artifacts](#tip-33-learn-to-use-artifacts)
- [Tip 34: Write lots of tests (and use TDD)](#tip-34-write-lots-of-tests-and-use-tdd)
- [Tip 35: Be braver in the unknown; iterative problem solving](#tip-35-be-braver-in-the-unknown-iterative-problem-solving)
- [Tip 36: Running bash commands and subagents in the background](#tip-36-running-bash-commands-and-subagents-in-the-background)
- [Tip 37: The era of personalized software is here](#tip-37-the-era-of-personalized-software-is-here)
- [Tip 38: Navigating and editing your input box](#tip-38-navigating-and-editing-your-input-box)
- [Tip 39: Spend some time planning, but also prototype quickly](#tip-39-spend-some-time-planning-but-also-prototype-quickly)
- [Tip 40: Simplify overcomplicated code](#tip-40-simplify-overcomplicated-code)
- [Tip 41: Automation of automation](#tip-41-automation-of-automation)
- [Tip 42: Share your knowledge and contribute where you can](#tip-42-share-your-knowledge-and-contribute-where-you-can)
- [Tip 43: Keep learning!](#tip-43-keep-learning)
- [Tip 44: Install the dx plugin](#tip-44-install-the-dx-plugin)
- [Tip 45: Quick setup script](#tip-45-quick-setup-script)
- [Tip 46: Switch between multiple Claude accounts](#tip-46-switch-between-multiple-claude-accounts)
- [Tip 47: Use GitHub as your knowledge base](#tip-47-use-github-as-your-knowledge-base)
- [Tip 48: Learn to review code through a TESTING.md document](#tip-48-learn-to-review-code-through-a-testingmd-document)
- [Tip 49: Turn on the concise output style](#tip-49-turn-on-the-concise-output-style)
<!-- /TOC -->
## Tip 0: Customize your status line
You can customize the status line at the bottom of Claude Code to show useful info. I set mine up to show the model, current directory, git branch (if any), uncommitted file count, sync status with origin, and a visual progress bar for token usage. It also shows a second line with my last message so I can see what the conversation was about:
```
Opus 4.5 | 📁claude-code-tips | 🔀main (scripts/context-bar.sh uncommitted, synced 12m ago) | ██░░░░░░░░ 18% of 200k tokens
💬 This is good. I don't think we need to change the documentation as long as we don't say that the default color is orange el...
```
This is especially helpful for keeping an eye on your context usage and remembering what you were working on. The script also supports 10 color themes (orange, blue, teal, green, lavender, rose, gold, slate, cyan, or gray).

To set this up, you can use [this sample script](scripts/context-bar.sh) and check the [setup instructions](scripts/README.md).
## Tip 1: Learn a few essential slash commands
There are a bunch of built-in slash commands (type `/` to see them all). Here are a few worth knowing:
### /usage
Check your rate limits:
```
Current session
█████████▌ 19% used
Resets 5:39pm (America/Vancouver)
Current week (all models)
██▌ 5% used
Resets Sep 6 at 9:59am (America/Vancouver)
Current week (Fable)
█████ 10% used
Resets Sep 6 at 9:59am (America/Vancouver)
```
If you want to watch your usage closely, keep it open in a tab and use Tab then Shift+Tab or ← then → to refresh.
### /chrome
Manage Claude's native browser integration:
```
Status: Disabled
Extension: Installed
❯ Manage permissions
Reconnect extension
Enabled by default: No
Usage: claude --chrome or claude --no-chrome
```
### /mcp
Manage MCP (Model Context Protocol) servers:
```
Manage MCP servers
3 servers
User MCPs (/Users/ykdojo/.claude.json)
❯ playwright · ✔ connected · 24 tools
claude.ai
→ Show unused connectors (1)
Built-in MCPs (always available)
computer-use · ◯ disabled
```
### /stats
View your usage statistics with a GitHub-style activity graph:
```
Sep Oct Nov Dec Jan Feb Mar Apr May Jun Jul Aug
················································▒▒▓▓
Mon ················································▒▓█
················································██░
Wed ················································▒░░
···············································█░▒█
Fri ···············································░▒·█
···············································▓▓▓░
Less ░ ▒ ▓ █ More
Favorite model: Fable 5 Total tokens: 755.6m
Sessions: 157 Longest session: 16h 45m 11s
Active days: 24/26 Longest streak: 15 days
Most active day: Aug 27 Current streak: 9 days
Your input and output are ~12x the tokens in Moby-Dick
```
### /clear
Clear the conversation and start fresh.
## Tip 2: Talk to Claude Code with your voice
I found that you can communicate much faster with your voice than typing with your hands. Using a voice transcription system on your local machine is really helpful for this.
On my Mac, I've tried a few different options:
- [superwhisper](https://superwhisper.com/)
- [MacWhisper](https://goodsnooze.gumroad.com/l/macwhisper)
- [Super Voice Assistant](https://github.com/ykdojo/super-voice-assistant) (open source, supports Parakeet v2/v3)
You can get more accuracy by using a hosted service, but I found that a local model is strong enough for this purpose. Even when there are mistakes or typos in the transcription, Claude is smart enough to understand what you're trying to say. Sometimes you need to say certain things extra clearly, but overall local models work well enough.
For example, in this screenshot you can see that Claude was able to interpret mistranscribed words like "ExcelElanishMark" and "advast" correctly as "exclamation mark" and "Advanced":

I think the best way to think about this is like you're trying to communicate with your friend. Of course, you can communicate through texts. That might be easier for some people, or emails, right? That's totally fine. That's what most people seem to do with Claude Code. But if you want to communicate faster, why wouWhat people ask about claude-code-tips
What is ykdojo/claude-code-tips?
+
ykdojo/claude-code-tips is subagents for the Claude AI ecosystem. 45+ tips for getting the most out of Claude Code, from basics to advanced - includes a custom status line script and Claude Code running itself in a container. Also includes the dx plugin: skills for everyday dev workflows. It has 10.1k GitHub stars and its last recorded update is dated 2026-09-02.
How do I install claude-code-tips?
+
You can install claude-code-tips by cloning the repository (https://github.com/ykdojo/claude-code-tips) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is ykdojo/claude-code-tips safe to use?
+
Our security agent has analyzed ykdojo/claude-code-tips and assigned a Trust Score of 90/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains ykdojo/claude-code-tips?
+
ykdojo/claude-code-tips is maintained by ykdojo. The last recorded GitHub activity is dated 2026-09-02, with 4 open issues.
Are there alternatives to claude-code-tips?
+
Yes. On ClaudeWave you can browse similar subagents at /categories/agents, sorted by popularity or recent activity.
Deploy claude-code-tips to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/ykdojo-claude-code-tips)<a href="https://claudewave.com/repo/ykdojo-claude-code-tips"><img src="https://claudewave.com/api/badge/ykdojo-claude-code-tips" alt="Featured on ClaudeWave: ykdojo/claude-code-tips" width="320" height="64" /></a>More Subagents
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
The agent that grows with you
Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
The agent engineering platform.
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.