Maxxing Code
Documentation · Instruction filesGetting startedModels and providersInstruction filesPermissionsToolsSessionsSkills, commands, sub-agentsMCPScriptingACPConfigurationArchitectureDesign decisions

Instruction files

MAXXING.md is where you tell the agent how your project works: what it is, how to build and test it, the conventions to follow, what never to touch. It is read at the start of every session and after /init.

# Shop API

Node 22, TypeScript, Fastify, PostgreSQL (Drizzle).

- Test: `npm test` (Vitest). Lint: `npm run lint`. Never commit with failing tests.
- Routes live in `src/routes/<resource>.ts`, one file per resource; validation with Zod schemas next to them.
- Money is in integer cents everywhere. No floats.
- Do not edit `src/generated/`: run `npm run codegen`.

@docs/architecture.md

/init writes a first version from what it finds in the project.

Compatible with CLAUDE.md and AGENTS.md

A project that already has a CLAUDE.md or an AGENTS.md works as it is: Maxxing Code reads them with the same rules, including @imports, .claude/skills, .claude/commands, .claude/agents, the permission rules of .claude/settings.json and .mcp.json. Nothing to rename, nothing to convert, and the files stay usable by the other tools.

When several exist in the same folder, all are read (MAXXING.md first, then CLAUDE.md, then AGENTS.md). A file reachable twice (a symlink, an import, an identical copy) is read once. To move to MAXXING.md without duplicating anything: ln -s CLAUDE.md MAXXING.md, or a MAXXING.md that contains @CLAUDE.md.

Where files are looked for

From the most general to the most specific; later files refine earlier ones:

  1. ~/.maxxing-code/MAXXING.md (yours, for every project), and ~/.claude/CLAUDE.md if it exists;
  2. in every folder from the file system root down to the working directory: MAXXING.md, CLAUDE.md, AGENTS.md, their copies inside .maxxing/ and .claude/, and MAXXING.local.md / CLAUDE.local.md / AGENTS.local.md (personal notes you keep out of version control).

So a session started in repo/packages/api gets the instructions of repo and those of repo/packages/api. /memory lists what was loaded.

Imports

@path on a line pulls another file in, right after the file that mentions it: @docs/style.md, @./memory.md, @~/notes/me.md. Paths are relative to the file that contains them. Imports can import (five levels at most), a file is included once, and an @ inside a code span or a code block is left alone. A path that does not exist is ignored.

This is how a "memory" file works: keep durable facts in memory.md, import it with @memory.md, and ask the agent to update it when something worth remembering comes up.

Limits

Each file is cut at 100,000 characters. Instruction files are part of the system prompt on every call: keep them short and factual, they cost tokens (cached with providers that support prompt caching).

Edit this page on GitHub