一键导入
deepagents-cli
Using the Deep Agents CLI - terminal interface, persistent memory with AGENTS.md, project conventions, skills directories, and CLI commands.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Using the Deep Agents CLI - terminal interface, persistent memory with AGENTS.md, project conventions, skills directories, and CLI commands.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Using the Deep Agents CLI - terminal interface, persistent memory with AGENTS.md, project conventions, skills directories, and CLI commands.
Understanding Deep Agents framework - what they are, how to create them with createDeepAgent, and the agent harness architecture with built-in middleware for planning, filesystems, and subagents.
Creating and using custom skills with progressive disclosure, SKILL.md format, and the Agent Skills protocol in Deep Agents.
Using FilesystemMiddleware with virtual filesystems, backends (State, Store, Filesystem, Composite), and context management for Deep Agents.
Using FilesystemMiddleware with virtual filesystems, backends (State, Store, Filesystem, Composite), and context management for Deep Agents.
Implementing human-in-the-loop approval workflows with interruptOn parameter for sensitive tool operations in Deep Agents.
| name | deepagents-cli |
| description | Using the Deep Agents CLI - terminal interface, persistent memory with AGENTS.md, project conventions, skills directories, and CLI commands. |
| language | python |
The Deep Agents CLI is an open-source coding assistant that runs in your terminal with persistent memory across sessions.
Key Capabilities:
pip install deepagents-cli
# Start the CLI
deepagents
| Command | Description |
|---|---|
deepagents | Start the CLI |
deepagents list | List all agents |
deepagents skills | Manage skills (create, list, view) |
deepagents help | Show help |
deepagents reset --agent NAME | Clear agent memory |
deepagents reset --agent NAME --target SOURCE | Copy memory from another agent |
deepagents threads list | List all sessions |
deepagents threads delete ID | Delete a session |
Located at ~/.deepagents/<agent_name>/AGENTS.md
What to store:
# Global Preferences
## Communication Style
- Be concise and direct
- Use technical language
## Coding Preferences
- Always use type hints in Python
- Prefer async/await over callbacks
- Write docstrings for all functions
## Tool Usage
- Run tests before committing
- Use black for formatting
Located at .deepagents/AGENTS.md in project root (requires .git folder)
What to store:
# Project Context
## Architecture
This is a FastAPI application with PostgreSQL.
## Conventions
- All endpoints use async handlers
- Database queries use SQLAlchemy 2.0 syntax
- Tests in tests/ use pytest
## Deployment
- Deploy to Heroku via git push
- Run migrations before deployment
# Global skill
deepagents skills create test-skill
# Project skill
cd /path/to/project
deepagents skills create test-skill --project
Creates:
skills/
└── test-skill/
└── SKILL.md
Global: ~/.deepagents/<agent_name>/skills/
Project: .deepagents/skills/ (requires .git folder)
---
name: python-testing
description: Run pytest with coverage and best practices
---
# Python Testing Skill
## When to Use
Use this skill when writing or running Python tests.
## Commands
Run tests with coverage:
\`\`\`bash
pytest --cov=src --cov-report=html
\`\`\`
## Best Practices
- Mock external dependencies
- Use fixtures for common setup
- Test edge cases and error paths
The CLI finds project root by looking for .git folder:
# Works from anywhere in project
cd /path/to/project/src/components
deepagents # Finds project root at /path/to/project
# Project memory and skills loaded automatically
# Start interactive session
deepagents
# In CLI:
> Create a FastAPI endpoint for user registration
> Run the tests
> Deploy to staging
# In CLI, use /remember command to update memory
> /remember I prefer using pydantic for data validation
Agent updates AGENTS.md based on context.
# In CLI, approve sensitive operations:
> Deploy to production
# CLI prompts:
# Command: git push heroku main
# [A]pprove, [E]dit, [R]eject?
A # Approve
| Content Type | Store In | Why |
|---|---|---|
| Coding style preferences | AGENTS.md (global) | Always relevant |
| Project architecture | AGENTS.md (project) | Project-specific context |
| Testing workflow | Skill | Task-specific instructions |
| Deployment steps | Skill | Only needed when deploying |
| Communication style | AGENTS.md (global) | Always relevant |
| API documentation | Skill | Large, loaded on-demand |
✅ Execute shell commands (with approval)
✅ Read/write project files
✅ Access web search and HTTP
✅ Update their own memory and skills
✅ Track tasks with todos
❌ Access files outside project root
❌ Execute commands without approval
❌ Modify system-wide configurations
❌ Access other agents' memory
# ❌ Project memory won't load
cd /path/to/project # No .git folder
deepagents
# ✅ Initialize git
cd /path/to/project
git init
deepagents # Now finds project root
# ❌ Wrong location
/path/to/project/custom-skills/SKILL.md
# ✅ Correct location
/path/to/project/.deepagents/skills/custom-skill/SKILL.md
# ❌ Agent won't remember without context
> Remember this
# ✅ Provide context
> /remember I prefer using SQLAlchemy ORM over raw SQL for database queries
# Web search requires API key
export TAVILY_API_KEY="your-key"
deepagents