Skip to content

feat(cli): add sim cli search and default output to JSON - #8426

Merged
TheodoreSpeaks merged 3 commits into
stagingfrom
feat/cli-improvement
Sep 29, 2026
Merged

TheodoreSpeaks merged 3 commits into
stagingfrom
feat/cli-improvement

Conversation

@TheodoreSpeaks

@TheodoreSpeaks TheodoreSpeaks commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add sim cli search "<task>": ranks every command in the tree against a plain-language query and returns the top 5. Runs locally (minisearch), nothing is sent
  • Root and group --help open with a discovery note pointing at sim cli search when a coding agent runs the CLI; people never see it
  • Default output is now json instead of table. --output, SIM_OUTPUT, and sim configure --set-output table still override it
  • Reword descriptions that lacked the words people search with (files get → download, logs list → failed runs, secrets set → environment variable, etc.)
  • Bump the CLI to 2.2.0 — minor, since the default output format changes
  • Trailing qualifiers like "(OAuth login or personal API key required)" are shown but not ranked, so they stop matching "login" / "api key"

Behavior change for anyone without a saved format: output is JSON, sim chat prints the finished reply as JSON instead of streaming, and errors go to stderr as JSON.

Type of Change

  • New feature

Testing

  • Search tests cover ranking, the qualifier handling, and the agent note; 44-query set went from 24 → 37 top-1 hits and 34 → 43 top-5
  • CLI tests, type-check, lint, and check:audits pass

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

🤖 Generated with Claude Code

https://claude.ai/code/session_01SZ5zfNhp5e4Mrood4jKdy7

- sim cli search ranks every command in the tree against a plain-language
  query, locally via minisearch, and returns the top 5
- root and group --help open with a discovery note when a coding agent runs
  the CLI, pointing it at sim cli search
- default output format is now json; table stays available via --output,
  SIM_OUTPUT, or sim configure --set-output
- reword command descriptions that lacked the words people search with
@TheodoreSpeaks
TheodoreSpeaks requested a review from a team as a code owner September 29, 2026 19:46
@vercel

vercel Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Sep 29, 2026 9:23pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 31 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread packages/sim-cli/src/contract/commands.ts Outdated
@greptile-apps

greptile-apps Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Adds a search command and changes default output format to JSON.

The PR appears safe to merge; no new actionable issue was found in the changes since the previous review.

Summary

The PR adds local command discovery, makes JSON the default CLI output, and updates command descriptions and documentation. Since the previous review, it also bumps the CLI package version to 2.2.0.

Reviews (3) · Last reviewed commit: "chore(cli): release 2.2.0"

Comment thread packages/sim-cli/src/program.ts
Comment thread packages/sim-cli/src/contract/commands.ts Outdated
@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@greptile

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 31 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@greptile

@TheodoreSpeaks

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 31 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@TheodoreSpeaks
TheodoreSpeaks merged commit a6c9b03 into staging Sep 29, 2026
35 of 36 checks passed
@TheodoreSpeaks
TheodoreSpeaks deleted the feat/cli-improvement branch September 29, 2026 21:50

This branch was successfully deployed

1 active deployment
Preview — e3b20c17 Deployed Sep 29, 2026 by vercel[bot]
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