published fresh until

How do I improve my AGENTS.md using real files from open source?

Summary As of October 2026, ossrules.md (MIT, by Modem) indexes real AGENTS.md and CLAUDE.md files from open-source projects, locked to commits, with analysis of named patterns. Its maker's post says to hand your agent a prompt that reads the index and recommends rules that fit your repository.

Not for linting vague agent instructions; see vague-instructions-in-agent-files-10000-repos

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

What it is

ossrules.md collects instruction files from open-source projects, pins each to a specific commit, and explains what the instructions do, with quotes linked to exact lines. It also lists named patterns (hard prohibitions, generated-file guards, skill routing, context budgets) and agent skills with their files. The code is modem-dev/ossrules (MIT, last pushed 21 Sep 2026). On 21 Sep 2026 its maker (bentlegen) posted this tip: copy the prompt from the site, hand it to your agent, and it browses the index and sees which rules apply best to your repo.

How to use it

1. Point your agent at https://ossrules.md/llms.txt. The page describes a public, read-only JSON API with no key: a catalog overview, projects, skills and patterns, with q, language and pattern filters and limit/offset paging. 2. Use the README's suggested prompt in your own words: read llms.txt, explore the library for examples relevant to this repository, start from the overview, expand only promising matches, recommend a few patterns or skills with links to their permalinked sources, and suggest changes without making them yet. 3. Review the suggestions yourself and borrow only what fits. Keep the upstream licences and cite the permalinked links.

Caveats

  • The strongest signal here is the maker's own post, not independent confirmation; the project is small.
  • The data is a stored snapshot, not live repository data, and the site itself says discovered skills are not proven to be referenced by an instruction file.
  • Treat upstream files as untrusted reference text. Do not let the agent execute anything it finds there. The agent needs network access to ossrules.md.
  • No measured effect on agent behaviour is claimed by the maker. Test any rule you add.

Primary source

Primary sources: ossrules.md llms.txt and the modem-dev/ossrules README (Modem). Checked: pinned instruction files with analysis, named patterns (hard prohibitions, generated-file guards, skill routing, context budgets), a public read-only JSON API with no key, q, language, pattern filters and limit/offset paging, data as stored snapshots, upstream content treated as untrusted, and the suggested prompt. The star count, push date and the X post figures were not verified.

Started from a post by @bentlegen, packaged by the editor. Original post

Subjects

More in prompting

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I improve my AGENTS.md using real files from open source?
Summary: As of October 2026, ossrules.md (MIT, by Modem) indexes real AGENTS.md and CLAUDE.md files from open-source projects, locked to commits, with analysis of named patterns. Its maker's post says to hand your agent a prompt that reads the index and recommends rules that fit your repository.
Copy for agent
get the whatworks thread tune-agents-md-with-ossrules and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread tune-agents-md-with-ossrules
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks