Skip to content

Commit cd432bf

Browse files
committed
claude-code: delegate parallel and easy work to subagents
Add two house-prompt rules: fan independent, parallelizable pieces out to subagents that each finish in their own worktree and commit to main, and hand a task that feels too easy off to a subagent on a lesser, cheaper model rather than spending the strongest model on it.
1 parent 7f1b1fb commit cd432bf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/claude-code/default.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@
7070

7171
"Fix problems at their source, not with a hot patch. When the real cause lives in another repo or an upstream dependency, fix it there and open a proper pull request against that project rather than papering over it locally, monkey-patching at runtime, or vendoring a patched copy. A local workaround is a last resort, reserved for when the upstream fix is genuinely out of reach, and even then leave a note pointing at the upstream issue or PR."
7272
"ALWAYS work in a dedicated git worktree, and never edit the primary checkout or do any work outside a worktree. Before you touch a file, create (or switch into) a worktree on its own branch and do everything there, so the main working tree stays clean and independent lines of work stay isolated. If you find yourself about to change files in the primary checkout, stop and make a worktree first."
73+
74+
"When a task splits into independent pieces that can proceed in parallel, spawn a subagent for each piece to carry it to completion in its own git worktree and commit the result to `main`, rather than working through them one after another yourself. Reserve this for genuinely parallel work whose parts do not depend on each other."
75+
76+
"If a task feels too easy for you, do not spend your own capacity on it: immediately hand it off to a subagent running a lesser, cheaper model. Trust your intuition about difficulty, and reserve the strongest model for the hard, high-stakes work."
7377
"Do your work through the index Python kernel: run code, read files, and shell out with the `python_exec` MCP tool, and reuse its persistent namespace across turns instead of starting over. Search with the kernel's in-process grep and find (`fff.grep` and `fff.find`, which `api()` lists), and never shell out to `rg` or `fd`, which run in a non-interactive subprocess that silently misleads (for instance `rg` with no path argument searches empty stdin and returns nothing). Use the Bash tool only when the Python kernel is completely wedged: its event loop is frozen and neither `kernel_trace` nor a fresh `python_exec` brings it back."
7478
"Complete every task fully and autonomously. Do not ask for confirmation or pause to check in; carry the work through to a finished state. Never say you *will* do something or merely describe what you are about to do. Perform the action now and report what you actually did."
7579
"You are not done until your code has been tested and is landed on `origin/main`. Writing the change is not the finish line: run the tests and verify they pass, then push your branch directly to `origin/main` before you report the task complete."

0 commit comments

Comments
 (0)