[Bug]: Repo-local Codex skills do not appear in T3 Code `$` skill picker #3040
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
- Install/update Codex CLI and verify it is current:
codex --version
- Create a repository-local Codex skill under a project:
<repo>/
.agents/
skills/
add-model-support/
SKILL.md
agents/
openai.yaml
- Use valid SKILL.md frontmatter:
---
name: add-model-support
description: Add support for a newly announced model from an existing provider.
---
- Verify Codex sees the repo-local skill when launched from the repo:
codex -C <repo-path> debug prompt-input "test" | rg "add-model-support"
- Open the same repository in T3 Code, type
$in the composer, and look foradd-model-support. - Fully quit T3 Code, delete the Codex provider cache, and reopen T3 Code:
Remove-Item "$env:USERPROFILE\.t3\caches\codex.json"
- Type
$again and observe that the skill is still missing. - Confirm the rebuilt T3 Code cache does not include the repo-local skill:
rg "add-model-support" "$env:USERPROFILE\.t3\caches\codex.json"
Expected behavior#
When opening the repo in T3 Code, repo-local Codex skills under .agents/skills should appear in the $ skill picker, the same way they do in Codex.
In this case, $add-model-support should be available when working in the LoopGPT repository.
Actual behavior#
The skill does not appear in T3 Code’s $ picker.
T3 Code appears to load global/plugin Codex skills from its Codex cache, but not the repo-local .agents/skills entry.
Impact#
Minor bug or occasional failure
Version or commit#
T3 Code Alpha: v0.0.27.0
Environment#
Windows 11 Core, 64-bit, Windows desktop app (T3 Code Alpha), npm installed codex-cli 0.139.0
Logs or stack traces#
Screenshots, recordings, or supporting files#
No response
Workaround#
Just prompt the agent to find and read the skill instead of manually invoking it. Not ideal for consistency in performance though.
laceyp99(GitHub profile, opens in a new tab) added labelsbug
laceyp99(GitHub profile, opens in a new tab) added labelsneeds-triage
Confirming on macOS with the packaged nightly (
0.0.29-nightly.20260727.919,t3codeCommitHash f4c394323d45, codex-cli 0.145.0), and adding a repro that isolates the variable tocwdalone.Driving
codex app-serverdirectly, the only thing that changes between a hit and a miss is thecwdsargument:send({"jsonrpc":"2.0","id":2,"method":"skills/list", "params":{"cwds":[CWD],"forceReload":True}})cwdsresult for a repo-local .agents/skills/migration-workflow["/Users/david/projects/maat/workspace-app"]found — scope: "repo",path: <repo>/.agents/skills/migration-workflow/SKILL.md["/"]absent (122 skills, all global) So Codex itself is fine; the skill file, frontmatter and
agents/openai.yamlare all fine. What T3 passes is the problem — fromapps/server/dist/bin.mjsin the shipped asar:const probeResult = yield* probe({ binaryPath: codexSettings.binaryPath, ... cwd: process.cwd(), // <-- server process cwd, not the open projectand on the receiving side, a
cwdsentry that matches nothing falls back to flattening every entry, which quietly hides the miss:const matchingEntry = response.data.find((entry) => entry.cwd === cwd); return (matchingEntry ? matchingEntry.skills : response.data.flatMap((e) => e.skills))In the packaged macOS app that cwd is
/:$ lsof -a -p <t3code-pid> -d cwd -Fn n/which is why deleting
~/.t3/caches/codex.jsonand restarting doesn't help — the rebuild asks the same wrong question.Same root cause on the Claude driver (#4544):
discoverClaudeSkills(config, cwd, env)scans<cwd>/.claude/skillswith that sameServerConfig.cwd. So this isn't Codex-specific — every driver's project scope is dead in packaged builds. #3982 covers codex + grok and #4546 covers claude; worth landing them together.Workaround that survives app restarts, if anyone needs it before those merge — symlink the repo skill into the global root the probe does scan:
ln -s <repo>/.agents/skills/<name> ~/.codex/skills/<name> ln -s <repo>/.agents/skills/<name> ~/.claude/skills/<name>It then shows up as
scope: "user". Nightly updates don't clobber it, since it lives outside the app bundle.This happens too when running
npx t3@nightlyusing Claude Code as the harness, but only ifnpxis not run in the root folder of the project. If it is, the skills appear using the$picker. The snag is that if you change to a different project, those same skills follow you there and they aren't updated with the new project's local skills.- Create local skills in
Repo-A/.claude/skills/andRepo-B/.claude/skills/. - Open a terminal inside
Repo-Aand runnpx t3@nightly. - Type
$in the composer and Repo-A skills show up correctly. - Switch the workspace context in T3 Code to
Repo-B. - Type
$in the composer and Repo-A's skills are still displayed, while Repo-B's local skills are apparently ignored.
Tested on MacOS 15.7, 0.0.34-nightly.20260811.1068, Claude Code v2.1.227
- Create local skills in
Confirmed on macOS with the packaged Nightly desktop app.
Environment#
- T3 Code:
0.0.34-nightly.20260825.1184 - Commit:
5d7665396083d285132d67038813862a93337ca5 - macOS 26.6.2, Apple Silicon
- Codex provider reported by T3:
0.149.1
Reproduction#
- Open a repository containing 39 valid project-local skills under
<repo>/.agents/skills/<skill>/SKILL.md. - Confirm the same skills appear in the official Codex app.
- Open the repository in the packaged T3 Code Nightly desktop app.
- Type
$in the composer.
Only global/plugin skills appear. Completely quitting T3 Code and performing a fresh reinstall does not change the result.
Additional evidence#
- The packaged T3 server process has
<home>as its cwd rather than the active repository. <home>/.t3/caches/codex.jsoncontains 19 global/plugin skills and zero project-scoped skills.- In the installed source,
checkCodexProviderStatuspassesprocess.cwd()to the Codex probe. That value is subsequently sent toskills/listascwds: [input.cwd]. - Consequently, the packaged desktop app requests skills relative to
<home>, while the official Codex app requests them relative to the active repository.
This appears to be the same cwd-scoping problem described here, and it remains reproducible in the August 25 Nightly. Related: #6449 and the open fix in #7909.
- T3 Code:
Thanks for the detailed report. This looks like the same issue tracked in issue #6449.
Issue 6449 explicitly names the Codex skills/list cwd problem as well as Claude discovery. Issue 3040 supplies an A/B probe where changing only cwds finds or loses the same repository skill, and later comments reproduce the same startup-directory leakage across Claude projects. Current main still sends process.cwd to Codex discovery and ServerConfig.cwd to Claude discovery. This is one missing active-project scope, not two provider-specific missing-directory formats.
I'm closing this as a duplicate as part of an automated pass on all open issues. I linked this report from issue #6449 so its extra details remain available. This does not mean the underlying bug is fixed.
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
@juliusmarminge https://github.com/pingdotgg/t3code/pull/3982 my PR here solves this for both codex and Grok