Configure once, every model behaves the same way.
ai-assistant-instructions is the rules and conventions layer for every AI coding tool in the portfolio. The same files (CLAUDE.md, AGENTS.md, .cursorrules, etc.) are sourced from this repo so Claude Code, the Antigravity (agy) CLI, GitHub Copilot, and Codex all behave consistently.
What it does
- Defines the canonical
CLAUDE.mdandAGENTS.mdfiles used by every project - Sets the autonomous orchestration defaults — proceed on low-risk ambiguity, delegate context-heavy work, verify the result, and keep user output compact
- Owns the model-routing policy — when to reach for Claude vs Gemini vs Copilot vs local MLX
- Owns the tool-use rules — Read over
cat, Edit oversed, Bash for shell-only - Owns the git-flow branching/merge model and
git-flow-nexttool usage —agentsmd/rules/git-flow.md; the human-readable version lives in Branch conventions and PR conventions - Owns AI-runtime concerns: skill execution semantics, subagent typing, LiteLLM-routing details
- Owns the autonomy-resilience rules hardened after the 2026-07 overnight runs —
agentsmd/rules/subagent-resilience.md(probe before fan-out, bounded concurrency, mandatory solo fallback),agentsmd/rules/loop-cadence.md(every recurring loop gates itself on a durable min-interval marker), andagentsmd/rules/delegation-trust.md(a denial binds to the action, not the requester — no permission laundering across agent hops) - Owns the shared behavioral base (soul) for every agent surface —
agentsmd/rules/soul.md(ground truth before claims, verify before done, reversibility gates autonomy) and its copy-paste rendering for non-Claude agents,agentsmd/prompts/autonomous-base.md - Symlinks the canonical files into every consuming repo via Nix or a
direnvhook
The CLAUDE.md → @AGENTS.md convention
Every repo’s CLAUDE.md is a thin import of AGENTS.md in the same folder. Always. No exceptions.
AGENTS.md. Claude Code resolves @AGENTS.md as an inline file import (official docs) — the contents are loaded into context exactly as if they had been written into CLAUDE.md directly.
Why
Where it applies
Every repo. Public or private, monorepo or single-purpose, infra or app. If a repo has aCLAUDE.md, it must be the two-line import. Project-level instructions, command runbooks, conventions, and tool guidance all belong in AGENTS.md (or files it @imports).
The same convention applies symmetrically to GEMINI.md and any future vendor-specific files — each is a thin import of AGENTS.md.
The one exception is ai-assistant-instructions itself. Its AGENTS.md is already auto-loaded globally on Nix-managed machines (the home-level ~/CLAUDE.md imports it), so a project-level @AGENTS.md import there would load the identical bytes twice in every session. That repo’s CLAUDE.md is a stub explaining exactly this, and its auto-loaded rules likewise come from the global ~/.claude/rules wiring rather than a per-repo .claude/rules symlink.
How to migrate a repo
-
Move every section of the existing
CLAUDE.mdintoAGENTS.md(merge with any existing content, dedupe, prefer linking todocs/*.mdfor deep dives). -
Replace
CLAUDE.mdwith the two-line import shown above. -
If
AGENTS.mdends up > 12 KB, either trim further (link out todocs/) or add a.file-size.ymlextension: -
Mirror the same change in any other agent file (e.g.
GEMINI.md→@AGENTS.md). -
Update CI: most repos already inherit the
_file-sizecheck fromJacobPEvans/.github. No per-repo workflow edit needed.
How it fits
Getting started
1
Clone or symlink
git clone https://github.com/JacobPEvans/ai-assistant-instructions ~/.ai-assistant-instructions and symlink the project files into the relevant repo, or import via the Nix module the README points to.2
Pick a profile
Profiles cover personal, work, and learning contexts. The README enumerates which rules each one activates.
3
Update from upstream regularly
The rules evolve. Pull weekly or set up a routine in
claude-code-routines.Related repos
Repo boundaries
How rules, plugins, and docs are split across three repos.
claude-code-plugins
Extends Claude Code with custom skills, hooks, and commands that respect these rules.
nix-ai
Packages the AI tools that read these rules.
AI pipeline
How rules + tools + automation become an actual development loop.
Source on GitHub
Rules, profiles, full README.