Statefold vs Devin: which one fits automated pull request workflows?
Statefold runs your existing coding agents in isolated sandboxes billed per second. Here is how it compares with Devin for automated PR workflows.
If you are evaluating tools for automated pull request workflows, the first question to settle is whether you want to bring your own coding agent or buy a proprietary one. Statefold takes the first path; Devin takes the second. Understanding that distinction helps clarify which fits your team.
Quick answer: Statefold is a sandbox platform that runs the native harnesses you already pay for, including Codex, Claude Code, OpenCode, Pi and Gemini CLI, in isolated containers billed per second with no token markup. If your team already holds Codex or Claude subscriptions and wants asynchronous PR automation without paying twice for model tokens, Statefold is the more direct fit. Devin is a fit if you want Cognition's agent to open pull requests and respond to review feedback through its GitHub integration.
What is Statefold, and how does it approach pull request automation?
Statefold is not a coding agent. It runs the native harnesses you choose, Codex, Claude Code, OpenCode, Pi and Gemini CLI, and gives each one a sandbox, git access and a persistent thread. The agent is still the agent you already know and pay for.
That architecture shapes every other difference in pricing, flexibility and team fit compared with tools that bundle their own proprietary agent.
How does Devin handle pull requests?
Devin can open pull requests and respond to GitHub review comments on its own PRs. Cognition's GitHub integration examples show how PR comments are sent back to Devin. Devin can be configured to fix issues raised by Devin Review and other review bots, including CI failures reported on a pull request.
Both tools can help move a change through review. Devin bundles the coding agent with its GitHub integration. Statefold lets you pick the harness and subscribe the same thread to a specific commit's checks or a pull request's review events.
How does Statefold handle a pull request from start to merge?
You can ask Statefold to handle the work through PR review, then merge when you are ready:
- You run
statefold thread new "fix the token refresh race"from your terminal. - A sandbox boots with your current checkout, uncommitted work included, and your chosen harness starts on your own subscription.
- The thread can delegate to child threads on other harnesses. For example, a Codex thread can ask Claude Code to plan a fix and OpenCode to review the diff, then continue with both results.
- When the agent opens a pull request, the thread subscribes to its CI checks and goes quiet. A sleeping thread costs nothing.
- If CI fails, the same thread wakes with its full history, pushes a fix and goes quiet again.
- Ask the thread to notify you when checks pass. With push notifications enabled, you can review and merge from your phone.
Agents are told to make reasonable, reversible decisions and only ask when they genuinely cannot proceed, and to ask before force-pushing or merging.
Which coding agents and harnesses does Statefold support?
Statefold runs five native harnesses as they ship from their makers:
- Codex
- Claude Code
- OpenCode
- Pi
- Gemini CLI
Model tokens bill your own subscriptions and API keys directly. Statefold never marks them up. One thread can also delegate to child threads on different harnesses: a Codex thread can hire Claude Code to plan and OpenCode to review, each in its own sandbox with its own history, then carry on with their results. There is no pipeline to build.
How does Statefold pricing work?
Statefold bills for machine time only. Model tokens come from your own accounts.
Statefold machine rates
| Machine | Size | Per hour |
|---|---|---|
| standard-1 | 0.5 vCPU, 4 GiB, 8 GB disk | $0.10 |
| standard-2 | 1 vCPU, 6 GiB, 12 GB disk | $0.20 |
| standard-3 (default) | 2 vCPU, 8 GiB, 16 GB disk | $0.30 |
| standard-4 | 4 vCPU, 12 GiB, 20 GB disk | $0.55 |
Time is billed per second while the sandbox runs. A sleeping thread costs nothing.
Statefold plans
| Monthly cost | Credits included |
|---|---|
| $10 | $10 of machine time |
| $50 | $50 of machine time |
| $100 | $100 of machine time |
Linking GitHub adds a $3 starter credit, roughly 10 hours on the default machine, with no card required. Top-up credit from $10 never expires. Plan credit is for its month.
A sandbox uses credits while it runs, including the roughly ten minutes before it sleeps after going idle. Once it sleeps, you can wait for CI or a reviewer without using more machine credit.
How does Statefold keep credentials and code secure inside the sandbox?
Statefold uses an egress-injection model. Connected provider API keys, subscription tokens and the GitHub token appear inside the container only as placeholders. The real credential is swapped in by a Worker as the request leaves the sandbox, and only for the host that credential belongs to. A custom secret with no bound hosts is a plain environment variable inside the sandbox.
- Provider API keys: kept in a private bucket, swapped in as the request leaves, on the provider's API only.
- Codex subscription: the Worker keeps your ChatGPT tokens and answers Codex's refreshes; the container sees a token that authorizes nothing.
- Claude subscription: your
claude setup-tokenis kept in a private bucket; the container sees a placeholder. - GitHub token: stored encrypted, added to requests for github.com as they leave, never stored in the sandbox.
- MCP servers (Linear, Sentry, Notion): sign-ins stay in the Worker; the container sees nothing.
Two limits to state honestly: Statefold is not SOC 2 audited and is not self-hostable. Full access inside the sandbox also means the agent can run anything there, and its other network traffic is not restricted.
What are the team and collaboration limits on Statefold?
Statefold supports teams of up to 32 people. Team members share projects, skills and threads. There is no SSO and no multiplayer editing of a running thread. If your organization requires SSO or has more than 32 members, that ceiling matters.
Within those limits, teams get:
- Shared projects and skills libraries across all five harnesses
- Thread sharing by link, with full message history, commands and diffs on an unlisted page
- One balance for every thread in the account; plans and top-ups add credit any thread can spend
- @statefold mentions on GitHub issues or PRs to start or wake a thread
When does Statefold fit automated PR workflows?
Choose Statefold if:
- Your team already holds Codex, Claude Code or another supported subscription and does not want to pay for model tokens twice.
- You want asynchronous PR automation where threads wake on CI failures, review comments or schedules without manual intervention.
- You want to run multiple harnesses in parallel on the same task, with one thread delegating to children on different agents.
- You want connected credentials and host-bound secrets injected at egress.
- Your team is 32 people or fewer and does not require SSO.
- You want per-second billing that stops when a sandbox sleeps.
Consider alternatives if:
- You want a single proprietary agent with no harness configuration.
- You need SOC 2 compliance or self-hosting options, which Statefold does not yet offer.
- Your team exceeds 32 people or requires SSO.
How does Statefold connect to the tools you already use?
Because Statefold runs the harnesses you already pay for rather than replacing them, it fits into an existing workflow without forcing a new agent on your team. Engineers who use Codex daily can hand off a task from the terminal, close the laptop and ask the thread to send a notification when the PR is ready to review. The same thread that opened the PR watches CI, wakes on a failing check, pushes a fix and goes quiet again. Every thread also carries project memory: conventions, decisions and feedback saved after each turn, available on any harness in the next thread.
FAQ
Does Statefold charge for model tokens? No. Model tokens come from your own subscriptions and API keys and are billed directly by your provider. Statefold credits pay for machine time only, billed per second while the sandbox runs. The sandbox still uses machine credit while it is idle and running. Billing stops when it sleeps.
Can one Statefold thread use more than one coding agent? Yes. A thread can delegate to child threads on any supported harness, wait for their results and continue. For example, a Codex thread can ask Claude Code to plan a fix and OpenCode to review the diff. Each child gets its own sandbox and history. No pipeline configuration is required.
What happens to my credentials inside a Statefold sandbox? Provider API keys, subscription tokens and your GitHub token appear inside the container only as placeholders. A Worker swaps in the real credential as each request leaves the sandbox, and only for the host that credential belongs to. Statefold is not SOC 2 audited and is not self-hostable.
How large a team can use Statefold? Statefold supports teams of up to 32 people. Members share projects, skills and threads. There is no SSO. Teams larger than 32 or organizations that require SSO should weigh that limit before choosing Statefold.
How do I start without committing to a plan? Link your GitHub account and Statefold adds a $3 starter credit, roughly 10 hours on the default machine, with no card required. Plans start at $10 a month and each grants its price in credits for that month. Top-up credit from $10 never expires.
Key Takeaways
- Statefold runs your existing harnesses (Codex, Claude Code, OpenCode, Pi, Gemini CLI) in isolated sandboxes; it does not replace them with a proprietary agent.
- Billing is per second of sandbox time, from $0.10 to $0.55 per hour depending on machine size. Model tokens bill your own accounts with no markup.
- A Worker injects connected provider and GitHub credentials at egress, keeping their real values outside the container.
- Teams of up to 32 can share projects, skills and threads. There is no SSO, and Statefold is not SOC 2 audited.
- If you need SOC 2 compliance, self-hosting or SSO, those are honest gaps in Statefold today and should factor into your decision.
Next steps
If your team already holds Codex or Claude Code subscriptions and wants pull requests handled asynchronously without paying twice for model tokens, Statefold is worth a direct test. Link your GitHub account at statefold.sh to start with $3 of machine time and no card required. If you need SOC 2, self-hosting or SSO, those are honest gaps in Statefold today, and another platform may be the right call until Statefold covers them.