-
Memory:
AGENTS.mdfiles and auto-saved memories that persist across sessions. Use memory for general coding style, preferences, and learned conventions. - Skills: Reusable, on-demand capabilities that the agent discovers and reads only when relevant. Use skills for task-specific context such as workflows, best practices, and reference docs.
/remember to explicitly prompt the agent to update its memory and skills from the current conversation.
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:
- Research: Searches memory for relevant context before starting tasks
- Response: Checks memory when uncertain during execution
- Learning: Automatically saves new information 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.mdin any git project root—loaded when Deep Agents Code is run from within that project.
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 updatesAGENTS.md as you provide information on how it should behave, feedback on its work, or instructions to remember something.
It also updates 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 are not read on startup but the agent can reference and update them when needed.
When to use global vs. project AGENTS.md
Use a globalAGENTS.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
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 package domain expertise, such as workflows, best practices, scripts, and reference docs, into reusable directories that the agent discovers and reads only when relevant. Deep agent skills follow the Agent Skills specification. For more on how skills work and how to write effective ones, see Skills. At startup, Deep Agents Code reads the name and description from eachSKILL.md file’s frontmatter. When a task matches a skill’s description, the agent reads the skill file and follows its instructions. Discovery runs again on /reload.
Add a skill
Add optional resources
Optionally add additional scripts or other resources to the
test-skill folder. For more information, see What are skills.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:-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
Skills are loaded from the following directories at startup:.deepagents/skills/ or .agents/skills/), the project root is identified by a containing .git folder.
Invoke a skill mid-session
Inside an interactive session, run a skill directly with the/skill:<name> slash command:
SKILL.md instructions are injected into the prompt along with any arguments you pass.
Launch with a skill
The--skill flag invokes a skill immediately on launch, in either interactive (TUI) or non-interactive (headless) mode:
--skill with --quiet or --no-stream requires -n (non-interactive mode).List skills
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

