Skip to main content
There are two primary ways to customize any agent:
  • Memory: AGENTS.md files and auto-saved memories that persist across sessions. Use memory for general coding style, preferences, and learned conventions.
  • Skills: Global and project-specific context, conventions, guidelines, or instructions. Use skills for context that applies when performing specific tasks.
Use /remember to explicitly prompt the agent to update its memory and skills from the current conversation.
Building a custom agent with the SDK? See Memory for programmatic memory backends.

Memory

Automatic memory

As you use the agent, it automatically stores information in ~/.deepagents/<agent_name>/memories/ as markdown files using a memory-first protocol:
  1. Research: Searches memory for relevant context before starting tasks
  2. Response: Checks memory when uncertain during execution
  3. Learning: Automatically saves new information for future sessions
The agent organizes its memories by topic with descriptive filenames:
When you teach the agent conventions:
It remembers for future sessions:

AGENTS.md files

AGENTS.md files provide persistent context that is always loaded at session start:
  • Global: ~/.deepagents/<agent_name>/AGENTS.md — loaded every session.
  • Project: .deepagents/AGENTS.md in any git project root — loaded when Deep Agents Code is run from within that project.
Both files are appended to the system prompt at startup.

How memory works

The agent may also read its memory files when answering project-specific questions or when you reference past work or patterns. The agent will update AGENTS.md as you provide information on how it should behave, feedback on its work, or instructions to remember something. It will also update its memory if it identifies patterns or preferences from your interactions. To add more structured project knowledge in additional memory files, add them in .deepagents/ and reference them in the AGENTS.md file. You must reference additional files in the AGENTS.md file for the agent to be aware of them. The additional files will not be read on startup but the agent can reference and update them when needed.

When to use global vs. project AGENTS.md

Use a global AGENTS.md (~/.deepagents/agent/AGENTS.md) for:
  • Your personality, style, and universal coding preferences
  • General tone and communication style
  • Universal coding preferences (formatting, type hints, etc.)
  • Tool usage patterns that apply everywhere
  • Workflows and methodologies that don’t change per-project
Use a project AGENTS.md (.deepagents/AGENTS.md in project root) for:
  • Project-specific context and conventions
  • Project architecture and design patterns
  • Coding conventions specific to this codebase
  • Testing strategies and deployment processes
  • Team guidelines and project structure

Skills

Skills are reusable agent capabilities that provide specialized workflows and domain knowledge. You can use skills to provide your deep agent with new capabilities and expertise. Deep agent skills follow the Agent Skills standard. Once you have added skills your deep agent will automatically make use of them and update them as you use the agent and provide it with additional information.

Add skills

1

Create a skill

This generates:
2

Edit SKILL.md

Open the generated SKILL.md and edit the file to include your instructions.
3

Add optional resources

Optionally add additional scripts or other resources to the test-skill folder. For more information, see Examples.
You can also copy existing skills directly to the agent’s folder:

Install community skills

You can use tools like Vercel’s Skills CLI to install community Agent Skills in your environment and make them available to your deep agents:
Global installs (-g) symlink skills into ~/.deepagents/agent/skills/ — the default agent’s user-level skills directory. Project-level installs (omit -g) place skills in .deepagents/skills/ relative to the current directory, making them available to any agent running in that project regardless of agent name.
Global installs target the default agent directory only. If you use a custom-named agent, either use project-level installs or manually symlink the skill into ~/.deepagents/{your-agent}/skills/.

Skill discovery

At startup, Deep Agents Code discovers skills from both Deep Agents and shared alias directories:
When duplicate skill names exist, later-precedence directories override earlier ones (see App data). For project-specific skills, the project’s root folder must have a .git folder. When you start Deep Agents Code from anywhere within the project’s folder, it will find the project’s root folder by checking for a containing .git folder. For each skill, Deep Agents Code reads the name and the description from the SKILL.md file’s frontmatter. As you use Deep Agents Code, if a task matches the skill’s description, the agent will read the skill file and follow its instructions. You can also invoke a skill directly with /skill:<name> [args]. Skill discovery runs at startup and again on /reload.

Invoke a skill from the command line

Use --skill to invoke a skill at launch without typing a slash command interactively:
--skill also works in non-interactive mode:
--skill with --quiet or --no-stream requires -n (non-interactive mode).

List skills