Thanks to visit codestin.com
Credit goes to commandcode.ai

Memory

Set custom instructions for Command Code by creating an AGENTS.md file. It contains instructions that customize Command Code's behavior for your project.


Create a new AGENTS.md in your project:

/init

This creates an AGENTS.md file in your project root with a starter template.

Note

Commit your project's AGENTS.md to git.


The /init command creates a template like this:

AGENTS.md template

# Memory ## Project Overview See @README.md for project overview and @package.json for available npm/pnpm commands for this project. ## Code Style Guidelines - Use descriptive variable names - Follow existing patterns in the codebase - Extract complex conditions into meaningful boolean variables ## Architecture Notes Add important architectural decisions and patterns here. ## Common Workflows Document frequently used workflows and commands here.

Customize it for your project.


Command Code reads AGENTS.md from two locations:

Project-level

Location: ./AGENTS.md or ./.commandcode/AGENTS.md

Team-shared project instructions. Commit this to Git along with your code.

User-level

Location: ~/.commandcode/AGENTS.md

Personal preferences for all your projects.


Edit AGENTS.md files:

/memory

Opens a selector to choose which file to edit (project or user).


CommandDescription
/initCreate AGENTS.md in project root
/memoryOpen file selector to edit AGENTS.md