Repository navigation
Move agent roles into repo for multi-platform portability - #1498
Merged
Merged
Conversation
Agent roles now live in .agents/roles/*.md as vendor-neutral markdown with name/description frontmatter. Claude Code reads them directly; Codex configs are generated via scripts/import-claude-agents.mjs. CLAUDE.md and AGENTS.md are now thin pointers to .agents/playbook.md. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Mintlify's broken-links check can't resolve paths to dotfile directories (.agents/). Use plain text paths instead of markdown links. Co-Authored-By: Claude Opus 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
~/.claude/agents/into.agents/roles/*.mdas vendor-neutral markdown (strippedmodel/colorfrontmatter)scripts/import-claude-agents.mjsto generate Codex configs from the canonical role filesCLAUDE.mdfrom 376 lines to a thin pointer to.agents/playbook.mdAGENTS.mdas a matching pointer for non-Claude agents.codex/(generated output)Why
Agent role definitions were living in
~/.claude/agents/— tied to one machine, one tool. Moving them into the repo means they travel with the code and can serve any agent platform (Claude Code reads directly, Codex gets generated TOML, future platforms get their own thin adapter).Test plan
node scripts/import-claude-agents.mjsgenerates valid TOML (validated with@taplo/cli check)[a-z0-9_-]+(prevents TOML injection, path traversal)tomlMultilinecorrectly escapes backslashes (was producing invalid TOML for docs-expert)🤖 Generated with Claude Code