Docs
Refer a friend. Get a weekly-quota reset.Friend signs up and uses it → +1 reset (valid 30 days) · up to 10% cash back on their spend.
+1 resetGenerate link

Custom instructions

Store durable instructions at the right scope and inspect what is loaded.

Choose a scope

LocationPurpose
~/.crabcode/CRABCODE.mdPersonal preferences across projects
<repo>/CRABCODE.md or <repo>/.crabcode/CRABCODE.mdShared project instructions
<repo>/.crabcode/rules/*.mdTopic-specific rules
<repo>/CRABCODE.local.mdPersonal project instructions

CRABCODE_CONFIG_DIR can change the configuration root. Run /memory to inspect loaded files before editing. Verify Git ignore rules for personal files rather than relying on their names.

Initialize and maintain instructions

Run /init at the repository root and review its proposed CRABCODE.md. Record actual build commands, directory responsibilities, tests, style and actions requiring confirmation.

markdown
Use pnpm for dependencies.
Run pnpm test:auth after changing login behavior.
Summarize changes and validation before committing; publishing needs approval.
Use pnpm for dependencies.
Run pnpm test:auth after changing login behavior.
Summarize changes and validation before committing; publishing needs approval.

Keep rules specific. Replace outdated commands instead of accumulating contradictory versions.

Includes and task instructions

Instruction files support @./path, @/absolute/path and @~/path includes. Include only necessary files. Their contents enter model context, so exclude credentials. Large files may be truncated.

Give temporary requirements in the conversation. Use agents for specialized roles, hooks for tool events and skills for repeatable workflows. Instructions do not replace permissions.

If instructions are missing, check the working directory, file names, configuration root, crabcodeMdExcludes and whether --bare disabled discovery. See memory for storage and disabling options.