Hivra
Free tool. No signup.

AGENTS.md and CLAUDE.md generator

Build a short, practical AGENTS.md or CLAUDE.md for Claude Code and Codex without copying a bloated 400-line template.

Pick your file format, repository stack, run mode, and guardrails. If you use both Claude Code and OpenAI Codex, the default option generates one AGENTS.md plus a 5-line CLAUDE.md that imports @AGENTS.md so rules never drift.

Optional custom test and lint commands stay strictly in your browser and never enter shared links. Copy the output or download the .md file offline.

Stays in your browser and is never added to shared links.

Guardrails to include
Output fileAGENTS.md
Guardrails4 of 5
Prompt footprint~301 tok

Generates a 33-line AGENTS.md (~301 tokens) plus a 5-line CLAUDE.md pointer (@AGENTS.md) so Claude Code and Codex read one source of truth without duplicating rules.

AGENTS.md
# AGENTS.md

Repository instructions for coding agents (Next.js / TypeScript). Keep this file short and factual.

## Commands
```bash
# Install dependencies
npm ci

# Run tests
npm test

# Lint and typecheck
npm run lint && npm run typecheck

# Production build
npm run build
```

## Operating mode: Unattended PR worker
- Work on a new branch off the default branch; never push directly to main or deploy to production.
- If requirements are ambiguous or a verification command fails twice, stop and leave a clear note instead of guessing.
- Keep commits small and verifiable. Include exact test output in the pull request description.

## Guardrails
- Run the test suite before and after changes. Add or update a regression test for every bug fix.
- Never push or commit directly to main. Work on a feature branch and open a pull request.
- Never read, print, or commit .env files, private keys, or API tokens. Stop if a command asks for credentials.
- Before stopping or handing off, record commands run, test output, and open questions in the PR or work log.

## Done checklist
- Relevant tests and lint pass on the final diff.
- No secrets, temporary files, or unrelated edits remain in git status.
CLAUDE.md (imports AGENTS.md)
# CLAUDE.md

Shared repository rules live in `@AGENTS.md` so Claude Code and Codex stay in sync.

@AGENTS.md
Share this preset (excludes custom commands)

Format notes: OpenAI Codex reads AGENTS.md from the repository root and nested directories. Claude Code reads CLAUDE.md and supports importing @AGENTS.md so both tools share one rule file. Format rules checked as of October 2026.

An instruction file guides the model, but it is not a hard sandbox. For unattended overnight runs, pair AGENTS.md with a separate Linux computer that holds only that project's repo and keys. Hivra starts at $9.99 a month for 2 vCPU and 4 GB, not paused for inactivity.

Start on the $9.99 plan

How this AGENTS.md and CLAUDE.md generator was built

File discovery names, @file imports in CLAUDE.md, and nested directory behavior come from Anthropic's Claude Code memory documentation and OpenAI's Codex AGENTS.md guide. Sources: Anthropic Claude Code memory and CLAUDE.md documentation, OpenAI Codex AGENTS.md guide.

Templates are intentionally kept under 50 lines (~200 to 300 tokens) with concrete shell commands, an explicit operating mode, and a done checklist so agents spend context on code instead of boilerplate.

The dual-file mode emits AGENTS.md as the primary file and a 5-line CLAUDE.md containing @AGENTS.md, matching Claude Code's documented import syntax so teams avoid maintaining two diverging rule files.

Generation and .md downloads happen entirely in your browser. Share links serialize only structured dropdown and checkbox presets, never typed commands.

Last checked October 2026.

Worked examples

Shared AGENTS.md + CLAUDE.md pointer for a Next.js PR worker

Inputs: Both files, Next.js / TypeScript, unattended PR worker, 4 default guardrails.

AGENTS.md (39 lines, ~290 tokens) + CLAUDE.md (@AGENTS.md pointer)

Gives both Claude Code and Codex the exact npm test/lint/build commands, branch-only PR rules, and a secret-leak guardrail in one file.

CLAUDE.md only for interactive Python development

Inputs: CLAUDE.md only, Python (pytest + ruff), interactive pair coding, tests-first + small-diffs.

CLAUDE.md (35 lines, ~240 tokens) with uv sync, pytest, ruff check .

Keeps Claude Code asking before schema or public API changes while enforcing pytest runs on every fix.

Read-only audit AGENTS.md for a Rust repository

Inputs: AGENTS.md only, Rust (cargo test + clippy), read-only audit, protect-secrets.

AGENTS.md (34 lines, ~230 tokens) prohibiting edits and requiring file:line citations

Pairs with codex exec --sandbox read-only for safe overnight security or code-quality reviews.

Cite this page

Hivra, "AGENTS.md & CLAUDE.md Generator", https://hivra.cloud/tools/agents-md-generator, facts last checked October 2026.

Source: <a href="https://hivra.cloud/tools/agents-md-generator">Hivra</a>, AGENTS.md &amp; CLAUDE.md Generator, facts last checked October 2026.

Common questions

What is the difference between AGENTS.md and CLAUDE.md?

OpenAI Codex and several open agent tools read AGENTS.md from your repository root and nested directories. Claude Code reads CLAUDE.md. You can keep one source of truth by putting rules in AGENTS.md and adding @AGENTS.md inside CLAUDE.md.

How long should an AGENTS.md or CLAUDE.md file be?

Keep it under roughly 60 to 100 lines. Both Anthropic and OpenAI recommend short, verifiable commands and hard rules over long prose, because instruction files consume context tokens on every turn and bloated files get ignored.

Does AGENTS.md enforce security boundaries on its own?

No. AGENTS.md is prompt guidance, not a kernel or filesystem boundary. For unattended runs, combine it with .claude/settings.json deny rules, Codex --sandbox workspace-write, or a separate Linux VM without personal keys.

Can I use nested AGENTS.md files in a monorepo?

Yes. Keep root build, lint, and branch rules in the top-level AGENTS.md, then add short package-level AGENTS.md or CLAUDE.md files only where a subdirectory has different commands or constraints.

Are my custom test or lint commands sent to Hivra or stored in the URL?

No. Everything runs locally in your browser. Share links only encode the structured dropdown and checkbox choices, never free-text commands you type.

What should I put in AGENTS.md for overnight or unattended PR runs?

Include exact install, test, and lint commands, a rule forbidding direct pushes to main, a stop condition when a verification command fails twice, and a requirement to log commands run and test output in the PR.

When you need a computer that stays on

If you want the computer to stay on after you leave your desk, Hivra offers a managed computer starting at $9.99 a month for 2 vCPU and 4 GB of RAM. A paid Hivra Cloud computer stays on and is not paused for inactivity. The plan does not include AI usage. Bring your own account or key where the agent supports it, or pay with Hivra credits. Claude Code can use your own Anthropic sign-in or Hivra credits. There is a 7-day money-back guarantee on card payments.

Hivra is independent and is not affiliated with Anthropic or OpenAI.