[codex] Add Lab local agent guidance support#660
Open
willccbb wants to merge 1 commit into
Open
Conversation
fa22043 to
63d3af8
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 63d3af8ed6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
63d3af8 to
b85d751
Compare
b85d751 to
1ad0086
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
Low Risk
Changes are confined to Lab CLI workspace scaffolding and optional git index cleanup on doctor --fix; no auth, payments, or production runtime paths.
Overview
Prime Lab now treats root
AGENTS.md,CLAUDE.md, andenvironments/AGENTS.mdas Prime-managed files refreshed onprime lab setup/prime lab sync, withCLAUDE.mdrefreshed for all agents (not only Claude).CLAUDE.local.mdis the user-owned Claude overlay: created from a template when Claude is configured, never overwritten if it already exists, and omitted for non-Claude setups.Git hygiene expands standard
.gitignoreentries for those guidance files plus existing Lab artifacts; sync/setup also appends ignores.prime lab doctoradds a Lab guidance tracking check (warn if those paths are still tracked) and--fixcangit rm --cachedthem while leaving files on disk. Doctor renames the gitignore check to Lab gitignore.The Lab docs index and CLI help text now mention
CLAUDE.local.md.VERIFIERS_REFis bumped so downloaded lab guidance/skills match the new upstream assets. Tests cover guidance refresh, preservation, gitignore, and doctor untrack behavior.Reviewed by Cursor Bugbot for commit 1ad0086. Bugbot is set up for automated code reviews on this repo. Configure here.