Repository navigation
Build project-local harness on explicit skill invocation - #4
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Explicit
$harness/$codex-harness:harnessinvocation now directs Codex to build or update a durable harness in the target project before an accompanying ordinary content task. An explicit read-only or audit request still limits writes.The skill requires every generated agent definition under
<target>/.codex/agents/and keeps skills, AGENTS.md pointers, run state, and communication records in the target. It checks the parent session's cwd before native project-work spawning, sincespawn_agentcannot select a child cwd. If protected project paths reject writes, it reports the exact error and leaves bootstrap incomplete instead of relocating definitions or changing permissions. The bootstrap flow also handles plugin-only installation without assuming the checkout's root installer exists.Updated English, Korean, and Japanese usage guides, quickstart, compatibility notes, trigger examples, and changelog.
Verification
python3 scripts/validate.py --project .— fails on five pre-existing ignored.harness/runs/*records whoseproject_rootpoints to/Users/robin/Downloads/codex-harness. A clean copy of the 88 tracked files passes structural validation: 5 agents, 1 skill, 0 errors.python3 -m unittest discover -s tests -v— 94 tests passed.git diff --check— passed.gpt-6-sol, started in a fresh temporary target with inherited model/permission preferences. An ordinary writing request invoking$harnesscreatedarticle.md,AGENTS.md, two project-local agent TOMLs, an orchestrator skill, and completed write/review run records. Target structural and run completion validation passed;codex execexited 0. Parent and both child session metadata had the target cwd andgpt-6-solmodel. Newly written custom roles were not loaded into that active session, so the actual children used built-in worker/explorer roles with the project-local instructions. A plugin-only fresh-target bundle copy was not separately exercised in this smoke test.Compatibility
CHANGELOG.mdand usage guides.The optional installer still supplies the predefined five-agent scaffold. Existing project content, inherited model, and permission settings remain under the user's control. Agent definition location and native child execution are tracked separately.