dex agent new
Scaffold an AI agent project via an interactive Q&A flow.
Synopsis
dex agent new
Q&A flow
dex agent new asks a series of questions to understand the agent’s purpose, and then generates a project skeleton with a CLAUDE.md, system_prompt.md, and starter code.
Questions asked:
- Name — short identifier for the agent
- Description — what the agent does in one sentence
- Trigger — how the agent is activated (
user_request,schedule,event,upstream_system) - Success criteria — how you know the agent succeeded
- Reads — data sources the agent reads from
- Writes — data sinks or side effects
- Handoff — whether the agent hands off to a human
- Autonomous — whether the agent runs without human review
- Example input — a concrete example of what the agent receives
- Example output — what a good response looks like
- Bad output — what a bad response looks like (for guardrails)
- Deploy target —
job,serving_endpoint, orinteractive
Generated files
<agent_name>/
├── CLAUDE.md # Agent instructions for Claude Code
├── system_prompt.md # System prompt template
├── main.py # Entry point skeleton
└── README.md # Setup and usage
MCP integration
After scaffolding, the agent project can be served via the dex MCP server:
dex mcp serve
This exposes the agent’s tools to Claude and other MCP clients.