一键导入
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 职业分类
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 the Deep Agents CLI - terminal interface, persistent memory with AGENTS.md, project conventions, skills directories, and CLI commands.
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 | js |
Open-source coding assistant for terminal with persistent memory. Capabilities: file operations, shell execution, web search, HTTP requests, task planning, memory, HITL, and skills.
npm install -g deepagents-cli
# Start CLI
deepagents
| Command | Description |
|---|---|
deepagents | Start the CLI |
deepagents list | List agents |
deepagents skills | Manage skills |
deepagents help | Show help |
deepagents reset --agent NAME | Clear memory |
deepagents threads list | List sessions |
deepagents threads delete ID | Delete session |
~/.deepagents/<agent_name>/AGENTS.md
Store: personality, coding preferences, communication style
.deepagents/AGENTS.md (requires .git folder)
Store: project architecture, conventions, team guidelines
# Create skill
deepagents skills create test-skill
# Project skill
cd /path/to/project
deepagents skills create test-skill --project
Locations:
~/.deepagents/<agent_name>/skills/.deepagents/skills/import { createDeepAgent, FilesystemBackend } from "deepagents";
import { MemorySaver } from "@langchain/langgraph";
// Create an agent with the same capabilities as the CLI
const agent = await createDeepAgent({
name: "my-assistant",
backend: new FilesystemBackend({ rootDir: ".", virtualMode: true }),
checkpointer: new MemorySaver(),
skills: ["./.deepagents/skills/"],
});
// Invoke like the CLI would
const result = await agent.invoke(
{
messages: [{ role: "user", content: "Refactor the auth module" }],
},
{ configurable: { thread_id: "session-1" } }
);
# Create a new global skill
deepagents skills create my-skill
# Create a project-scoped skill
cd /path/to/project
deepagents skills create my-skill --project
# List available skills
deepagents skills list
# Reset agent memory
deepagents reset --agent my-assistant
# List conversation threads
deepagents threads list
# Delete a specific thread
deepagents threads delete session-1
| Content | Location | Why |
|---|---|---|
| Coding style | AGENTS.md (global) | Always relevant |
| Project arch | AGENTS.md (project) | Project context |
| Testing workflow | Skill | Task-specific |
| Large docs | Skill | On-demand loading |
✅ Agent name and personality via AGENTS.md ✅ Project-specific conventions via project AGENTS.md ✅ Custom skills (global or project-scoped) ✅ Model selection via environment variables ✅ Thread management (list, delete) ✅ API keys for web search and model providers
❌ Core CLI commands (fixed set) ❌ Built-in tool names (ls, read_file, write_file, etc.) ❌ Middleware order in CLI mode ❌ AGENTS.md file format (must be markdown) ❌ Skills protocol format (must follow SKILL.md spec)
# ❌ No project memory
cd /project # No .git
deepagents
# ✅ Init git
git init
deepagents
# ❌ Wrong
/project/skills/SKILL.md
# ✅ Correct
/project/.deepagents/skills/skill-name/SKILL.md
export TAVILY_API_KEY="your-key"
deepagents