-
Notifications
You must be signed in to change notification settings - Fork 88
feat: v1.3.0 — Claude Code 2.1.49 productivity improvements #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/claude-code-settings.json", | ||
| "permissions": { | ||
| "allow": [ | ||
| "Bash(npm run lint)", | ||
| "Bash(npm run typecheck)", | ||
| "Bash(npm test)", | ||
| "Bash(npm test -- *)", | ||
| "Bash(pnpm run lint)", | ||
| "Bash(pnpm run typecheck)", | ||
| "Bash(pnpm test)", | ||
| "Bash(pnpm test -- *)", | ||
| "Bash(yarn lint)", | ||
| "Bash(yarn typecheck)", | ||
| "Bash(yarn test)", | ||
| "Bash(yarn test -- *)", | ||
| "Bash(pytest)", | ||
| "Bash(pytest *)", | ||
| "Bash(go test ./...)", | ||
| "Bash(go test *)", | ||
| "Bash(git worktree *)", | ||
| "Bash(git status)", | ||
| "Bash(git diff *)", | ||
| "Bash(git log *)" | ||
| ] | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -15,6 +15,7 @@ Learn Claude Code best practices and capture lessons into persistent memory. | |||||||||||
| - Context window is finite (200k tokens). Use `/context` to check usage. | ||||||||||||
| - Use `/compact` at task boundaries — after planning, after a feature, when >70%. | ||||||||||||
| - Don't compact mid-task. You lose working context. | ||||||||||||
| - Plan mode now survives compaction (fixed in 2.1.49). | ||||||||||||
| - **Docs:** https://code.claude.com/docs/common-workflows | ||||||||||||
| - **Pattern:** Context Discipline (Pattern 7) | ||||||||||||
|
|
||||||||||||
|
|
@@ -30,6 +31,7 @@ Learn Claude Code best practices and capture lessons into persistent memory. | |||||||||||
| - **Normal** — Claude asks before edits (default) | ||||||||||||
| - **Auto-Accept** — Claude edits without asking (trusted iteration) | ||||||||||||
| - **Plan** — Research first, then propose plan (complex tasks) | ||||||||||||
| - **Simple** — Bash + Edit tools only (lightweight, no extra overhead) | ||||||||||||
| - Use Plan mode when: >3 files, architecture decisions, multiple approaches, unclear requirements. | ||||||||||||
| - Toggle with `Shift+Tab`. | ||||||||||||
| - **Docs:** https://code.claude.com/docs/common-workflows | ||||||||||||
|
|
@@ -38,21 +40,30 @@ Learn Claude Code best practices and capture lessons into persistent memory. | |||||||||||
| ### CLI Shortcuts | ||||||||||||
| | Shortcut | Action | | ||||||||||||
| |----------|--------| | ||||||||||||
| | `Shift+Tab` | Cycle modes (Normal/Auto-Accept/Plan/Delegate) | | ||||||||||||
| | `Shift+Tab` | Cycle modes (Normal/Auto-Accept/Plan) | | ||||||||||||
| | `Ctrl+L` | Clear screen | | ||||||||||||
| | `Ctrl+C` | Cancel generation | | ||||||||||||
| | `Ctrl+B` | Run task in background | | ||||||||||||
| | `Ctrl+F` | Kill all background agents (two-press confirmation) | | ||||||||||||
| | `Ctrl+T` | Toggle task list (agent teams) | | ||||||||||||
| | `Shift+Up/Down` | Navigate teammates (agent teams) | | ||||||||||||
| | `Shift+Down` | Navigate teammates (wraps around) | | ||||||||||||
| | `Up/Down` | Prompt history | | ||||||||||||
| | `/compact` | Compact context | | ||||||||||||
| | `/context` | Check context usage | | ||||||||||||
| | `/clear` | Clear conversation | | ||||||||||||
| | `/agents` | Manage subagents | | ||||||||||||
| | `/model` | Switch models | | ||||||||||||
| | `/commit` | Smart commit with quality gates | | ||||||||||||
| | `/insights` | Session analytics and patterns | | ||||||||||||
| - **Docs:** https://code.claude.com/docs/cli-reference | ||||||||||||
|
Comment on lines
57
to
58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix markdownlint MD058: add a blank line after the CLI shortcuts table. The static analysis tool reports that the table ending at line 57 is not followed by a blank line before the 🔧 Proposed fix | `/insights` | Session analytics and patterns |
+
- **Docs:** https://code.claude.com/docs/cli-reference📝 Committable suggestion
Suggested change
🧰 Tools🪛 markdownlint-cli2 (0.21.0)[warning] 57-57: Tables should be surrounded by blank lines (MD058, blanks-around-tables) 🤖 Prompt for AI Agents |
||||||||||||
|
|
||||||||||||
| ### Worktrees | ||||||||||||
| Native worktree support (2.1.49+): | ||||||||||||
| ```bash | ||||||||||||
| claude --worktree # or claude -w | ||||||||||||
| ``` | ||||||||||||
| Creates an isolated git worktree automatically. Subagents support `isolation: worktree` in frontmatter. | ||||||||||||
|
|
||||||||||||
| ### Prompting | ||||||||||||
| Good prompts have four parts: | ||||||||||||
| 1. **Scope** — What files/area to work in | ||||||||||||
|
|
@@ -81,8 +92,11 @@ Subagents run in separate context windows for parallel work. | |||||||||||
| - Use for: parallel exploration, background tasks, independent research. | ||||||||||||
| - Avoid for: single-file reads, tasks needing conversation context. | ||||||||||||
| - Press `Ctrl+B` to send tasks to background. | ||||||||||||
| - Press `Ctrl+F` to kill all background agents (two-press confirmation). | ||||||||||||
| - ESC cancels the main thread only; background agents keep running. | ||||||||||||
| - Create custom subagents in `.claude/agents/` (project) or `~/.claude/agents/` (user). | ||||||||||||
| - Subagents support: custom tools, permission modes, persistent memory, hooks, and skill preloading. | ||||||||||||
| - Subagents support: custom tools, permission modes, persistent memory, hooks, skill preloading, and **worktree isolation**. | ||||||||||||
| - Agent definitions support `background: true` to always run as background tasks. | ||||||||||||
| - Built-in subagents: Explore (fast read-only), Plan (research), general-purpose (multi-step). | ||||||||||||
| - Use `/agents` to manage subagents interactively. | ||||||||||||
| - **Docs:** https://code.claude.com/docs/sub-agents | ||||||||||||
|
|
@@ -94,8 +108,8 @@ Coordinate multiple Claude Code instances working together as a team. | |||||||||||
| - One lead session coordinates, teammates work independently with their own context windows. | ||||||||||||
| - Teammates can message each other directly (unlike subagents which only report back). | ||||||||||||
| - Shared task list with self-coordination and dependency management. | ||||||||||||
| - Display modes: in-process (Shift+Up/Down to navigate) or split panes (tmux/iTerm2). | ||||||||||||
| - Delegate mode (Shift+Tab): restricts lead to coordination only. | ||||||||||||
| - Display modes: in-process (`Shift+Down` to navigate, wraps around) or split panes (tmux/iTerm2). | ||||||||||||
| - Delegate mode (`Shift+Tab`): restricts lead to coordination only. | ||||||||||||
| - Best for: parallel code review, competing hypotheses debugging, cross-layer changes, research. | ||||||||||||
| - Avoid for: sequential tasks, same-file edits, simple operations. | ||||||||||||
| - **Docs:** https://code.claude.com/docs/agent-teams | ||||||||||||
|
|
@@ -104,21 +118,35 @@ Coordinate multiple Claude Code instances working together as a team. | |||||||||||
| Claude calibrates reasoning depth to each task automatically. | ||||||||||||
| - Lightweight tasks get quick responses, complex tasks get deep analysis. | ||||||||||||
| - No configuration needed - works out of the box with Opus 4.6. | ||||||||||||
| - Extended thinking is built-in — no need to toggle a separate mode. | ||||||||||||
|
|
||||||||||||
| ### Model Selection | ||||||||||||
| - **Sonnet 4.5 with 1M context has been retired** — switch to Sonnet 4.6 (now has 1M context) via `/model`. | ||||||||||||
| - Opus 4.6 has adaptive thinking built-in. | ||||||||||||
| - Use Haiku 4.5 for quick, read-only exploration subagents. | ||||||||||||
|
|
||||||||||||
| ### Context Compaction | ||||||||||||
| Keeps long-running agents from hitting context limits. | ||||||||||||
| - Auto-compacts at ~95% capacity (configurable via `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`). | ||||||||||||
| - Compact manually at task boundaries with `/compact`. | ||||||||||||
| - Custom subagents support auto-compaction independently. | ||||||||||||
| - Use PreCompact hooks to save state before compaction. | ||||||||||||
| - Plan mode now survives compaction (2.1.49 fix). | ||||||||||||
|
|
||||||||||||
| ### Hooks | ||||||||||||
| Hooks run scripts on events to automate quality enforcement. | ||||||||||||
| - Types: PreToolUse, PostToolUse, SessionStart, SessionEnd, Stop, UserPromptSubmit, PreCompact, SubagentStart, SubagentStop | ||||||||||||
| - Pro-Workflow ships hooks for edit tracking, quality gates, and learning capture. | ||||||||||||
| - Types: PreToolUse, PostToolUse, SessionStart, SessionEnd, Stop, UserPromptSubmit, PreCompact, SubagentStart, SubagentStop, **ConfigChange**, Notification | ||||||||||||
| - **ConfigChange** (2.1.49+): fires when settings files change mid-session — useful for security auditing. | ||||||||||||
| - **Stop hook** now receives `last_assistant_message` for context-aware reminders. | ||||||||||||
| - Pro-Workflow ships hooks for edit tracking, quality gates, config monitoring, and learning capture. | ||||||||||||
| - Subagent hooks: define in frontmatter or settings.json for lifecycle events. | ||||||||||||
| - **Docs:** https://code.claude.com/docs/hooks | ||||||||||||
|
|
||||||||||||
| ### Plugins | ||||||||||||
| - Plugins can ship `settings.json` for default permission configuration (2.1.49+). | ||||||||||||
| - Pro-Workflow ships default permissions for quality gate commands (lint, test, typecheck). | ||||||||||||
| - **Docs:** https://code.claude.com/docs/plugins | ||||||||||||
|
|
||||||||||||
| ### Security | ||||||||||||
| - Review permission requests carefully. | ||||||||||||
| - Don't auto-approve shell commands you don't understand. | ||||||||||||
|
|
@@ -130,6 +158,7 @@ Hooks run scripts on events to automate quality enforcement. | |||||||||||
| - Keep <10 MCPs enabled, <80 tools total. | ||||||||||||
| - Disable MCPs you're not actively using. | ||||||||||||
| - Each MCP adds context overhead. | ||||||||||||
| - MCP auth failures are now cached to avoid repeated connection attempts. | ||||||||||||
| - **Docs:** https://code.claude.com/docs/mcp | ||||||||||||
|
|
||||||||||||
| ### Integration | ||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Bash(git worktree *)"pre-approves all worktree subcommands, including destructive ones.The wildcard permits
git worktree add <arbitrary-path>,git worktree remove, andgit worktree prune --expire nowwithout user confirmation. This is intentional for the parallel-worktrees workflow, but consumers of this template who don't use native worktrees may want to scope it to justgit worktree listandgit worktree add. Worth documenting the intentional breadth in a comment or the README so adopters can make an informed choice.🤖 Prompt for AI Agents