You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/commands/dev.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ agent-cli dev new [BRANCH] [OPTIONS]
84
84
|`--branch-name-timeout`|`20.0`| Timeout in seconds for AI branch naming command |
85
85
|`--direnv/--no-direnv`| - | Generate .envrc based on project type and run 'direnv allow'. Auto-enabled if direnv is installed |
86
86
|`--agent-args`| - | Extra CLI args for the agent. Can be repeated. Example: --agent-args='--dangerously-skip-permissions' |
87
-
|`--prompt, -p`| - | Initial task for the AI agent. Saved to .claude/TASK.md. Implies --agent. Example: --prompt='Fix the login bug' |
87
+
|`--prompt, -p`| - | Initial task for the AI agent. Saved to a unique file in .claude/ to avoid conflicts. Implies --agent. Example: --prompt='Fix the login bug' |
88
88
|`--prompt-file, -P`| - | Read the agent prompt from a file. Useful for long prompts to avoid shell quoting. Implies --agent |
89
89
|`--multiplexer, -m`| - | Launch the agent in a specific multiplexer. Currently supported: tmux. When started outside tmux, creates or reuses a detached session and reports the pane handle |
90
90
|`--hooks/--no-hooks`|`true`| Run built-in agent preparation (like Codex auto-trust) and configured pre-launch hooks before starting the agent |
@@ -292,8 +292,9 @@ agent-cli dev agent NAME [--agent/-a AGENT] [--agent-args ARGS] [--prompt/-p PRO
292
292
| Option | Default | Description |
293
293
|--------|---------|-------------|
294
294
|`--agent, -a`| - | Which agent: claude, codex, gemini, aider, copilot, cn, opencode, cursor-agent. Auto-detects if omitted |
295
+
|`--with-agent`| - |[Deprecated: use --agent/-a] Which agent to start |
295
296
|`--agent-args`| - | Extra CLI args for the agent. Example: --agent-args='--dangerously-skip-permissions' |
296
-
|`--prompt, -p`| - | Initial task for the agent. Saved to .claude/TASK.md. Example: --prompt='Add unit tests for auth' |
297
+
|`--prompt, -p`| - | Initial task for the agent. Saved to a unique file in .claude/ to avoid conflicts. Example: --prompt='Add unit tests for auth' |
297
298
|`--prompt-file, -P`| - | Read the agent prompt from a file instead of command line |
298
299
|`--multiplexer, -m`| - | Launch the agent in a specific multiplexer instead of the current terminal. Currently supported: tmux |
299
300
|`--hooks/--no-hooks`|`true`| Run built-in agent preparation (like Codex auto-trust) and configured pre-launch hooks before starting the agent |
@@ -775,7 +776,7 @@ for section in 1 2 3 4; do
775
776
done
776
777
```
777
778
778
-
If multiple agents share one worktree, do not have them all write to `.claude/REPORT.md` because they will overwrite each other. Instead, assign unique report paths such as `.claude/REPORT-security-<run-id>.md` and `.claude/REPORT-tests-<run-id>.md`. If you rerun the same prompt repeatedly, use a timestamp or other run id so later runs do not replace earlier results. The same applies to `.claude/TASK.md`: it reflects the most recent launch, not stable per-agent state.
779
+
If multiple agents share one worktree, do not have them all write to `.claude/REPORT.md` because they will overwrite each other. Instead, assign unique report paths such as `.claude/REPORT-security-<run-id>.md` and `.claude/REPORT-tests-<run-id>.md`. If you rerun the same prompt repeatedly, use a timestamp or other run id so later runs do not replace earlier results. Each agent launch also gets its own `.claude/TASK-{timestamp}-{hex}.md` file, so prompt files no longer overwrite each other.
0 commit comments