Skip to content

refactor(runtime): compact generated agent context#944

Merged
chubes4 merged 1 commit into
mainfrom
refactor/934-compact-agents
Jul 21, 2026
Merged

refactor(runtime): compact generated agent context#944
chubes4 merged 1 commit into
mainfrom
refactor/934-compact-agents

Conversation

@chubes4

@chubes4 chubes4 commented Jul 21, 2026

Copy link
Copy Markdown
Member

Closes #934

Summary

  • replace enumerated DMC command lists with live --help discovery pointers
  • replace the default full workspace inventory with a bounded authoritative-command summary
  • retain explicit full inventory mode for sites that require embedded detail
  • remove the obsolete reflection-based command introspector
  • enforce a compact default inventory size budget

How to test

  1. Run php tests/smoke-agents-md-sections.php.
  2. Run php tests/smoke-agents-md-workspace-freshness.php.
  3. Run git diff --check origin/main...HEAD.

Size evidence

The source diff removes 306 lines and adds 71. The default fixture inventory renders at 492 bytes with a test-enforced 700-byte ceiling; detailed mode remains available through datamachine_code_workspace_inventory_mode=full.

Compatibility

The default inventory mode changes from embedded per-repository detail to summary. Sites needing the old detailed snapshot can opt into full; live workspace commands remain authoritative.

@chubes4
chubes4 merged commit 9c9f220 into main Jul 21, 2026
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.

Compact generated AGENTS context around live workspace commands

1 participant