Help us improve
Share bugs, ideas, or general feedback.
From claudeforge
Converts CLAUDE.md (and chained sub-files) into AGENTS.md for use by Codex, Gemini Code Assist, and other tools following the AGENTS.md convention. Supports symlink, copy, and inline-chain modes.
npx claudepluginhub alirezarezvani/claudeforgeHow this command is triggered — by the user, by Claude, or both
Slash command
/claudeforge:claude-to-agents [--symlink | --copy | --inline-chain] [--force]Files this command reads when invoked
This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /claude-to-agents — convert CLAUDE.md → AGENTS.md Wraps `hooks/claude-to-agents.py` so non-Claude tools (OpenAI Codex, Gemini Code Assist, anything else honouring the `AGENTS.md` convention) can read the same instructions as Claude. ## Mode selection Decide first by asking which guarantee the user wants: - **`--symlink`** (default on macOS / Linux): `AGENTS.md` becomes a symlink to `CLAUDE.md`. One source of truth — edits to CLAUDE.md show up in AGENTS.md instantly. Codex/Gemini read it transparently. On Windows the script falls back to `--copy` and prints a notice. - **`--copy`**: by...
/sync-agent-contextMerges all project AGENTS.md files into CLAUDE.md under Agent-Specific Instructions section with path-organized content, backs up CLAUDE.md, and reports summary.
/agentsGenerates AGENTS.md files in pertinent repository folders only if missing, covering build commands, tests, code style, structure, and boundaries for coding agents.
/aiwg-regenerate-claudeRegenerates CLAUDE.md for Claude Code integration via intelligent merge: analyzes project state and tech stack, preserves team content, updates AIWG and Claude-specific sections only. Supports --no-backup, --dry-run, --full flags.
/initCreates CLAUDE.md and AGENTS.md templates in the project root by scanning the codebase to populate project details like name, stack, and architecture, leaving TODOs where data is undetermined, and confirms creation with TODO list.
/generate-AGENTS-fileGenerates or updates AGENTS.md with project-specific context, domain knowledge, constraints, rules, and git patterns for AI coding assistants like Claude Code, Cursor, and Copilot.
Share bugs, ideas, or general feedback.
Wraps hooks/claude-to-agents.py so non-Claude tools (OpenAI Codex, Gemini Code Assist, anything else honouring the AGENTS.md convention) can read the same instructions as Claude.
Decide first by asking which guarantee the user wants:
--symlink (default on macOS / Linux): AGENTS.md becomes a symlink to CLAUDE.md. One source of truth — edits to CLAUDE.md show up in AGENTS.md instantly. Codex/Gemini read it transparently. On Windows the script falls back to --copy and prints a notice.--copy: byte-for-byte snapshot. Use when the user wants to fork the instructions for non-Claude tooling (Codex/Gemini reading a different policy) or when their VCS / build pipeline doesn't follow symlinks.--inline-chain: walk every @path/.../CLAUDE.md chain import recursively and write a single flat AGENTS.md with all sub-file content inlined. Recommended for Codex/Gemini in modular projects — those tools don't resolve @-imports, so without inlining they'd only see the root file.If the user is silent on mode, default to --symlink for simple projects and recommend --inline-chain for projects with > 1 CLAUDE.md (run find . -name CLAUDE.md -type f -not -path '*/.git/*' -not -path '*/node_modules/*' | wc -l first to decide).
test -f CLAUDE.md — if missing, tell the user /enhance-claude-md is the right command first.python3 "${CLAUDE_PLUGIN_ROOT:-${CLAUDE_PROJECT_DIR:-.}}/hooks/claude-to-agents.py" --mode <mode>
--symlink: readlink AGENTS.md should print CLAUDE.md.--copy: diff -q CLAUDE.md AGENTS.md should return clean.--inline-chain: AGENTS.md must contain content from every chained sub-file; the script strips backlinks and @-import lines automatically.AGENTS.md is renamed to AGENTS.md.backup.<UTC-timestamp> before overwrite. Pass --force to skip the backup (destructive).--symlink) leave CLAUDE.md untouched.