AI-Driven Development¶
This project is built to work with AI coding assistants, including Gemini CLI, Google Antigravity, Claude Code, Codex and GitHub Copilot. They all follow one rule set, AGENTS.md, so the guidance does not depend on the tool you choose.
🤖 Using an Assistant¶
Assistants are useful for implementation and tests, code review, and keeping documentation current. Review and test their changes like any other code.
Example: Gemini CLI¶
# Start an interactive session
gemini
# Run tool calls in a sandbox
gemini --sandbox
# Example directive
> "Add a new CRUD endpoint for 'Products' following the existing user pattern"
Example: Claude Code¶
Claude Code runs in the terminal, and is also available for VS Code, JetBrains IDEs and as a desktop app. It requires a paid plan or API access.
Install and start¶
# Check the version (see "Project instructions" below)
claude --version
# Start an interactive session from the project root; the first run asks you to log in
claude
# Start in plan mode: Claude proposes a plan and waits for approval before editing source files
claude --permission-mode plan
# Example directive
> "Add a new CRUD endpoint for 'Products' following the existing user pattern"
Project instructions¶
Claude Code v2.1.281 or later reads AGENTS.md directly, so this repository needs no CLAUDE.md.
A CLAUDE.md hides AGENTS.md by default
If a CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md exists in the working directory or above it, Claude Code reads that instead of AGENTS.md. This also applies to the file that /init creates. To keep the shared rules, make this the first line of your CLAUDE.md, and add only Claude-specific notes below it:
Use the same import with an older Claude Code version. CLAUDE.local.md is for personal notes: put the import in it too if there is no CLAUDE.md that has it, and do not commit it. See how Claude Code loads instructions.
Useful commands¶
| Command | Use it to |
|---|---|
/plan <task> |
Agree on an approach before any source file is edited, for example for schema or permission changes. |
/code-review |
Check the current diff for correctness bugs. |
/security-review |
Check the branch's changes for security vulnerabilities, for example after touching auth or RBAC. |
/permissions |
Manage which tool calls are allowed, need confirmation or are denied. |
/memory |
Edit instruction files and view what Claude Code has saved to its auto memory. |
/clear |
Start the next task with an empty context. |
In the terminal, press Shift+Tab to switch permission modes. Check which mode is active before you start: some let Claude Code act without asking you first.
Protecting secrets¶
The repository does not ship Claude Code settings. To stop Claude Code's file tools from reading your local .env, add a deny rule to .claude/settings.json (shared with the team) or .claude/settings.local.json (yours only, do not commit it):
This rule is not a complete barrier: a script that Claude Code runs can still open the file. For enforcement by the operating system, enable sandboxing and add the file to sandbox.filesystem.denyRead. Keep production secrets off development machines.
🧠Architectural Mandates (AGENTS.md)¶
AGENTS.md in the project root holds the rules every AI assistant (and every human) follows: layering, migrations, DTOs, error handling, security conventions and the definition of done. GEMINI.md imports it for Gemini CLI. Claude Code and many other assistants can read AGENTS.md directly.
✅ Definition of Done¶
Before accepting a change, check that:
uv run prek run --all-filesanduv run pytestpass (coverage ≥ 90%).openapi.jsonis regenerated if routes or schemas changed.docs/andrelease-notes.mdare updated, with an ADR for significant decisions.