Skip to content

fix(codex): support current skill invocation syntax - #633

Merged
andrasbacsai merged 4 commits into
coollabsio:mainfrom
fsioni:adapter-invocation-skills-codex
Aug 3, 2026
Merged

fix(codex): support current skill invocation syntax#633
andrasbacsai merged 4 commits into
coollabsio:mainfrom
fsioni:adapter-invocation-skills-codex

Conversation

@fsioni

@fsioni fsioni commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • open Codex skills with the current $skill-name mention syntax while keeping slash commands under /
  • discover Codex skills from user and project .agents/skills directories, retaining legacy Jean/Codex locations
  • forward the worktree path through native and web transports so project skills are listed

Test plan

  • TypeScript typecheck
  • ESLint
  • Targeted frontend tests (14 passing)
  • Rust regression test for user/project Codex skill discovery
  • Manual smoke test in Tauri: $ lists Codex skills and / lists /goal

Quality gate note

bun run check:all reaches rust:fmt:check but the repository currently contains pre-existing rustfmt differences outside this change. The changed files pass targeted checks and git diff --check.

Copilot AI review requested due to automatic review settings August 3, 2026 09:44

Copilot AI 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.

Pull request overview

This PR updates Jean’s Codex skill UX and plumbing to match Codex’s current $skill-name invocation pattern while keeping / reserved for slash commands, and extends Codex skill discovery to include user/project .agents/skills directories (plus legacy locations). It also threads the active worktree path through the frontend query layer and the web transport so project-scoped Codex skills can be listed correctly.

Changes:

  • Add a worktree-scoped Codex skills query key and pass worktreePath to the list_codex_skills invoke call.
  • Extend the chat input/popover UX to support $ as a “skills” trigger and / as a “commands” trigger (with improved empty-state messaging).
  • Update the Rust backend to discover Codex skills from ~/.agents/skills and <worktree>/.agents/skills, and accept worktree_path over web dispatch.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/services/skills.ts Makes Codex skills cache keys worktree-aware and forwards worktreePath into the Codex skill listing invoke call.
src/services/skills.test.ts Updates query-key test coverage for the new worktree-scoped Codex key shape.
src/components/chat/SlashPopover.tsx Adds triggerKind to filter commands vs skills, updates empty-state messaging, and displays $ for skills vs / for commands.
src/components/chat/ChatInput.tsx Detects $ as a skills trigger and wires triggerKind into the popover.
src/components/chat/ChatInput.test.tsx Adds a unit test asserting $ opens the picker in a Codex session and forwards triggerKind='skill'.
jean-core/src/projects/commands.rs Adds .agents/skills user+project discovery for Codex skills and a regression test for the new search roots.
jean-core/src/http_server/dispatch.rs Updates list_codex_skills web dispatch to accept an optional worktree path argument.

Comment thread src/components/chat/ChatInput.tsx Outdated
Comment thread src/services/skills.ts
fsioni and others added 3 commits August 3, 2026 12:37
Allow Codex to read skills from .agents, legacy .codex,
and Jean-managed skill dirs when attaching badges. List
project .codex skills, show Codex skills with $ in the
slash popover, and cover triggerKind filtering in tests.
@andrasbacsai
andrasbacsai merged commit 98607be into coollabsio:main Aug 3, 2026
1 check passed
@andrasbacsai

Copy link
Copy Markdown
Member

Thank you for the PR! 💜

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.

3 participants