[codex] Add Lab local agent guidance support#660
Draft
willccbb wants to merge 1 commit into
Draft
Conversation
fa22043 to
63d3af8
Compare
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.
Summary
AGENTS.md, rootCLAUDE.md, andenvironments/AGENTS.mdas Prime-managed guidance refreshed byprime lab setup/prime lab sync.CLAUDE.local.mdas the local write space when Claude is configured; preserve it and never overwrite it.prime lab doctorchecks and--fixsupport to detect and untrack Lab generated/local guidance files that were already added to git.VERIFIERS_REFto the merged Verifiers guidance reff43e42c1fabfe2604afc95b9ce62779a8f55d487.Validation
uv run pytest packages/prime/tests/test_lab_setup.py -quv run pytest packages/prime/tests/test_lab_view.py::test_prime_lab_sync_service_refreshes_agent_assets -quv run ruff check packages/prime/src/prime_cli/lab_setup.py packages/prime/tests/test_lab_setup.pyuv run ruff format --check packages/prime/src/prime_cli/lab_setup.py packages/prime/tests/test_lab_setup.pygit diff --check -- packages/prime/src/prime_cli/lab_setup.py packages/prime/tests/test_lab_setup.pyNote
Medium Risk
Changes Lab setup/sync to always manage guidance files and to run git commands to detect/untrack tracked guidance, which can affect developer workspaces and repo state. Logic is straightforward but touches CLI workflows and filesystem/git interactions.
Overview
Lab
setup/syncnow always downloadsCLAUDE.mdalongsideAGENTS.md, and creates a user-preservedCLAUDE.local.mdwhen theclaudeagent is in use.The default Lab
.gitignorelist is expanded to ignore guidance files (includingenvironments/AGENTS.md), andlab doctoradds a new check (and--fixremediation) to warn/untrack any guidance files accidentally committed.Updates the pinned
VERIFIERS_REFand adjusts tests/docs index generation to reflect the new guidance behavior.Reviewed by Cursor Bugbot for commit 63d3af8. Bugbot is set up for automated code reviews on this repo. Configure here.