agents-md

agents-md is a Claude Code mod by anthropics that aGENTS.md as project instructions, by one option. Under claude-md-or-agents-md a project with no instruction files of its own gets its AGENTS.md files instead: a prompt.context hook asks.

Updated 2026-10-17

What is agents-md?

agents-md is a Claude Code mod by anthropics that aGENTS.md as project instructions, by one option. Under claude-md-or-agents-md a project with no instruction files of its own gets its AGENTS.md files instead: a prompt.context hook asks. It is listed under Context & memory and has no public popularity data yet.

TypeClaude code mod
Authoranthropics
Repositoryanthropics/claude-code
Popularityno public popularity data yet
CategoryContext & memory
SecurityLow risk (84/100)
Rank#2,421 of 5,272 Claude Code mods; #234 in Context & memory
Last commit2026-10-17
Stars this week+1,659
Hooks4 events
SeesRead calls, subagent spawns, the system prompt
Draws onnothing

Is agents-md safe to install?

agents-md scores 84/100 on the MCPMods security check: Low risk. Things to review: reads environment variables. It passed 6 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.env.getreads env vars
$.fs.ancestorsreads files
$.session.cwd
$.session.root
$.telemetry.logtelemetry
$.telemetry.marktelemetry
$.ui.logdraws interface

How do I install agents-md?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/anthropics/claude-code
    claude plugin validate ./claude-code/mods/agents-md
  3. Install it. It ships inside Claude Code. Turn it on or off from the Installed tab in /plugin.
    /plugin

Or ask Claude to set it up

Paste this into Claude Code and it installs agents-md for you:

Install the "agents-md" Claude Code mod from https://github.com/anthropics/claude-code/tree/main/mods/agents-md. Run claude plugin validate on it first and show me what it can access before you enable it.

More from anthropics/claude-code

This repository has 4 Claude Code mods on MCPMods.

  • diff: The diff pane as a plugin: /diff opens the session's uncommitted changes beside the transcript, file by file with their (Review before installing)
  • sec-default: Security default for organizations: seated outermost, it keeps the organization's classic hooks, prompt content, setting (Low risk)
  • telemetry: Plugin analytics: hooks $.telemetry's two events, so a plugin logs an event or marks a feature's use as a first-party ro (High risk)