Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
npx claudepluginhub bendrucker/claude-code-agents-md --plugin agents-mdClaude Code plugin for reading AGENTS.md files.
Loads project instructions from AGENTS.md files automatically, enabling Claude Code to work with projects using this open standard.
If you work in a small number of repositories, symlinking AGENTS.md to CLAUDE.md is probably fine:
ln -s AGENTS.md CLAUDE.md
This plugin is intended for users who work across many repositories and want consistent AGENTS.md support without per-project setup. It's also useful for large monorepos where linking AGENTS.md to CLAUDE.md in every subdirectory is harder to reliably maintain.
With the plugin installed, AGENTS.md files load automatically as you navigate your codebase. Subdirectory files take precedence over parent files, giving you hierarchical context without manual symlink management.
This plug-in tries to adhere as closely as possible to the AGENTS.md spec, which has subtle differences from CLAUDE.md.
claude plugin install github:bendrucker/claude-code-agents-md
Add the bendrucker marketplace, then install the plugin:
claude plugin marketplace add bendrucker/claude
claude plugin install agents-md@bendrucker
The plugin uses two hooks to inject AGENTS.md content into Claude Code sessions:
SessionStart: At session start (or after /clear, /compact), injects the root AGENTS.md from the project directory.
PostToolUse (Read): After any file read, walks up the directory tree from the read file to find the closest AGENTS.md and injects it. This allows subdirectories to have their own context.
Each AGENTS.md is injected only once per session to avoid context duplication.
Create AGENTS.md files in your project to provide context to Claude Code:
project/
├── AGENTS.md # Root instructions (injected at session start)
├── src/
│ ├── api/
│ │ └── AGENTS.md # API-specific instructions
│ └── utils/
└── tests/
└── AGENTS.md # Testing instructions
When Claude reads a file in src/api/, it receives the src/api/AGENTS.md content. The closest AGENTS.md to the file being read wins.
See the AGENTS.md standard for guidance on file contents.
AGENTS.md vs CLAUDE.mdClaude Code natively supports CLAUDE.md files for project instructions. This plugin adds support for AGENTS.md, an open standard.
| Behavior | CLAUDE.md | AGENTS.md |
|---|---|---|
| Loads nearest file in directory tree | ✓ | ✓ |
| Loads all ancestor files to project root | ✓ | ✗ |
@ file imports | ✓ | ✗ |
Use AGENTS.md for portable project instructions across AI coding tools. Use CLAUDE.md for richer Claude Code-specific features.
Share bugs, ideas, or general feedback.
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Syncs all AGENTS.md files to CLAUDE.md (recursively) and adds CLAUDE.md to .gitignore. Useful when your tooling uses AGENTS.md but Claude Code reads CLAUDE.md.
Generate and maintain AGENTS.md, copilot-instructions.md, and other agent rule files
CLAUDE.md lifecycle toolkit: initialise, enhance, sync, and modularise CLAUDE.md files with a 150-line cap, automatic chaining, and Karpathy behavioural guardrails.
Commands for loading context and priming Claude for specific tasks
Automatically detects and loads AGENTS.md files to provide agent-specific instructions alongside CLAUDE.md. Enables specialized agent behaviors without manual intervention.
Make a codebase agent-ready by scaffolding AGENTS.md, ARCHITECTURE.md, and docs/ structure following progressive disclosure patterns. Creates CLAUDE.md as a symlink for Claude Code compatibility.
Code review workflows for peer and self review
Cross-tool daily review workflow
Bun runtime patterns, bunx, shell scripting, lockfile, and testing
POSIX-compliant trailing newline management for files
Interacting with Things 3 task manager for Mac
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim