Skip to content

Add LLM-optimized --help output#13

Merged
JohanLorenzo merged 1 commit into
mozilla:mainfrom
JohanLorenzo:llm-help
May 27, 2026
Merged

Add LLM-optimized --help output#13
JohanLorenzo merged 1 commit into
mozilla:mainfrom
JohanLorenzo:llm-help

Conversation

@JohanLorenzo

Copy link
Copy Markdown
Collaborator

Summary

  • When running inside a Claude Code session or other LLM environments (detected via CLAUDECODE, CODEX_SANDBOX, GEMINI_CLI, OPENCODE), --help prints a compact 16-line reference instead of the standard clap output.
  • Follows the pattern from searchfox-cli.

Merge order

  1. Fix git subprocess isolation in init #12 (fix-init-git-isolation) — no dependency
  2. This PR — depends on Fix git subprocess isolation in init #12

Verification

CLAUDECODE=1 stmo-cli --help outputs the compact reference. Standard stmo-cli --help (without env var) shows normal clap output unchanged. All 66 tests pass.

@JohanLorenzo JohanLorenzo marked this pull request as ready for review May 27, 2026 09:58
@JohanLorenzo JohanLorenzo merged commit 75db67c into mozilla:main May 27, 2026
6 checks passed
@JohanLorenzo JohanLorenzo deleted the llm-help branch May 27, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant