claude-agents-md
v1.9.0
Published
Claude Code CLI but it uses AGENTS.md instead of CLAUDE.md
Maintainers
Readme
Claude AGENTS
A wrapper for the Claude CLI that can run in AGENTS.md mode - ignoring CLAUDE.md and using AGENTS.md (like every other editor).
What's New 🎉
- Switch between CLAUDE and AGENTS modes
- Use the handy
clbash wrapper for quick mode switching - Mode preference is saved between sessions
- NEW: Auto-start Claude after mode switch
Installation
# Install
npm install -g claude-agents-mdThe first time you run claude-agents-md, you will be presented with a consent prompt explaining the security implications. You must explicitly agree to continue.
Your consent choice is remembered for future runs.
Using command-line flags
# Run in CLAUDE mode (normal Claude CLI behavior)
claude-agents-md --claude
claude-agents-md --no-agents
# Run in AGENTS mode (default)
claude-agents-mdUsing mode commands
# Switch to AGENTS mode
claude-agents-md mode agents
# Switch to CLAUDE mode
claude-agents-md mode claude
# Check current mode
claude-agents-md modeVisual Mode Indicators
The tool now shows clear visual indicators of which mode you're in:
- AGENTS Mode:
[AGENTS]prefix in yellow 🔥 - CLAUDE Mode:
[CLAUDE]prefix in cyan 🛡️
Usage
claude-agents-md [options]All arguments and options are passed directly to the Claude CLI.
This wrapper in AGENTS mode:
- Checks for and automatically installs updates to the Claude package
- Displays "🔥 AGENTS MODE ACTIVATED 🔥" warning in yellow text
- Creates a modified copy of the Claude CLI code to use AGENTS.md
- Leaves the original Claude CLI file untouched (won't affect your normal
claudecommand)
In CLAUDE mode, it simply runs the original Claude CLI without modifications.
Why?
You want to use AGENTS.md
Debugging
If you encounter any issues, you can run with debug output:
DEBUG=1 claude-agents-mdThis will show additional information about:
- Claude package update checks
- Current and latest available versions
- When updates are being installed
- Modifications being made to the CLI file
Auto-Update Feature
Claude AGENTS automatically checks for updates to the Claude package each time it runs:
- When you run
claude-agents-md, it checks for the latest version of@anthropic-ai/claude-codeon npm - If your installed version is outdated, it will:
- Update your package.json with the latest version
- Run npm install to get the newest version
- Notify you that an update was applied
- This ensures you're always using the latest Claude CLI features
Important Security Disclaimer
This is an unofficial tool and not supported by Anthropic. Use at your own risk.
