Your codebase, written down for AI agents.
AGENTS.md and CLAUDE.md generated from your repo's real commands, layout and conventions, for Claude Code, Codex, Cursor and Copilot.
npx github:halilberkayy/groundfileExcerpt, lightly shortened. The full file also covers layout, tests, CI and git.
One scan, every agent's file
AGENTS.md is the shared source. The other files point at it or carry the same block, so you never maintain four copies by hand.
| File | Read by | How to get it |
|---|---|---|
AGENTS.md | Codex, Cursor, GitHub Copilot and other tools that follow the AGENTS.md convention | default |
CLAUDE.md | Claude Code, through an @AGENTS.md import line | default |
.cursor/rules/groundfile.mdc | Cursor, as an always-on project rule | --targets cursor |
.github/copilot-instructions.md | GitHub Copilot repository instructions | --targets copilot |
A readiness score you can put in CI
Eleven checks worth 100 points. The one that matters most over time: is the generated context still true for today's code?
$ npx github:halilberkayy/groundfile --check Agent readiness for groundfile: 85/100 (B) ✓ An agent context file exists ✓ Claude Code can see it ✓ Generated context matches the code today ✓ A test command is discoverable ✓ The repo has tests to run ✗ Lint or format tooling is set up → Add a linter/formatter config and a lint script. ✗ A build, type-check or run command is discoverable ✓ README explains what the project is ✓ CI runs checks on every change ✓ Required environment variables are documented ✓ No huge text files to flood a context window
# .github/workflows/ci.yml - run: npx github:halilberkayy/groundfile --check --min 80 # fails the build when AGENTS.md goes stale, # or when the repo loses its test command
That is Groundfile scoring its own repository. It has no linter, and it says so.
What it reads
Only files in your repo. If a fact isn't there, Groundfile leaves it out instead of guessing. Nothing is sent over the network.
Stacks
package.json, lockfiles, pyproject.toml, go.mod, Cargo.toml, pubspec.yaml, composer.json, Gemfile, Gradle, Maven, .csproj, Package.swift
Commands
Package scripts, Makefile targets, CI run: steps, framework defaults like go test ./... or php artisan test
Conventions
.editorconfig, lint and format configs, TypeScript strict mode, test file patterns, Conventional Commits in git history
Environment
Variable names from .env.example. Values are never copied.
Hands-off zones
Lockfiles, generated code, applied migrations, files over 1 MB that would eat an agent's context
Your own notes
Text outside the groundfile:start and groundfile:end markers is never touched, and re-runs are byte-identical when nothing changed.
Questions
What is AGENTS.md?
A plain Markdown file at the root of a repository that tells AI coding agents how the project works: how to install, build, test and lint it, how it's laid out, and what not to touch. It is a shared convention used by tools such as Codex, Cursor and GitHub Copilot.
Does Claude Code read AGENTS.md?
Claude Code reads CLAUDE.md. Groundfile writes a CLAUDE.md whose first line is @AGENTS.md, an import, so Claude Code loads the same context and you keep one source of truth.
Will it overwrite my existing CLAUDE.md or AGENTS.md?
No. In an existing CLAUDE.md it only adds the import line at the top. In AGENTS.md it owns the block between its markers and leaves everything else alone. Use --dry-run to see the result first.
How is this different from asking the agent to write the file?
Commands like Claude Code's /init ask a model to read the repo and write a summary. Groundfile is deterministic: no model, no network, the same output for the same repo, cheap enough to re-run on every commit and to check in CI. The two work well together: let Groundfile own the facts and write your judgement calls under the markers.
Which languages and frameworks does it understand?
Node.js and TypeScript (npm, pnpm, yarn, bun), Python (pip, uv, poetry), Go, Rust, Dart and Flutter, PHP and Laravel, Ruby and Rails, Java and Kotlin with Gradle or Maven, .NET and Swift, plus Makefiles, Docker Compose and GitHub Actions.
Ground your agents in the real repo
npx github:halilberkayy/groundfile