Repository navigation
feat(cli): expose compact search and context discovery - #1518
Conversation
Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7ca7b6b460
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9de1ee6861
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Signed-off-by: phernandez <paul@basicmachines.co>
Signed-off-by: phernandez <paul@basicmachines.co>
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Why
Shell agents need access to the same compact discovery options as MCP clients. Refs #686.
What Changed
Adds
--compacttobm tool search-notesandbm tool build-context, forwarding to the MCP implementations. JSON, plain text and Rich output selection remain unchanged. Adds a short discovery-then-read guide indocs/COMPACT_DISCOVERY.md.Implementation Details
Stacked on #1516 and includes the search implementation from #1515. Land both prerequisites before retargeting this PR to main. The new CLI change only forwards the option; it shares the MCP projection and uses existing renderers.
Testing
uv run pytest test-int/cli/test_compact_discovery_integration.py -q --no-cov: 4 passed, covering both commands in JSON/plain modes and ordinary output without the flag.BASIC_MEMORY_TEST_POSTGRES=1 uv run pytest test-int/cli/test_compact_discovery_integration.py -q --no-cov: 4 passed.uv run pytest tests/cli/test_cli_tools.py tests/cli/test_cli_tool_rich_output.py tests/cli/test_cli_tool_json_output.py tests/cli/test_cli_tool_exit.py -q --no-cov: 93 passed.just fast-check,just doctor,git diff --check: passed.Risks / Follow-ups
Opt-in, with no default change. Compact output reduces payload size rather than database work or a fixed token budget. The broader progressive-loading issue remains open.