Skip to content

feat(agent-context): compact command index by default; compact usage errors - #262

Open
jexp wants to merge 1 commit into
mainfrom
fix/agent-context-index
Open

jexp wants to merge 1 commit into
mainfrom
fix/agent-context-index

Conversation

@jexp

@jexp jexp commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • `agent-context` now emits a flat `path` + `short` index by default (~18 KB vs ~465 KB). `agent-context ` returns one command's details; `--full` keeps the old recursive tree. `schema_version` is now 2.
  • Unknown flags/commands print the error, a one-line usage and a `Run ' --help' for details.` hint instead of the full help text and examples (exit code still 2).
  • Rewrote the MCP agent-context test for the index shape, regenerated the skill bundle, added changie entries and updated `.agents/agent-context.md`.

Closes LABS-227

Test plan

  • `make test`, `make fmt-check`
  • New tests: index size cap, command detail, unknown path / `--full` conflict, compact usage errors
  • `make lint`: only 2 SA1019 warnings in `internal/commands/query/coerce_test.go` (untouched file; local golangci-lint is 2.14.0 vs pinned 2.11.4), CI is the real check

🤖 Generated with Claude Code

…errors

agent-context now emits a flat path+short index (~18 KB instead of ~465 KB),
per-command details via 'agent-context <path...>', and the old tree via --full
(schema_version 2). Unknown flags/commands print the error, a one-line usage
and a scoped --help hint instead of the full help text.

Refs LABS-227

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@oskarhane
oskarhane force-pushed the fix/agent-context-index branch from 39c11cf to d325b39 Compare October 12, 2026 07:42
@oplane-bot

oplane-bot Bot commented Oct 12, 2026

Copy link
Copy Markdown

Oplane Security Review

Oplane reviewed this PR and did not identify any security requirements that need attention. Review the generated threat model.


Change comment settings · Set up Oplane in your agent · Workflow guidance

This branch has not been deployed

No deployments
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