Repository navigation
feat(sandbox): List repository skills with AGENTS.md instructions - #1999
Conversation
When Junior works in a repository checkout, list the skills in .agents/skills and .claude/skills at the Git root next to the AGENTS.md instructions. The model reads a matching SKILL.md with readFile. AGENTS.md keeps priority in the shared byte budget. Co-Authored-By: Daniel Griesser <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
2 screenshot changes — 2 changed · 0 added · 0 removed Review screenshots in Frameshift
|
| function isAbsentPathError(error: unknown): boolean { | ||
| return ( | ||
| isMissingPathError(error) || | ||
| (error as { code?: unknown } | null)?.code === "ENOTDIR" | ||
| ); | ||
| } |
There was a problem hiding this comment.
It handled plain files in a skill root, such as .agents/skills/README.md. Reading README.md/SKILL.md fails with ENOTDIR on a real filesystem, not ENOENT. That was unclear, and the sandbox filesystem does not promise that error code. d7b0d9e removes the helper and checks that each entry is a directory before reading SKILL.md.
… check Replace the ENOTDIR error match with an explicit directory check. The sandbox filesystem does not promise ENOTDIR for a path below a file.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d7b0d9e. Configure here.
Read AGENTS.md for every selected repository before any skill list uses the shared budget, so skills from an earlier repository cannot truncate a later AGENTS.md.

Junior loads a repository's root
AGENTS.mdbut ignores its skills. Many getsentry repositories keep task workflows in.agents/skills/or.claude/skills/:sentryhas 30,sentry-javascripthas 21,sentry-docshas 4. When a local agent works in one of these repositories, it picks those workflows up. Junior did not.With this change, the repository-instructions capture also reads each
SKILL.mdfrontmatter under those two directories at the Git root. It adds a "Repository skills" list after theAGENTS.mdtext, with each skill's name, description, and sandbox path. The model reads a matchingSKILL.mdwithreadFileand follows it. This reuses the existingAGENTS.mddelivery, so the list appears when a repository is cloned or a Workspace is selected, and later samples get updates.Design choices:
<available-skills>orloadSkill. Those come from the host. Repository skills live in the sandbox and can change during a turn.AGENTS.mdcomes first in the shared 32 KB budget. Skills use the remaining budget, one whole entry at a time. Forsentry-javascript, the list holds 18 skills (about 7 KB)..agents/skillswins over.claude/skillswhen both have the same name. Many repositories link one directory to the other, so this also prevents duplicate reads. Skills withdisable-model-invocation: trueor invalid frontmatter are left out.AGENTS.md, which already loads from any checkout and can point to these same files. An org check in core would also break the provider-boundary policy. If we want a trust gate, add it to bothAGENTS.mdand skills, through a plugin contract.Context: the Slack discussion about repository-owned workflows (e.g. "Junior working on Seer loads the Seer skills") and #1998.
via daniel.
--
View Junior Session [Sentry]