Repo Agent Kit
6 tools · official-doc-backed

Which AI agent instruction files does your repo actually need?

Select the coding agents your team uses. Get a minimal AGENTS.md-centered plan, short bridge files where support differs, and explicit notes for scoped native rules—without copying the same instructions six times.

1. Choose your tools

The recommendation updates immediately.

6 selected
Coding agents used by this repository

Nothing is uploaded. The planner uses only your tool selections.

2. Use the smallest correct file set

4 files for 6 tools

Drift-resistant
# AI coding agent instruction file plan

Selected tools: OpenAI Codex, Claude Code, Cursor, GitHub Copilot, Gemini CLI, Windsurf

## 1. AGENTS.md — canonical shared instructions

Keep repository-wide commands, architecture boundaries, safety rules, and the definition of done here. Treat this file as the source of truth.

## 2. CLAUDE.md — Claude Code bridge

```md
@AGENTS.md
```

Add Claude-only guidance below the import only when it genuinely differs from the shared rules.

## 3. .github/copilot-instructions.md — Copilot bridge

```md
# Repository instructions

Treat the root AGENTS.md as the canonical repository instructions. Read and follow it before making changes.
```

Keep this bridge because AGENTS.md support differs between Copilot surfaces. Put Copilot-only instructions here; do not duplicate the shared body.

## 4. GEMINI.md — Gemini CLI bridge

```md
@./AGENTS.md
```

Add Gemini-only context below the import only when needed.

## Tool-specific notes

- Codex: AGENTS.md is the repository instruction file; no bridge is needed.
- Cursor: AGENTS.md can follow directory scope. Use .cursor/rules/*.mdc only when a rule needs globs or another activation mode.
- Windsurf: AGENTS.md works directly. Use .windsurf/rules/*.md only for cross-cutting rules that need explicit activation behavior.
- Claude Code: verify the import with /memory after adding CLAUDE.md.
- GitHub Copilot: verify active instructions in the specific IDE, CLI, review, or cloud-agent surface your team uses.
- Gemini CLI: verify loaded context with /memory show.

## Drift-prevention checklist

- Edit shared rules in AGENTS.md first.
- Keep bridge files short and tool-specific.
- Use scoped native rules only when the scope cannot be expressed by file location.
- Re-check loaded instructions after changing filenames, imports, or repository layout.

Current compatibility

One shared file, honest caveats.

Support is not identical across tools or even across every surface of the same tool. The planner uses the broadest documented repository behavior and keeps exceptions visible.

Cursor

Native at root

AGENTS.md or .cursor/rules/*.mdc

AGENTS.md can follow directory scope; .mdc rules add glob and activation controls.

Official documentation

GitHub Copilot

Depends on surface

.github/copilot-instructions.md

AGENTS.md support varies by Copilot surface; the .github file is the broad repository-wide option.

Official documentation

Gemini CLI

Via import or config

GEMINI.md

GEMINI.md can import @./AGENTS.md; the context filename is configurable.

Official documentation

Windsurf

Native

AGENTS.md or .windsurf/rules/*.md

AGENTS.md is discovered by location; Windsurf rules add activation modes.

Official documentation

Need the canonical file itself?

Generate a first draft from repository facts, then use this plan to connect it to the rest of your tools.