Skip to content

replace invented codex paths - #21

Merged
caelaxie merged 1 commit into
mainfrom
cursor/codex-paths-1eb5
Oct 26, 2026
Merged

caelaxie merged 1 commit into
mainfrom
cursor/codex-paths-1eb5

Conversation

@caelaxie

Copy link
Copy Markdown
Contributor

replace the invented paths with ones codex actually uses.

worktree cleanup no longer names .codex/worktrees/myrepo/x. codex app worktrees default to ~/.codex/worktrees/<id>/<repo> and codex --worktree uses a sibling checkout, so the playbook points at the directory git worktree list shows.

the reflect reviewers name ${CODEX_HOME:-~/.codex}/plugins/cache/ instead of ~/.codex/plugins/. repo skills stay .agents/skills/ and user skills stay ~/.agents/skills/, which codex-rs/ext/skills/src/host_roots.rs scans.

icon and color stay out of poteto-mode frontmatter. codex-rs/core-skills/src/loader.rs SkillFrontmatter reads name, description, and metadata only. ui icons and brand color belong in agents/openai.yaml (icon_small, icon_large, brand_color), and the bundled skill-creator validator allows only name, description, license, allowed-tools, and metadata.

Refs #12

Open in Web Open in Cursor 

Worktrees are whatever git worktree list shows. Plugin skills live under CODEX_HOME/plugins/cache. icon and color stay out of SKILL.md frontmatter.

Co-authored-by: Kaitian Xie <caelaxie@users.noreply.github.com>

@caelaxie caelaxie left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pass. merging.

  • minimum changes: 4 one-line swaps, rest of each file matches upstream 99b609a. worktree line uses the neutral phrasing #12 sanctioned; reflect reviewers name ${CODEX_HOME:-~/.codex}/plugins/cache/, which matches codex's codex_home.join(PLUGINS_CACHE_DIR) plugin store.
  • layout/target: no cursor paths reintroduced, skills stay in .agents/skills/.
  • parity: nothing dropped. leaving icon/color out of poteto-mode frontmatter is a justified harness divergence (codex skill frontmatter only reads name/description/metadata), so Refs #12 rather than Closes is right.
  • proof: text-only change, install CI green on 4c11d64.
  • not a draft.

@caelaxie
caelaxie merged commit 215d0f2 into main Oct 26, 2026
1 check passed
@cursor

cursor Bot commented Oct 26, 2026

Copy link
Copy Markdown

harness proof

codex npm version: 0.164.0
codex --version: codex-cli 0.164.0

fresh CODEX_HOME, detached worktree of this branch:

codex plugin marketplace add /tmp/pstack-wts/codex-paths-1eb5 --json
codex plugin add pstack@codex-pstack --json
codex-paths-1eb5: version=0.15.33 skills=61 missing=- mismatches=0
installed=/tmp/pstack-install-h99ht8tq/plugins/cache/codex-pstack/pstack/0.15.33

installed worktree-cleanup and the three reflect reviewers match the branch. they say git worktree list and ${CODEX_HOME:-~/.codex}/plugins/cache/. poteto-mode frontmatter is still only name and description.

codex login status is Not logged in, so codex exec was not started.

paths cited from codex 0.164.0 source: codex-rs/core-plugins/src/store.rs (plugins/cache), codex-rs/ext/skills/src/host_roots.rs (.agents/skills, $HOME/.agents/skills), codex-rs/core-skills/src/loader.rs (SkillFrontmatter). app worktrees are ~/.codex/worktrees/<id>/<repo> (openai/codex#10599) and codex --worktree uses a sibling checkout (openai/codex#21435), so the playbook does not pick one directory.

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.

2 participants