Skip to content

perf: reduce Codex workflow token overhead - #387

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/codex-token-efficiency
Sep 18, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/codex-token-efficiency

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Routine Codex edits, tests, and git steps now stay in the current agent; workers are reserved for useful parallel work, context isolation, or independent review. Claude retains Fable → Opus, Opus → Opus, and its existing Sonnet mechanical exceptions.

Reduce the shared workflow reference, shorten four skill descriptions, and provide a safe installer for the workspace delegation policy. Add an explicit-file usage report and a completed-task comparison protocol, with cached input and reasoning counted as subsets rather than additional tokens.

API Changes

None to PyAuto library APIs. New local tools: python bin/codex_usage.py <rollout.jsonl> [--child <rollout.jsonl>] [--json], and bin/install.sh --write-workspace-policy / --check-workspace-policy.

Test Plan

  • 41 focused tests passed, including usage parsing, safe policy migration, and preserved Heart gates.
  • Live usage smoke matched the previously audited session counters and all 80 collaboration calls.
  • Independent working-tree review: CLEAN. The stock review surface only sees committed diffs, so the review explicitly included untracked new files.
  • Full repository suite: 915 tests passed in 447.58 seconds; all four changed skills passed skill validation.

Readiness and activation

Heart reports install verification FAILED (testpypi; checks F) and release validation FAILED (stage integrate), plus manifest drift: remote-session blocks (generated) — 2 mismatch(es) vs PyAutoMind/repos.yaml.

The human explicitly approved the development-only override for task #409 in this session: "yes commit, push and open the PR for", replying to the task-specific request. This permits commit, push, and PR creation after the passed tests, live usage smoke, and independent working-tree review recorded above. Heart remains RED; this authorization does not permit merge, release, or bypassing checks.

After merge and pulling the updated Brain checkout, run the documented workspace-policy writer and checker. The live root instructions have not been switched to references that exist only on this feature branch. No measured subscription saving is claimed.

Refs PyAutoLabs/PyAutoMind#409. The human authorized a separate worktree alongside codex-hook-parity; its branches and claims are preserved.

@Jammy2211
Jammy2211 merged commit 0a21749 into main Sep 18, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/codex-token-efficiency branch September 18, 2026 00:14
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