Skip to content

Slim Mind instructions and add context budgets - #425

Merged
Jammy2211 merged 3 commits into
mainfrom
feature/codex-context-efficiency
Sep 19, 2026
Merged

Jammy2211 merged 3 commits into
mainfrom
feature/codex-context-efficiency

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Sep 19, 2026 •

Copy link
Copy Markdown
Collaborator

Reduce repeatedly loaded Mind instructions and make context growth measurable. AGENTS.md falls from 12,507 to 5,070 bytes; longer operational explanations remain available in REFERENCE.md. Prompt instructions distinguish Mind-relative arguments from grouped/flat checkout locations, and generated routing provenance uses commands run from the resolved Mind checkout.

API Changes

Adds scripts/token_load.py report|check --root <workspace> with explicit byte/line counts, approximate byte/4 tokens, configurable budgets, conditional-reference reporting and missing-file failures. Uses Mind’s existing checkout helper, delegating to Brain’s resolver when present. Pair with the Brain context-efficiency PR, which supplies the newly measured context and conditional PRM pages.

Validation

  • Full Mind suite: 582 passed with inherited workspace path overrides unset.
  • Isolated-clone and ambiguous-layout regressions pass; GitHub checks are green.
  • Generated safety blocks preserved; grouped/flat fixture and budget tests pass.
  • Independent cross-repository review: CLEAN.
  • Token-load check passes against the paired worktrees and prepared root preview.
  • Heart is STALE for absent release rehearsal; this is development shipping only.

Part of PyAutoLabs/PyAutoBrain#403. No merge or release automation is enabled.

Paired PR: PyAutoLabs/PyAutoBrain#404

@Jammy2211
Jammy2211 merged commit f6d4371 into main Sep 19, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/codex-context-efficiency branch September 19, 2026 13:58
@Jammy2211 Jammy2211 removed the pending-release Awaiting coordinated release label Oct 7, 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.

1 participant