Skip to content
Start a project

Free tool

CLAUDE.md and AGENTS.md Generator

Describe the project, pick your stack, copy the files. Commands and guardrails come prefilled, so Claude Code, Codex, Cursor and Copilot work with context instead of guesswork.

FreeNo sign-upResult in minutes

How it works2 minutes

  1. Describe your project in one sentence.
  2. Pick your stack, commands fill in themselves.
  3. Drop both files into the root of your repo.
Project

A name and one sentence on what it does. This is the first context the agent reads.

Stack

Commands are prefilled to match. You can edit every one of them afterwards.

Adjust commands and rules (optional)Prefilled with sensible defaults for your stack: commands, structure, conventions, guardrails, definition of done, language.
Commands

Exact commands save the agent guesswork and you corrections. Empty fields are left out of the file. Switching stack or package manager refills the fields.

Project structure

One line per folder: what lives where?

Conventions
Boundaries for the agent

What must never happen and what needs a question first.

Definition of done

What has to pass before the agent reports a task as done?

File language

Your files

Codex, Cursor, GitHub Copilot, Gemini CLI and many other agents read AGENTS.md. Claude Code reads CLAUDE.md, which imports the same rules via @AGENTS.md. Both files go in the root of your repo.

AGENTS.md90 lines
# Project

## Overview

Describe in one sentence what this project does and who uses it.

- Stack: Next.js / React (TypeScript)
- Package manager: pnpm

## Setup and commands

```bash
# Install dependencies
pnpm install

# Start the dev server
pnpm dev

# Production build
pnpm build

# Run all tests
pnpm test

# Run a single test
pnpm test path/to/file.test.ts

# Lint
pnpm lint

# Typecheck and static analysis
pnpm exec tsc --noEmit
```

## Project structure

Describe the main folders here: where routes, components, business logic and tests live.

## Code style and conventions

- Use strict typing. No untyped escapes (such as `any`) without a comment that explains why.
- Every change in behaviour comes with a test.
- Follow the existing patterns in this codebase before you introduce new ones.
- Do not add new dependencies without asking first.

## Testing

- Add or update tests for every change in behaviour.
- Run the single test you are working on first, then the full suite before you finish.
- Never delete or skip a failing test to make the suite pass. Fix the cause or ask.

## Rules

### Always

- Read this file and the relevant code before you change anything.
- Keep changes focused on the task. Mention unrelated problems instead of fixing them on the side.
- When you finish, explain what you changed and why.

### Ask first

- Delete files or directories.
- Change CI/CD pipelines, deployment or infrastructure configuration.

### Never

- Commit secrets, API keys or .env files.
- Force-push or rewrite Git history.
- Edit generated files or lockfiles by hand. Regenerate them with the tool that owns them.
- Modify database migrations that have already run. Create a new migration instead.
- Disable, skip or loosen tests, linters or type checks to make something pass.

## Definition of done

A task is only done when all of these are true:

- Lint passes (`pnpm lint`)
- Typecheck passes (`pnpm exec tsc --noEmit`)
- All tests pass (`pnpm test`)
- You reviewed your own diff and removed debug code

## Notes for agents

- Keep your context lean: open the files you need, not the whole repo.
- Plan before large or multi-file changes and share the plan before you start.
- Prefer small, reviewable diffs over one big change.
- If an instruction here is unclear or outdated, say so instead of guessing.

<!-- Created with the free AGENTS.md generator by PebbleByte: pebblebyte.com/en/free-tools/claude-md-agents-md-generator. Edit freely. -->

Non-binding guidance, not legal, tax or technical advice. Liability excluded to the extent permitted by law. Your input stays in your browser. Disclaimer

Files done. Ready to bring your team to agentic coding?

In our agentic coding workshop we set up rule files, permissions and review flows with your team in your real repo. Your intro call is with the engineers who run the workshop.

Book an intro call

Key points

  • AGENTS.md is the open format for coding agents: Codex, Cursor, GitHub Copilot, Gemini CLI and many other tools read it.
  • CLAUDE.md is Claude Code's context file. With the import line @AGENTS.md it pulls in the shared rules, so you maintain one source.
  • Put in commands, project structure, conventions and clear boundaries. Leave out secrets, long docs and anything your linter already enforces.
  • Keep both files short (under 200 lines) and add to them whenever the agent repeats a mistake.

PebbleByte, a software agency in Vienna, works with coding agents in client projects every day and shows engineering teams how to do it safely in our agentic coding workshops. The ingredient that matters most is almost always the same: good context. This generator builds it in a few minutes, using the structure we use in our own repos.

What is an AGENTS.md file?

AGENTS.md is a Markdown file in the root of your repo that tells coding agents how your project works: commands, structure, conventions and boundaries. It is an open format read by OpenAI Codex, Cursor, GitHub Copilot, Gemini CLI, Jules and many other tools. The simplest way to think of it is a README for agents.

Read more

A README is written for people: what does the project do, how do I get started? AGENTS.md is written for agents that change code. It holds the details an agent needs on every task that would clutter a README: exact test commands, naming conventions and folders that are off limits.

The format is deliberately plain. There is no required schema, just Markdown with sensible headings. In a monorepo you can add more AGENTS.md files in subfolders, and most agents read the one closest to the code they are editing. The official description lives at agents.md.

What is a CLAUDE.md file and how does Claude Code read it?

CLAUDE.md is Claude Code's memory file. Claude Code loads it into context automatically at the start of every session. It exists at project level (shared with the team, in the repo), in your home folder under ~/.claude for personal preferences, and optionally as a local CLAUDE.local.md that stays out of Git.

Read more

The /init command has Claude Code analyse your repo and write a first draft. That is a good start but rarely enough: whatever your team never wrote into the code, the agent cannot guess. Permissions, prohibitions and habits have to be spelled out.

The import syntax is handy. A line like @AGENTS.md or @docs/architecture.md pulls in other files, so CLAUDE.md stays short and points to content that is maintained anyway.

CLAUDE.md vs AGENTS.md: which one do you need?

If your team only uses Claude Code, a CLAUDE.md is enough. Once more than one agent is in play, which is true for most teams, you need both. The best setup: all shared rules live in AGENTS.md, and CLAUDE.md imports them with @AGENTS.md. That way there is exactly one source of truth.

Read more

The repo behind this website works exactly like that: at its core, CLAUDE.md is one import line, and every rule for copy, design and tests lives in AGENTS.md. Someone on Codex gets the same rules as someone on Claude Code.

Files maintained twice drift apart almost every time. A few weeks in, one says pnpm, the other says npm, and the agent does whatever happened to be in context. That is why the generator builds both files as a pair: a complete AGENTS.md and a lean CLAUDE.md with the import and a few notes just for Claude Code.

CLAUDE.md and AGENTS.md compared
AspectAGENTS.mdCLAUDE.md
Read byCodex, Cursor, GitHub Copilot, Gemini CLI, Jules and moreClaude Code
LocationRepo root, optional subfoldersRepo root, subfolders, home folder
ImportsNo, plain MarkdownYes, with @path/to/file
Recommended useAll shared rules@AGENTS.md plus notes just for Claude Code

What belongs in a CLAUDE.md or AGENTS.md, and what doesn't?

Include what an agent cannot reliably read from the code: exact commands for build, tests and lint, the project structure in a few lines, your conventions and clear boundaries for what must never happen or needs a question first. Leave out secrets, long architecture documents and rules your linter or formatter already enforces.

Read more

Secrets never belong in these files, not even test credentials. The files live in the repo, end up in forks and are read by every tool with access to the code.

  • Commands: install, dev server, build, all tests, a single test, lint and typecheck. The single test command alone saves the agent minutes per run.
  • Structure: where routes, components, business logic and tests live. A handful of lines is enough.
  • Conventions: what your team does differently from the norm. The agent already knows what is standard everywhere.
  • Boundaries: secrets, force pushes, migrations, CI/CD. Separate never from ask first.
  • Definition of done: which checks must pass before the agent reports a task as done.

What guardrails do coding agents need?

A rule file is a request, not a lock. Real guardrails come from several layers working together: restricted permissions in the tool, secrets outside the repo, protected branches, tests in CI and a human review before every merge. AGENTS.md describes these rules, while the tool, Git and your pipeline enforce them.

Read more

In Claude Code, settings.json defines which commands the agent may run without asking. Other agents have similar approval modes. Start restrictive and widen permissions only once you trust the workflow.

For a compact overview of safe workflows, prompts and review checklists, grab the free Agentic Coding Cheat Sheet. If teams outside engineering use AI too, a company-wide AI policy covers tools, data and accountability. If you want to build AI agents into your own product rather than just use them, see our AI engineering work. Short on senior capacity? There is team extension.

Sources

Last reviewed:

Agentic coding across your team, with clear rules

In our agentic coding workshop your team works in its own repo: rule files, permissions, prompts and reviews until the workflow sticks. Run by senior engineers who work this way every day.

FAQ

CLAUDE.md and AGENTS.md FAQ

  • Where do I put the CLAUDE.md file?

    The team version goes in the root of your repo and gets committed. Personal preferences for all projects go in ~/.claude/CLAUDE.md, private notes for one project in a CLAUDE.local.md that stays out of Git. Claude Code also reads CLAUDE.md files in subfolders once it works there.

  • Do I need both files?

    As soon as your team uses more than one agent, yes. Keep the rules in AGENTS.md and let CLAUDE.md import them with the line @AGENTS.md. Claude Code, Codex, Cursor and Copilot then read the same rules, and you change them in one place.

  • Does Cursor read AGENTS.md?

    Yes. Cursor supports an AGENTS.md in the project root as a simple alternative to its own rules files. OpenAI Codex, GitHub Copilot, Gemini CLI, Jules and many other tools read the format as well. Whether files in subfolders are picked up is documented by each tool.

  • Should the file be committed to the repo?

    Yes. AGENTS.md and the team CLAUDE.md belong in the repo so every developer and every agent works with the same rules and changes show up in review. Only personal files such as CLAUDE.local.md stay local. Secrets never belong in any of these files.

  • Should I write the files in English or German?

    Both work, agents understand German very well. We still usually recommend English: code, commands and error messages are in English, technical terms stay unambiguous without translation, and international teammates can read along. The generator creates both versions.

  • Is my input stored?

    No. The generator runs entirely in your browser. Project name, commands and rules are neither sent to PebbleByte nor stored. Copy or download your files before you close the page.

Disclaimer

This tool is a free information service (last reviewed: November 2026). Its results are automated, non-binding guidance and not legal advice, tax advice or technical advice for your individual case; no advisory or information contract is formed. No warranty is given as to accuracy, completeness or currency, and you use the results at your own responsibility. Liability is excluded except for intent, gross negligence or personal injury. Your input is processed only in your browser and is neither transmitted nor stored.

The generated files are a starting point, not a reviewed configuration for your project. Check every command in your repo before you commit the files. Coding agents and their file formats change fast, so details can change after the review date. The generator is not technical advice for your specific setup.