Skip to content

fix(z-agent): find the highest installed z-mode without a path - #36

Merged
fullerzz merged 2 commits into
pstack-0-15-23/root-cause-signalfrom
pstack-0-15-23/z-agent-discovery
Oct 14, 2026
Merged

fullerzz merged 2 commits into
pstack-0-15-23/root-cause-signalfrom
pstack-0-15-23/z-agent-discovery

Conversation

@fullerzz

@fullerzz fullerzz commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Why

A z-agent whose parent omits or garbles z-mode's path was told only to "locate the installed copy". On this machine that search finds a stale 0.1.0 Claude plugin cache next to the live checkout. cursor/plugins#597 tells the agent where to look and which copy to choose.

What changed

  • Both z-agent roles search the configured host root ($CLAUDE_CONFIG_DIR or $CODEX_HOME), linked and project-scoped skills, and Claude's recorded local marketplace. They follow symlinks, read each copy's manifest from its real path, pick the highest version compared numerically, and note that explicit-only z-mode can be absent from the skill catalog.
  • Manifests move to 0.6.4.

Scope

  • The parent still supplies the absolute path; this only changes the fallback.
  • Not ported: upstream's frontmatter cleanup (z-mode never had mode or reminder, and the validator rejects them) and its Cursor-only slash-menu note (local docs already cover the picker and /zstack:z-mode).

Verification

  • A script following the Claude rule picked a linked 0.10.0 checkout over a cached 0.1.0 copy in custom-config and project-scope fixtures, and picked the in-place checkout on this machine. The Codex roots were not exercised, and no z-agent was launched without a path.
  • In a clean worktree of this commit: 52 skills and 0 problems, 15/15 Node tests, and 120 Python tests passed.

@fullerzz
fullerzz added this pull request to stack #39 October 14, 2026 00:17
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T00:35:38.884812Z df6bd20 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fe46e2327a

ℹ️ 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".

Comment thread agents/claude/z-agent.md Outdated
Comment thread agents/codex/z-agent.toml Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 7 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread agents/claude/z-agent.md Outdated
Comment thread agents/codex/z-agent.toml Outdated
Comment thread agents/codex/z-agent.toml Outdated
Comment thread agents/claude/z-agent.md Outdated
@fullerzz
fullerzz force-pushed the pstack-0-15-23/z-agent-discovery branch from fe46e23 to df6bd20 Compare October 14, 2026 00:33
@fullerzz
fullerzz merged commit 9cccdf5 into main Oct 14, 2026
1 check passed
@fullerzz
fullerzz deleted the pstack-0-15-23/z-agent-discovery branch October 14, 2026 01:29
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