Docs › Hand work to agents
Docs › Hand work to agents

Hand work to agents

From idea to finished branch: you talk, you approve, and your agents do the rest. Then you review it and decide when to ship.

Plan with the Director

Got an idea? Say it out loud. Every chat is the Director, so there's nothing to start.

  1. Open a chat on the project and describe what you want, in your own words.
  2. The Director asks what it needs to know, then writes the work up as a task for the Researcher.
  3. Read it over. Change anything that's off before it's filed.
  4. The Director files it as a draft.

Chats don't edit your code. Every change goes through your agents and lands on a branch you can review. Need a quick fix right now? Say override to lift the block, and lock to put it back.

Talk your idea through. The Director writes up the task.

Draft, then Ready

You hold the gate. Nothing runs until you say so.

  • Draft: written up, waiting on you. Nothing happens to it.
  • Ready: you've approved it, and the Researcher picks it up.
  • Parked: set aside on purpose, until you ask for it again.

To promote a draft, tell the Director it's ready. You can say so when you approve the task, or later from any chat.

Put agents to work

Mark it ready and walk away. Your team takes it from there.

  1. The Researcher picks it up on its own, digs into the code, finds what needs doing and writes a plan for the Builder.
  2. The Builder builds it on a branch. Nothing waits on you between the two.
  3. It's back with you. The work waits on its branch, and the Builder's report lands in Completed on the Tasks tab.

Layout and visuals go to the Designer. Start the Researcher and the Builder together from any chat. No work? They sleep, and wake on their own the moment a task is ready, even with the app closed.

Watch the work move

See every task, from idea to done, without checking in.

  • The Tasks tab shows where everything stands. It can't change a task, though: ask the Director.
  • The chat you filed the task from tells you when it needs you, when it stalls, when it's done and when its branch is merged.
  • Anything only you can do is marked YOUR MOVE.

Review it and merge

Your code, your call. Agents never merge into your main branch.

  1. Read the report. Open the task on Completed. Any file, branch or link it names is underlined: tap it to open it.
  2. Read the diff. Open the branch in the Branch Manager to see every file it changed.
  3. Try it. Tap Run it and Dex starts that branch's dev server on your server, with an address to open on your phone.
  4. Merge it into its parent branch or into main. A merge that would conflict is refused before anything is touched, and Dex names the files that clash.

Merging switches your server's copy of the project to the branch you merged into, so wait until no agent is mid-task on that project.

Start a round table

Bigger idea? Put your agents in one room and let them hash it out.

  1. Ask any chat for /roundtable.
  2. Your agents talk it through with each other, with no relaying from you.
  3. When a call is yours, the table pauses and asks you in the Inbox. Answer, and it carries on.
  4. When the Director wraps up, the table ends on its own. It can leave you a spec, a filed task and the transcript, all listed on Completed.

The transcript stays on your server and isn't committed to git. Move anything you need to keep into a doc of your own. A finished table can't be reopened, so start a new one for follow-up questions.

Research only

Want answers, not code? Ask for research only.

  1. Tell the Director you want findings, not a build.
  2. Mark it ready, the same as any task.
  3. The Researcher investigates and writes its findings into a document on your server. No build task is filed.
  4. Open the document from the report on Completed.

Like what you read? Ask the Director to turn it into a task.

Run a swarm

Need more hands? Put up to eight Researchers or Builders on one project.

  • Tasks that don't depend on each other run side by side.
  • Dex never starts more copies than your server can handle.
  • Switch it on with Swarm in the project's workflow.

Teach them from review feedback

Got a review comment? Turn it into a rule your agents remember.

  • Paste the comment into a chat in that project, or ask for /feedback.
  • Say yes to the rule Dex suggests, and that project's agents follow it from their next start.

Make it work your way

Choose how work comes back to you, project by project. Open Settings → Workflows.

Every project starts on Dex default: the Builder opens a pull request for every task.

Change Dex default

  1. Tap Edit settings on the Dex default card.
  2. Change what you want. It applies to every project you haven't moved to a workflow of your own.
  3. Changed your mind? Reset to defaults puts it back the way Dex ships it.

Make your own

  1. Tap + New workflow, name it, and save it. It starts as a copy of Dex as it ships, or of another workflow of yours.
  2. Set it up in Edit settings. For example, set Delivery to Leave uncommitted, and the Builder stops after each task with its changes left for you to review and commit yourself.
  3. Tap Add projects and tick the ones that should use it.

What else you can set:

  • Where it builds: in the project folder, or in a separate copy so your project folder stays on its branch.
  • Phase merges: let the Builder merge each finished phase into its parent branch. Merging into main is always yours.
  • Patterns: switch Dex's rules for your agents on or off, or add your own with /add-pattern, for every project or just one.

Agents read their workflow when they start, so restart a project's agents after you change it. The page tells you which project needs it.