Codegen integration
May 24, 2026 ยท View on GitHub
Codegen support is beta.
tokenjuice install codegen inserts a marker-delimited instruction block into
the current git/project root AGENTS.md. Codegen documents automatic repository
rule-file detection and lists AGENTS.md as the preferred default rule file, so
tokenjuice uses that shared project instruction surface instead of inventing a
hook contract.
tokenjuice install codegen
tokenjuice doctor codegen
tokenjuice uninstall codegen
By default, tokenjuice resolves the nearest git root before writing
AGENTS.md. Set CODEGEN_PROJECT_DIR=/path/to/workspace to override the target
workspace explicitly.
The installed block tells Codegen agents to use tokenjuice wrap -- <command>
for terminal commands likely to produce long output, and to use
tokenjuice wrap --raw -- <command> only when raw bytes are required.
Existing AGENTS.md content is backed up before install and preserved outside
the managed tokenjuice block. Uninstall removes only the tokenjuice block.
doctor codegen reports ok when the AGENTS.md block exists, includes
tokenjuice wrap guidance, includes the raw escape hatch, and does not suggest
the full-output escape hatch.
This integration is guidance-only. Codegen rule files are prompts that guide agent behavior; they do not intercept or replace terminal command output.