docs(skill): document agent-deck try (scratch sessions) in SKILL.md - #1798
docs(skill): document agent-deck try (scratch sessions) in SKILL.md#1798tarekrached wants to merge 1 commit into
Conversation
The try command is absent from the skill, so agents rediscover it from --help every time a user asks for a scratch playground — including whether its base directory is configurable (it is: [experiments] directory), which matters on machines that only trust specific roots for agent workspaces. Also corrects the sandbox.md example that showed try taking a prompt string; the argument is an experiment name. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (2)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
👋 Thanks for the contribution — intake looks complete. Your PR body carries everything the maintainer's validation pipeline reads first: the problem, the reasoning, the human intent behind it, and an AI-disclosure. It will be applied, built, and tested against gate marker read: ai= |
What problem does this solve?
agent-deck tryis absent from the main skill, so every time a user asks their agent for a scratch playground the agent rediscovers the command from--help— including the question that actually matters on locked-down machines: whether the experiments directory is configurable (it is:[experiments] directory). Worse, the one place the skill does showtry—references/sandbox.md— shows it taking a prompt string (agent-deck try "refactor the auth module"), but the argument is an experiment name (try_cmd.go: fuzzy-matched against existing experiment folders), so the example teaches agents the wrong mental model.Why this change
Docs-only:
agent-deck try)" section inskills/agent-deck/SKILL.md: find-or-create semantics, fuzzy matching,--list/--no-session/-c/--sandbox, the[experiments]config block (directory / date_prefix / default_tool), and the "plain folder, not a git repo" note.sandbox.mdexample to use an experiment name and point at the new section.All claims verified against
cmd/agent-deck/try_cmd.goandinternal/experiments/experiments.goon main (see Evidence).User impact
Agents answer "spin up a scratch session" correctly on the first try, including redirecting the experiments dir on machines that only trust specific workspace roots. No behavior change; no code touched.
Evidence
Verified against the implementation on
main:cmd/agent-deck/try_cmd.go— usage says "Experiment name (fuzzy matched against existing experiments)"; flags--list/-l,--no-session,--sandbox,-c/--cmd; config help prints the[experiments]block.internal/session/userconfig.goGetExperimentsSettings()— default directory~/src/tries,[experiments].directoryhonored withExpandPath.internal/experiments/experiments.go— folder creation isos.MkdirAllonly (nogit init), supporting the "plain folder" note.agent-deck try auth-refactor --sandboxmatches the real flag set (--sandboxis atryflag).Real-usage provenance: in my own Claude Code transcripts (2026-07-22), an agent driving agent-deck was instructed to "skip
agent-deck tryif its path isn't configurable" — a question the skill couldn't answer, so the agent worked around the command instead of configuring it.Docs-only diff — no test changes; revert-check not applicable.
AI disclosure
Model(s), if AI helped: claude-fable-5
Prompt / session log (optional): —
What actually bothered you
My human asked: "I'm surprised how much is being rediscovered every time agent-deck gets invoked by an agent."
Checklist
HOME=$(mktemp -d) XDG_CONFIG_HOME= XDG_DATA_HOME= XDG_CACHE_HOME= go test ./...— not run: docs-only diff, no Go changes (self-check: go-checks skipped)