Dev404 documentation

Dev404 is a coding agent connected to your Git repository. Use it to change code, run checks, and review the result before merge. In the browser it works in a cloud workspace; Dev404 Desktop runs the same agent in the projects on your computer. This guide explains both.

Quickstart#

Connect a repository, open a project chat, and describe the result you want. Include any constraints or checks that matter. Dev404 creates a working branch and shows its progress in the conversation.

  1. Connect GitHub or GitLab and select a repository.
  2. Start a chat with a concrete task.
  3. Open Workspace to inspect files, the browser, terminal output, and tests.
  4. Review the final diff and evidence before opening a change request.

Follow-ups stay in the same conversation. You can ask for a repair or a more focused check without starting over.

Sessions#

A session ties together the accepted message, branch, run status, events, and output. The timeline includes the agent’s updates and tool activity, so you can see what happened before the final reply.

Sleep holds queued work or pauses a running agent at a model boundary. Resume continues the held work. Stop cancels the run and its active subagents. The chat remains available after a run ends, and a follow-up can continue the task.

A checkpoint records the agent’s compact working context. Repository changes also need their branch or workspace backup; an in-memory process alone is not a durable copy of the work.

Forge#

Forge runs one task with a team of models. A frontier lead model does the thinking: it plans the work, settles the judgment calls, reviews what comes back, and gives the final answer. It hands well-scoped pieces of the work to faster, lower-cost models. To you it is one agent, with one session, one timeline, and one running cost.

Turn it on with the Forge switch at the top of the model menu; the setting is remembered in your browser. Forge is included with Dev Pro and above. While a Forge run works, the model button shows what it has spent so far, for example Forge · $0.84.

TierModelTakes
LeadClaude Opus 5.5The plan, the contract, judgment calls, review, and pieces whose cause or requirement is unclear.
BuildClaude Sonnet 5.5Code within the lead’s decisions: features, endpoints, components, tests, and fixes.
ScoutMiMo V2.6 ProReading, searching, running tests and checks, and mechanical edits that a brief fully specifies.

The lead hands each piece to an internal sub with a brief and a tier. A router can move a piece to a higher tier than the lead chose, never a lower one. A supervisor steers a sub that loops or drifts from its brief; a stuck sub first asks the lead’s model for a diagnosis, then moves up a tier if that does not help.

When pieces share an interface, the lead first commits a contract: the shared types and failing acceptance tests. Subs start from it and cannot change it. Each sub can be given the files it owns; changes outside them are reverted before its work is applied.

A sub’s result passes a verification gate before the lead sees it. Under a contract, the sub’s contract tests decide. Otherwise the result is judged against its brief from the checks it ran and the changes it made. A result that falls short is sent back once; one that is still uncertain gets an independent reviewer. The lead runs the project’s checks on the combined work before it finishes.

Internal subs are not subagents. They have no page, tab, or chat of their own: their actions appear in the session as Forge’s own, their reports go only to the lead, and their usage counts toward the run. Up to three run at once, each in its own Git worktree, and a task can use up to 24.

Each Forge task has a $5 spending target. It is soft: the lead sees what it has used, leans on cheaper tiers as it approaches the target, and stops reaching for its own model near it. Nothing stops at the target. Routing, supervision, and the gate ask a small decision model typed questions; when it is unavailable, each falls back to a fixed rule.

Subagents#

The main agent can delegate a specific assignment to a named subagent and keep working while that subagent runs. Its messages, tools, checks, and result appear in the Subagents tab. The main agent can wait for a result, send a follow-up, or stop a child.

ProfileWhat it doesWorkspace
ExploreFinds files, reads code, and answers architecture questions.Read-only snapshot of the parent checkout.
ReviewerReviews the current diff, browser behavior, and tests.Its own snapshot of the parent checkout, refreshed when the source changes; cannot edit product files.
TesterRuns checks, the preview, and a private browser, and records evidence.Its own snapshot of the parent checkout, refreshed when the source changes; cannot edit product files.
GeneralImplements an independent piece of work.Uses its own Git worktree and branch.

Each subagent works in its own container, started from a snapshot of its checkout. A tester or reviewer can be pointed at a general subagent’s checkout to check that work before it merges. General subagents start from a snapshot of the parent’s files. Their later commits merge into the parent checkout when it is clean. A conflict leaves the child branch intact for resolution. The parent still owns final verification; a child’s answer does not by itself prove that the combined result works.

One run can have up to three active children and eight children per execution slice. They share the parent’s model, tool, write, and time budgets. Children do not start subagents of their own. With Forge on, a subagent runs on the lead model and hands pieces of its assignment to internal subs, one at a time in its own checkout; those subs appear on the subagent’s page as its own work.

Missions#

A mission is one objective that runs with no input from you for hours, weeks, or months. Use it for work too large for a single session, such as building every module that a set of Markdown specs describes in one repository. A mission is finished when every spec section is implemented, verified, and merged, or recorded as out of scope with a reason.

Missions are rolling out gradually. Where they are enabled, you start one from a chat in your own project by typing /mission followed by what you want built. Typing / opens a command menu above the composer, with the best match first. Tab completes the command, and Escape closes the menu. The request and an acknowledgement appear as two ordinary messages, and every role in the mission uses the model selected in the composer. A chat runs one mission at a time, and a shared project cannot start one.

How a mission works

An orchestrator agent plans, assigns, verifies, merges, and re-plans. It never writes code. It decides what to build next, how to split work, whether an agent is stuck or only slow, and what a failure means. A fleet of workers does the building. Underneath both, a small piece of code called the kernel keeps the mission’s state and enforces a short list of guarantees. The kernel never makes a judgment call; it validates each action, records it durably, and makes sure the orchestrator is awake whenever something needs deciding.

RoleWhat it doesAccess
OrchestratorPlans, assigns, reviews outcomes, accepts or sends back work, and decides how to recover from failures.Read-only repository access and the mission tools.
PlannerReads a module’s spec and the code, then proposes the units of work and the dependencies between them.Read-only.
BuilderImplements one unit under a written contract.Edits only the files its contract names.
ReviewerChecks a finished unit against its contract and the spec, then returns a verdict.Read-only, on the strongest model.
AuditorCompares the orchestrator’s decisions with the charter and spec coverage with the integration branch.Read-only.
IntegratorMerges accepted units, runs the full checks, and updates the integration branch. It runs no model.Writes only the integration branch.

Every worker is an ordinary Dev404 run in its own container, so it keeps the same checkpoints, recovery after a lost machine, workspace backups, and billing as any other run. Worker chats are internal and do not appear in your chat list.

Units and contracts

The spec is indexed by heading into sections, and the work is split into units sized for one worker in one sitting: about 2,000 changed lines or fewer, at most 25 owned files, at most two hours of agent time, and at least one executable check. Units are planned in rolling waves, so each plan stays close to the code that exists. The orchestrator keeps about twice as many ready units as there are active builders.

Each unit carries a contract: the goal, the spec sections it covers, the base commit and branch, the files it owns, the files that are frozen, the interfaces it provides and consumes, its acceptance commands, what is out of scope, and notes from earlier attempts. A builder cannot write outside the files it owns or inside the frozen ones, and it cannot finish without a valid hand-back.

Hand-backs and review

A builder finishes by submitting a hand-back. The runner measures it rather than trusting the builder: it commits and pushes the unit branch, takes the changed files from the diff, checks them against the contract, and runs every acceptance command itself. The hand-back records the summary, the interfaces it changed, follow-ups it found, assumptions it made where the spec was silent, open issues, and its confidence.

The orchestrator reads the hand-back and decides whether to request a review. The starting policy is one reviewer for a build unit, two for contract units, wide changes, and later attempts, and a third when two disagree. A reviewer answers with a verdict (approve, changes requested, or reject) and its findings. The orchestrator then accepts the unit or sends it back with the findings. A review is not an attempt, so it does not use up the unit’s retries.

Merging

A mission works on its own integration branch, mission/<id>/main, and by default keeps a pull request open from that branch to your default branch. You decide when to merge it. The integration branch moves only when the integrator pushes a commit whose acceptance commands and global checks passed on the merged code.

The integrator merges accepted units in batches of up to eight with separate file ownership. If a batch fails, it reports exactly what failed and can bisect to find the unit at fault. When the branch goes red, the usual policy is to revert first and repair second, so it stays green for every other worker. The full test suite also runs on the integration branch every 20 merges and every six hours. After each green batch, a Git bundle of the branch is stored as a backup.

Staying coherent for months

No conversation is the source of truth. The mission’s state lives in a database, and the orchestrator reads what it needs instead of carrying it. A shift ends after six hours, or after the orchestrator’s conversation has been compacted three times, and a fresh shift starts from the charter, a state summary, the previous shift’s handoff, recent decisions, and the open inbox. The auditor runs at every shift change, so a new shift reads the old one with fresh eyes. Every decision is logged with its reason.

When something goes wrong

Signals such as no progress for 30 minutes, a repeating tool-call loop, writes outside a contract, heavy compaction, or going over a time budget wake the orchestrator with evidence. They do not act on their own, because a worker running a 45-minute test suite looks the same as a stuck one. Only a few unambiguous backstops act without the orchestrator: a lost machine resumes from its checkpoint, a run with no heartbeat for two hours is cancelled and its unit returned to the queue, an attempt at four times its time budget is stopped, and a mission spending faster than its ceiling pauses new assignments.

  • Container or deploy interruption: the run resumes from its checkpoint. Infrastructure failures do not count against a unit.
  • Orchestrator model unavailable: the shift moves to the next strongest model. With none available, running work finishes, results wait, and nothing new is assigned or merged until a shift is running again.
  • Out of credits: the mission pauses instead of failing units, and resumes when credits return.
  • Unclear spec: there is no one to ask, so the worker or orchestrator records an assumption. The digest lists assumptions so you can overrule one later without blocking anything now.

Following a mission and stopping it

A mission has no page of its own. It reports in the chat you started it from, through ordinary assistant messages: milestones, blockers, periodic summaries, and completion. While it is live, one line at the top of that chat’s composer shows how much has merged and how much is being worked on, with Pause (or Resume) and Stop beside it. Stop cancels the whole mission, including every worker that is still running, and so does the chat’s regular stop control. The finished work is visible where it normally would be, on the integration branch and its pull request.

A mission can hold a large number of containers for weeks, so it has its own capacity limit, separate from your other chats, which keep their full room. Missions are different from the Ultra Code team in a single session: a mission is built for tasks that need hundreds or thousands of units of work.

Side Ask#

Use Side Ask for a question that should not interrupt the main run. It works in a copy of the checkout taken when the question starts. It can read and search, run commands as a user that cannot write anywhere else, and use its own headless browser, but it cannot edit the branch, publish changes, or touch the main agent’s desktop. An action that would change live data, such as a deploy, a push, a write to a remote service, or submitting a form on a live site, is refused unless your question asked for it. If the live checkout is gone, Dev404 may restore a retained workspace backup into an isolated read-only tree. Without a restorable snapshot, it declines the question.

Dev404 Desktop#

Dev404 Desktop is an app that runs the Dev404 agent in the folders on your computer. It edits your files and runs your builds and tests with your own tools and runtimes, asking before each command. It uses the same Dev404 account, models, and credits as the browser.

In the browserDev404 Desktop
Where the work runsA cloud workspace on Dev404’s servers.Your computer, in the folders you add.
When you leaveWork keeps going after you close the tab.Work runs while the app is open.
CommandsRun in the container.Run on your computer, after you approve them.
Only hereMissions, Fullstack Mode, Forge, app hosting.Your local toolchains, the iOS Simulator, your own MCP servers.

Install and sign in

Download the app from dev404.ai/desktop.html.

  • Mac: Apple silicon or Intel, macOS 12 or later.
  • Windows: Windows 10 or later, 64-bit.
  • Linux: a 64-bit AppImage for most distributions.

Sign in with your Dev404 account, or create one in the app. Your credits and plan are the same as on the web, and Settings → Billing shows your balance and usage.

Add a project

Choose Add repository in the sidebar. Leave the field empty to open a folder that’s already on your computer, or paste a Git URL to clone it first. New project creates an empty folder to start from. Each folder appears in the sidebar with its current branch, and its chats are listed under it. Removing a folder from Dev404 never deletes its files.

Chats and modes#

Start a chat from New chat, pick the project and branch under the composer, and describe what you want. The chat shows what the agent read, what it ran, and what it changed, with a summary at the end. Follow-ups continue in the same chat. You can attach images and files, or mention a file with @ to point the agent at it.

The mode under the composer sets what the agent may do. Press Shift+Tab to switch.

ModeWhat it does
AgentEdits files and runs commands, with your approval.
PlanReads the code and writes a plan. Changes nothing.
AskAnswers questions about the code. Changes nothing.

The model menu lists every tool-capable model on your account, grouped by provider. On larger jobs the agent keeps a to-do list in the chat and ticks it off as it goes. When a decision is yours, it stops and asks a multiple-choice question with its recommendation marked first, and continues once you answer.

With Settings → General → Sync chats on, chats are saved to your Dev404 account, so you can pick up where you left off in the Dev404 IDE.

Lightspeed#

Lightspeed finds the code a task needs in seconds, before the agent starts reading. Instead of opening files one at a time, the agent describes what it’s looking for, and Lightspeed fires bursts of searches and file reads across the project at once. It hands back the places that matter, with their current lines, so the agent goes straight to the fix.

The agent calls it on its own when it starts work in code it hasn’t read yet, or when finding something would take several searches. You don’t need to turn it on. It appears in the chat as a Lightspeed row, where you can watch each search and read land as it runs. When it finishes, the row folds up into the list of places it found; open it to see them.

How it works

  1. Before any model runs, the names and words in the request are searched and matched against the project’s file paths.
  2. A fast model, the quick tier of your chat model’s provider such as Haiku or Flash, starts from those results and a map of the project. It gets up to three rounds, each a burst of up to eight searches, file listings, and reads at once.
  3. It names up to twelve places, most important first. Each is checked against the files and sent back with its lines, up to 600 lines in all.

Lightspeed only reads, so it works in Agent, Plan, and Ask mode and never needs approval. A run stops looking after 20 seconds. Its model calls use your credits like the rest of the chat. If it can’t point to anything, the agent searches and reads directly instead.

Approvals#

Commands run on your computer with your user permissions, so the agent asks first. Each request shows the exact command; choose Run or Skip. The agent is told when you skip a command, and carries on without it. Allow all in this chat runs the rest of that chat’s commands without asking.

To stop being asked in every chat, set Settings → General → Terminal commands to Auto. MCP tools are different: connecting to an MCP server and running each of its tools always ask, whatever this setting says.

File edits don’t need approval, but every change can be undone. When a reply changes files, a card under it lists them with their added and removed lines. Review opens the diff, Keep all accepts the changes, and Undo all puts the files back as they were.

Changes, files and tools#

The panel on the right (⌘⌥B on a Mac, Ctrl+Alt+B elsewhere) belongs to the project on screen. Its tabs:

  • Changes: the Git diff, compared with your uncommitted work, the last commit, or the whole branch. Commit from the card at the bottom; Alt+Enter commits and pushes. You can discard one file’s changes or all of them, and switch or create branches from the branch menu under the composer. Right after a commit, the toast offers to undo it, or to revert it in a new commit if it was pushed.
  • Files: files the agent mentions or you open. Code shows with line numbers and Markdown renders formatted, with its source a click away. Images, PDFs, video, and audio open in place. What’s on screen, including selected lines, goes with your next message so “this” means what you’re looking at.
  • Terminal: a shell in the project folder for your own commands.
  • Browser: a built-in browser the agent uses to open the site you’re building, click through it, and check that a change works. It opens by itself the first time the agent uses it.
  • Simulator: on a Mac with Xcode, the agent builds your iOS app, runs it in the Simulator, and taps through its screens.

Subagents and side chats#

On a large task the agent can hand pieces to subagents and keep working. The Subagents tab shows each one’s progress, and you can open one to read its work, message it, or stop it.

RoleWhat it does
ResearchReads and searches the code. Settings → Models chooses its model: the chat model’s fast tier, the same model, or one you pick.
WorkerImplements a piece of the task in its own Git worktree, so workers never edit over each other. The main agent brings a worker’s changes into your checkout when it’s done, skipping any file that changed in the meantime.
ReviewerReviews the uncommitted changes and reports what it finds.

Up to three subagents run at once, and a chat can have twelve. Workers only start in Agent mode, and workers and reviewers use the chat’s model.

A side chat is a separate conversation beside the main one, for a question that shouldn’t interrupt it. Open one from the panel’s + menu; each side chat gets its own tab.

Dev Teams on desktop#

Dev Teams is built into the app. Open it from Dev Teams in the sidebar (⌘⇧T on a Mac, Ctrl+Shift+T elsewhere). The sidebar becomes your conversation list, with pinned conversations at the top and invitations to answer. They are the same conversations you have on the web.

Mention @Dev in a conversation to bring Dev404 in, as you would a teammate. It knows who is in the conversation, what was said, which repositories the group has, and what earlier tasks did. It answers in the conversation, asks if a request could mean more than one thing, or starts a task. A task card shows its progress in the thread.

Tasks and files shared in a conversation open in the panel on the right, in the same viewers as the rest of the app. The Shared tab lists them all. A task shows its status, details, budget, and activity, and can be stopped there. Files open as tabs with Save and Open in default app in their menu.

Start a conversation

Choose New conversation in the sidebar. Search for a person by username to message them directly, or choose New group:

  1. Details: the group’s name, what it’s for, and its icon and colour.
  2. Members: up to 31 people besides you. Each one gets an invitation to accept.
  3. Repositories: up to 12 from your connected GitHub and GitLab accounts. Each task has all of them checked out and changes one, so Dev404 can read the others while it works.
  4. Usage: decide who pays for Dev404’s work. With shared usage on, the members share the cost, each up to a monthly limit, and every member accepts this before joining. With it off, whoever asks Dev404 pays for that request. You also set a budget per task and choose the model Dev404 uses in the group, which you can change later.
  5. Summary: check everything, then create the group.

You need a username before you can start a group. If you don’t have one, the app asks you to choose one.

Settings and updates#

  • Rules & memories: rules apply to every chat, together with the repository’s AGENTS.md. The agent can save memories as it learns how you work; you can read and delete them here.
  • MCP tools: add MCP servers as JSON to give the agent more tools. The agent asks before it connects to a server and before each tool call.
  • Models: hide models hosted in China, and choose the model for research subagents.
  • Repositories: the folders the agent can work in.
  • General: command approvals, the send key, chat sync, notifications when the agent finishes or needs you, and archived chats.

The app checks for updates and downloads them in the background. A new version installs when you quit, or right away from Settings → General.

When Send crash reports is on, the app sends error details with the app version and operating system. Reports never include your account or your chats, and you can turn them off in Settings → General.

IDE and files#

The Files tab uses Monaco for code editing. It includes highlighting, folding, find and replace, undo and redo, and language support for common web files. Search, definitions, references, file creation, rename, and delete are available through the workspace API.

Text files in the editor are limited to 500 KB. A save includes the file version that was read, so a stale tab cannot silently overwrite a newer change. Editing is disabled while an agent or manual terminal process owns the checkout. Unsaved drafts remain in the page when you switch chats.

Cloud workspace#

The task workspace runs in a Cloudflare Container. It is often called a VM in conversation, but the current runtime is a Linux container rather than a dedicated virtual machine. It contains the repository checkout, a Bash terminal, headed Chromium, and an Xfce desktop.

The checked-in image is based on Node.js 22 and Debian Bookworm slim. The deployment configuration uses the standard-3 container class. It includes Git, ripgrep, Python, browser and desktop utilities, and common build tools. Each subagent runs in its own container, started from a snapshot of its checkout; Forge’s internal subs get Git worktrees inside the task environment instead.

Containers can sleep when idle. Branch commits, checkpoints, and durable workspace backups carry work across continuations; a running process or an unpushed disk change is not automatically permanent.

Terminal and browser#

The terminal is a persistent Bash pseudo-terminal. Commands see a TTY, can accept input, and retain shell exports across commands. The panel keeps command history, live output, exit status, and time limits.

The browser opens a real page in headed Chromium. Dev404 can navigate, inspect the DOM, interact with controls, and capture screenshots. The Computer tab shows the Linux desktop and supports pointer and keyboard input. You can view the screen while an agent runs; manual input waits until the agent no longer owns execution.

Tests and evidence#

The Tests tab gathers commands, checks, browser observations, screenshots, and recordings made during the task. Each proof belongs to the checkout and behavior it actually tested. After an edit, an earlier pass may no longer describe the current branch.

A command exiting successfully shows that the command ran. It only verifies a requirement when the check exercises that requirement. A skipped check, a running command, or an old screenshot cannot establish completion. For UI work, inspect the affected page and viewport again after a repair.

Review changes#

Open Review changes to read the branch diff before merge. Files are grouped so you can move between related changes and inspect line context. Review findings should refer to the current commit and the evidence behind them. From a finding, you can ask the agent to make a correction and return to the diff.

Change requests#

Dev404 can publish the task branch and open or update a pull or merge request. It can use a repository change-request template, target another published branch for stacked work, read review feedback, and inspect remote checks. A missing or failed required check is not a pass.

Knowledge and skills#

Project and account knowledge stores short notes you want the agent to remember. Repository instructions, including nested AGENTS.md files, add guidance from the checkout. Skills package a repeatable procedure; they can accept arguments and restrict a subagent’s tools.

A message beginning with /skill-name can start a matching repository skill. If that name is not in the repository, Dev404 can use an installed account skill.

Schedules and automations#

Schedules start a task once or on a recurring cron expression in a selected timezone. Automations respond to configured events, such as a GitHub or GitLab issue labeled dev404 or a signed webhook, filter the event, and start a task or send a message. Set them up in Settings → General, where each one shows its recent deliveries.

Integrations#

Repository connections let Dev404 clone code, create branches, publish changes, and work with reviews on GitHub and GitLab. The app also has authenticated project, chat, workspace, run, and agent APIs. An inbound MCP endpoint provides access to a subset of Dev404 resources.

For a full inventory of product areas, including planned connectors and platform capabilities, see All features.

Architecture#

The web app and Worker API are deployed separately. The Worker handles authentication, project data, dispatch, and runner callbacks. D1 shards hold accounts, projects, chats, run state, and subagent activity. Durable Objects coordinate run supervision, event replay, and capacity. R2 holds larger durable objects such as workspace backups. A queue sends accepted work to the task container.

Runner admission gives each execution a scoped identity before workspace activity starts. Checkpoints and event retries help preserve accepted work through interruption; they do not turn every local test into a production reliability guarantee.

Models and budgets#

The model selector uses a cached catalog of tool-capable text models from OpenRouter. When discovery is unavailable, a saved catalog can keep the selector usable. A listed model ID is not a guarantee of provider uptime, account entitlement, or coding quality.

Forge sits at the top of the model menu, above the catalog. With it on, a task runs on Forge’s own models rather than the selected one, and the model button shows the run’s spend as it works.

Runs have model, tool, write, and time budgets. Subagents draw from the same limits; a Forge run gets a larger tool and write allowance for its subs. The timeline records usage, but it is not an invoice or a complete billing ledger.

Fullstack Mode#

Turn on Fullstack Mode when creating a project, choose a connected GitHub or GitLab account, and name the new repository. The project opens in a familiar chat layout with the conversation in the middle and an app workspace on the right. Dev404 can use its existing subagents, build tools, and browser checks to work from your app description.

When Cloudflare hosting is configured and a successful build includes a deployable artifact, Dev404 publishes it to staging for the in-page preview and verifies the deployed app. The project owner can publish that staged build to production or restore an earlier production artifact. Self-service hosting setup and database rollback are not available yet; a successful code run alone does not guarantee a live app.

Up next#

These experiences are being designed for Dev404. They are described in the All features reference alongside the rest of the product.

Live Code

Multiple people will work in the same Dev404 IDE with shared presence, cursors, and synchronized code edits. The agent will participate in that shared workspace without overwriting newer human changes.

Send to Cloud

From the IDE, you will be able to transfer the current branch, changes, and task context to a cloud workspace so Dev404 can keep working after you leave. The handoff will need a reviewable snapshot and a safe way to reconcile results with newer local work.