Skip to content

Add agents.txt v1.0 at repo root#58801

Open
barneywohl wants to merge 1 commit into
anthropics:mainfrom
barneywohl:add-agents-txt
Open

Add agents.txt v1.0 at repo root#58801
barneywohl wants to merge 1 commit into
anthropics:mainfrom
barneywohl:add-agents-txt

Conversation

@barneywohl
Copy link
Copy Markdown

Adds agents.txt to declare what AI agents may do on this repo

Honest opener: this PR, and the agents.txt v1.0 spec it implements, were built entirely with Claude Code in autonomous /goal mode by a heavy daily user. So Claude Code is, in a real sense, the first author and the first target.

What is agents.txt

A small INI file at the repo root that tells autonomous coding agents what's allowed, what's prohibited, and what needs human approval. Same lineage as robots.txt → sitemap.xml → llms.txt → agents.txt. Spec v1.0 shipped this week:
https://github.com/barneywohl/agentpress/blob/main/docs/AGENTSTXT_SPEC.md

Why this repo specifically

The companion tool agentpress ships an MCP server that explicitly targets Claude Code (its README has a "Wire into Claude Code" section: https://github.com/barneywohl/agentpress). If Claude Code natively respected agents.txt, every Claude Code user would get a free policy-aware layer on every repo they touch — agentpress or not. Adopting it here is the highest-leverage signal in the ecosystem.

What this adds

  • A single file: agents.txt at the repo root
  • Tuned for what this repo actually is: docs, examples, plugins, install scripts, issue tracker
  • prohibited_actions covers anything that could affect the binary's reputation (npm publish, install script edits, force push, impersonation)
  • requires_human_approval covers README, SECURITY.md, LICENSE, CHANGELOG, scripts/, workflows/, issue templates, plugins/, examples/
  • entry_points map to the real issue templates (bug_report.yml, feature_request.yml, documentation.yml, model_behavior.yml)

What this does NOT do

  • Does not change the Claude Code binary or runtime behavior
  • Does not add CI, workflows, or required checks
  • Does not modify README, SECURITY.md, LICENSE.md, or any existing file
  • Does not assume Claude Code will parse it — adoption is a separate conversation

CLA

Happy to sign Anthropic's CLA / acknowledge Commercial ToS as needed. Flag me and I'll complete it before review.

Stakes

This is the most visible PR of the agents.txt launch wave and I want it to land cleanly, not be a stunt. Fully understand if the answer is "interesting, but not yet" — happy to close if not a fit. Either way, thank you for what you've built; this PR exists because Claude Code made building agents.txt possible.

— filed by an active Claude Code user

barneywohl pushed a commit to barneywohl/agentpress that referenced this pull request May 13, 2026
…ypescript}, claude-code

- modelcontextprotocol/servers#4154
- anthropics/anthropic-sdk-python#1539
- anthropics/anthropic-sdk-typescript#1043
- anthropics/claude-code#58801

All 5 friendly-seed PRs (per LAUNCH/TARGET_REPOS.md tier 1) now filed.
Holding off on the 15 secondary targets per maintainer guidance:
filing more in one day from the same account would look bot-shaped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant