Repository navigation
docs: --help documents the CLI for agents - #48
Merged
Merged
Conversation
|
Claude finished @alukach's task in 11s —— View job ✅ No blocking issues — safe to merge. I read the diff and checked that
Simplify (ponytail)
💰 Estimated review cost: $0.11 · 0m10s · 5 turns |
alukach
force-pushed
the
docs/help-for-agents
branch
from
October 15, 2026 05:52
b9ecea4 to
786e300
Compare
Every command and argument has a help line (checked by a test), product commands show examples, and `source-coop --help` ends with a summary for scripts and agents: --json, prompts, exit codes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
alukach
force-pushed
the
docs/help-for-agents
branch
from
October 15, 2026 05:55
786e300 to
88365a3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #47.
Agents learn a CLI from
--help, which always matches the installed version, so this makes it complete enough to use on its own.--titleand--descriptiononproduct create/editnow have help lines. A new test,every_command_and_argument_has_help, fails on any command or argument without one.source-coop --helpends with a "For scripts and agents" block (FOR_SCRIPTSinsrc/main.rs) covering--jsonand the error shape, running without prompts (SOURCE_PROMPT_DISABLED,-F -,--yes),SOURCE_TOKEN, and exit codes.-hstays short.productsubcommand's help.llms.txtshould point to--helprather than copy flags.--helpcarries this summary.Checked with
cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo testandcargo test --features staging.🤖 Generated with Claude Code