Docs › Build your own agents
Build your own agents
Need a role Dex doesn't ship? Make one.
Write your own role
Make an agent for a job Dex doesn't cover.
- Ask a chat for
/add-agentand answer a few questions. - It can do what the built-in agents do: change files, run commands and tests, use git and open pull requests.
- Think code reviewer, release-notes writer or docs keeper.
Give it work
Your agent gets its own to-do list.
- Hand it work from a chat and it picks each item up by itself.
- It reports each item when it's done, in Completed.
- It can pass finished work on to another agent.
Every project, or just one
Decide where your agent lives.
- Make it for all your projects, or for just this one.
- Folder projects can run your agents too.
Plug it into the pipeline
Have the Researcher or the Builder send work to your agent.
- Ask
/add-patternfor a rule that tells them to. - Set it for one project or for a whole workflow.
Your agents stay yours
Dex never touches the agents you wrote.
- Each time Dex starts, it resets its own agents' instructions to how they shipped.
- Agents you wrote with
/add-agentare left exactly as they are.