Skip to content

Flows

A flow is a team of coding agents and the plan they follow, saved as a template. Pick one, give it an issue or a prompt, and cornercase starts the whole team in a new worktree: one tab per role, every agent with its model and its role prompt, and an orchestrator agent that runs the plan with the commands for scripts and agents, sending the work from the coder to the reviewers and back until it is done. The Flow panel draws the plan as boxes and arrows and lights it up as the work moves.

search projects, workspa…Full issue·running×agent session·claude --dangerously-skip-permissionsFix https://github.com/acme/web-shop/issu…▾ProjectsBots›web-shop›issue-482-…run 31·5 messages▾work> You are the orchestrator of a team of coding agentsweb-shop(4)stage 2 of 3·findings 1/3orders-api(2)!Sending issue #482 to coderstage 3 not run since the last changecoder committed the fix: asking reviewer and securityorchestratorstop▾◆personalreviewer found 1 problem: back to coder (round 1 of 3)blog(1)coder added the test: asking reviewer to check againTeam·5dotfiles(1)◐orchestratorclaudepane 32waiting for reviewer…○coderclaudepane 33+ New◐reviewercodexpane 34○securityclaudepane 35▾Workspaces○testerclaudepane 36↑7 more+ Taborchestratorclaude◐▾issue-482-returns-pa…◐orchestratorOpus 5.5·7%coder◀○coderclaude○◀Opus 5.5·7%◐reviewerfindings·1/3gpt-5.4·20%○security▼▼Opus 5.5·7%reviewersecurity○testercodex◐claude○Opus 5.5·7%+ Tabfailures·0/2+ New▼testerIssuesChangesclaude○FilesTODOWorktreesRecap▼◆open a pull requestMore▴Help↓more
The Full issue flow on issue #482: the reviewer checks the fix again after one round of findings.
  • An orchestrator: an agent (Claude Code, Codex…) that reads what the others answer and decides what comes next. cornercase never parses a verdict out of an agent’s text: the orchestrator does, the way you would.
  • Roles: a name (coder, reviewer…), an agent, optionally a model, an effort and a persona, extra arguments and environment variables, whether it may edit files, whether it works in the run’s worktree or in one of its own, and its prompt. Each role gets a tab of its own.
  • Stages: the plan, in order. A stage holds one role, or several working in parallel (reviewer + security). A stage can send the work back to an earlier one when there are problems, at most a number of times (findings → 1 · at most 3).
  • The end: open a pull request, or leave the commits on the branch.
  • Notes: free text the orchestrator gets with its plan, such as do not change the public API without asking.
Flow Stages
Full issue coder → reviewer + security (back to the coder on findings, at most 3 times) → tester (back to the coder on failures, at most twice) → a pull request
Cross review coder → two reviewers (back to the coder on findings, at most 3 times) → a pull request
Quick coder → reviewer (one round) → the commits
Bug, test first a reproducer writes a failing test → coder → tester (back to the coder on failures, at most twice) → a pull request
Arena two or three competing coders, each in a worktree of its own → a judge → an integrator → a reviewer (back to the integrator on findings, at most twice) → a pull request

They come with cornercase, so they improve with each update, and they use the agents you have installed: the default agent (settings → Agents → default agent) orchestrates and codes, and the reviewers take other agents when you have them, so a change is reviewed by a model that did not write it. You can change them: save a built-in flow from the editor and your version, kept in your folder under the same name, takes its place (tagged edited, and no longer updated with cornercase); restore default brings the built-in back, and delete hides one you never use (see Edit flows).

Unless a role asks for a worktree of its own, the whole team works in one worktree. Claude Code, Codex, Gemini CLI, Grok Build, Cursor CLI, Vibe CLI and GitHub Copilot CLI can take several roles of one flow; opencode takes one per worktree, since cornercase reads its status from its folder and cannot tell two opencode apart there: it can take several roles when they work apart. A flow that gives opencode two roles in one worktree says so in red and does not start, and the built-in flows give the other roles another agent. Two Codex or two Gemini CLI in one worktree still show their status, from their titles, but cornercase cannot tell their conversations apart: read --last-message fails for them, and the orchestrator reads their screens instead.

A flow works in a worktree of its own, so its project must be the root of a git repository. Start one:

  • From an issue: select it in the issue browser list, or open it, and click start a flow, after start and schedule (a narrow window drops it from the list, and the issue’s page keeps it). The prompt is the issue’s, made from your prompt template, and the branch is the one start would make (issue-482-…, or what issue branches names). Under the branch, workspace is the name the run’s workspace gets in the sidebar, the issue’s key and title to begin with; Tab reaches both, and either can be changed. A branch git would refuse is pointed out before anything is made, and an empty workspace name keeps the issue’s.
  • From the workspaces’ + New: start a flow…, for that project, with a prompt of your own. In the tree, each project’s own + New offers it too.
  • From the keys menu: w s.
  • From a script or another program: cornercase flow run NAME --issue KEY (a key such as #482 or ENG-42, or the issue’s URL) takes the task and the branch from the issue as start a flow does (--worktree BRANCH and --workspace-name NAME name them yourself; --prompt TEXT or --prompt-file FILE give your own task in place of the issue’s, as editing the prompt in start a flow does, while the issue still names the branch and the workspace); --project ID says where when the issue isn’t tied to a repository and several projects are repositories. See Scripts and agents.
Start a flow›#482 Returns page crashes on empty addr…Full issue in web-shop, in a worktree of its ownFlow templatesDiagramArena6 agentsorchestratorCompeting coders, each in a worktree of its own, a judge, then one result: for…claudeBug, test first4 agentsA failing test first, then the fix, then a tester, then a pull request.Cross review4 agentscoder◀A coder and two reviewers of different agents, until both agree.claude◀Full issue5 agentsA coder, a reviewer and a security reviewer, then a tester, then a pull request.findings·≤3Quick3 agentsA coder and one round of review, leaving the commits.▼▼reviewersecuritypromptcodexclaudehttps://github.com/acme/web-shop/issues/482failures·≤2▼testerclaude▼◆open a pull request›branch:issue-482-returns-page-crashes-on-empty-address›workspace:#482 Returns page crashes on empty addr…what the team should do·enter starts a new line·tab moves to the brancheditcancelstart
Starting Full issue on issue #482: the plan on the right, the issue's prompt, its branch and its workspace's name below.

The dialog lists the flows on the left under Flow templates, in your order and with the default one tagged default, each with its number of agents and its description, or in red what keeps it from starting (a deleted built-in’s name is reserved), and draws the selected one’s diagram on the right (the wheel scrolls a diagram taller than its box). Below them go the prompt (what the team should do; Enter starts a new line, Tab moves to the branch), the branch, which follows the prompt’s first words until you type one (cornercase adds a short suffix when those words give nothing, a default branch or a branch already taken, so two runs of one task never share a branch; a branch you type is refused when it is main, master, the project’s default or the one its own folder is on). A project’s flow that sets environment variables or extra arguments for its roles says so in red, since they run without asking. Once you have accounts, an account list under the branch for each agent of the team that has accounts (claude account) chooses the account its roles start with (the default until you pick another, or, when you start the flow from an issue, the account you picked for the issue); an account removed before you click start stops the start and says so. The dialog opens with your default flow selected when it can start; without one (or when it was deleted or has problems) Full issue is, else the first flow that can start, so a start you go through fast never lands on a flow you did not pick. edit opens the selected flow on its edit page, as in settings → Flows, and brings you back; start starts it, shows the orchestrator’s tab and opens the Flow panel.

With machines listed, a run on row under the flow’s name picks this computer, a machine, or auto, which chooses the one with the project and the most free memory. On a machine, the list is that machine’s flows and the account lists its accounts, edit is hidden, and start runs the flow there, as if you had started it in that machine’s window; its team shows under the machine in your sidebar. start a flow on an issue keeps the machine you picked for it, and its prompt box shows the prompt made from your template, which you can edit as on this computer: the team there gets it as its task. See Start work on a machine.

Starting a flow:

  1. Makes the worktree, or uses a worktree already on that branch if it runs no flow, and one more for each role that works apart, on a branch made from the run’s. The run’s own branch, when it does not exist yet, starts from the project’s HEAD, or from its default branch fetched first with settings → Worktrees → new branches on or --fresh (a fetch that fails stops the run before any tab opens). The project’s setup runs in each new one, with its own branch.
  2. Opens one tab per role, named after it, the orchestrator first, each in its role’s worktree.
  3. Starts each agent with its model, its effort, its arguments and its role prompt, which tells it to wait for the orchestrator’s first message, and answers its questions about trusting the new folder and the run’s folder. A role that may not edit the worktree’s files is told so in its prompt, and every role is told where to put its answers and that the whole task is in task.md (see The run’s folder).
  4. Starts the orchestrator last, once its team is up, with a brief cornercase writes: the task, the team with each role’s pane id, the stages in words (when the work goes back to an earlier stage, that stage and every stage after it run again, in order, on what changed, however small the change (a fix of docs only, a rebase or a merge of a moved branch included), before the work goes on, and the final action waits until each of them that has a loop answered clean or reached its limit), the flow’s notes, each role’s compact command, the rules for driving agents (wait before sending, one self-contained message at a time, read the last message rather than the screen, wait in the foreground for each answer, also for work you ask for after the plan, never answer another agent’s permission prompt), the run’s folder, the final action, and cornercase mark on its own pane when it is done, so the run shows as pending review.

The whole team starts at once, so the tabs and the diagram are complete from the first second; with the agents section on, the team hangs under its orchestrator there, each member listed by its role, and the team can be collapsed into the orchestrator’s row; an agent waiting for its first message costs nothing. The roles’ turns ending don’t notify you or leave a ✓ on their tabs, since the orchestrator reads them; the orchestrator does when the run is done, and any agent still does when it waits for you.

When a role finishes work the orchestrator sent it while the orchestrator wasn’t waiting for it (it had ended its turn, or you wrote to it meanwhile), cornercase tells the orchestrator as soon as its own turn is over: coder (pane 113) finished the work you sent it, with how to read the answer. When a role’s turn ends on an error (a Claude Code turn that ended on an API error is failed), cornercase tells the orchestrator the same way, with a line saying the role’s work was not done, and the orchestrator sends it again once and tells you if it fails again; you also get that role’s own failed notice. An orchestrator whose own turn ended on an error is woken again 1 minute later, then after 2 and 4 (three times at most, counted from its last turn that ended another way). A follow-up you ask for after the plan no longer sits finished until you ask. A turn you start yourself in a role’s tab stays yours, and if the orchestrator’s tab is closed or can’t take the message, you get the role’s notification instead.

Before it sends a role a large piece of work, the orchestrator checks its team’s context (cornercase status --panes, its context and compacted columns). A role that has used more than about 70 % of its window is compacted first, with its agent’s own command (/compact for Claude Code, Codex, opencode, Grok Build, GitHub Copilot CLI and Vibe CLI, /compress for Gemini CLI, /summarize for Cursor CLI) and what it must keep, such as the branches and the checks to run; the team list in its brief names each role’s command. An orchestrator can’t compact itself, so when its own context passes about 80 % it tells you with a notification, and you can type /compact in its tab.

Opus 5.5·7%○testerOpus 5.5·7%↓more+ New▾Agents↑3 more◐coderclaude·Opus 5.5·7%◐reviewercodex·gpt-5.4·20%○securityclaude·Opus 5.5·7%○testerclaude·Opus 5.5·7%↓1 more
With the agents section on, a flow's team hangs under its orchestrator, each member by its role.

A run lives in its workspace: closing the workspace closes the run. It is saved with the session, so after a restart the agents resume their conversations in their tabs, each in its role’s mode, model and effort, and the orchestrator is told its team’s new pane ids. If a Claude Code orchestrator is still finishing its resume and leaves that message in its input box, cornercase presses Enter again, every 3 seconds and up to 4 more times, until it takes it; the same goes when you reopen the team’s agents. If the message still sits in its input box after those retries ran out or when Claude Code’s status was unknown, or for an orchestrator running another agent, press Enter in its tab.

The panel draws the run of the workspace you are looking at. It opens by itself when you start a flow from the window; open it again with:

  • the workspace’s menu: right-click its row, or hover it and click ⋯, then show flow;
  • the keys menu: w f;
  • the Flow icon in the icon bar, shown while the workspace has a run.

It takes the column on the right that the changes, files, TODO and Recap panels share, so opening it closes the others. ×, Esc or w f again close it. Switch to a workspace without a run and the pane gets its width back; switch back and the diagram is there again. In the compact layout it covers the whole screen.

Full issue·running×Fix https://github.com/acme/web-shop/issu…web-shop›issue-482-…run 31·5 messagesstage 2 of 3·findings 1/3stage 3 not run since the last changeorchestratorstopTeam·5◐orchestratorclaudepane 32○coderclaudepane 33◐reviewercodexpane 34○securityclaudepane 35○testerclaudepane 36orchestratorclaude◐coder◀claude○◀findings·1/3▼▼reviewersecuritycodex◐claude○failures·0/2▼testerclaude○▼◆open a pull request↓more
The run, live: its state and stage, the team with who works, the plan with where the work went last, and how many rounds each loop took.

The heading. The first line is the flow’s name and the run’s state, running or reached its end (the same rule as the blue ◆ below), then the first line of the task. Under the diagram’s top, the panel scrolls as one column: the place where the run lives (project › workspace, with the branch when it differs), the run’s number and how many messages went through, a bar with one segment per stage, lit up to the stage the work is in, and stage 2 of 3 · findings 1/3 (every loop that took a round, orange past its limit; not started before the first step). After the work goes back (a loop’s round, or a step outside the plan to an earlier stage), the stages it has not been through since follow in orange (stage 3 not run since the last change, on a row of their own when the panel is narrow), until each gets the work again; a restart forgets them. orchestrator goes to the orchestrator’s tab. stop asks first, then closes the orchestrator and its whole team for good, as close agent does in the agents section, and the run ends.

The team. Team · n has a row per role, the orchestrator first: its status icon, its name in its own colour, its agent and model, the branch of its own worktree when it has one (cut first in a narrow panel) and pane n. Click a row to go to that pane; a role whose tab was closed reads closed, dimmed, and does nothing. A role whose agent exited by itself reads exited, dimmed, with a cyan ▶ in place of its status icon: click the ▶ to bring it back, as the workspace’s ▶ does, or the rest of the row to go to its pane, where its shell keeps what the agent printed last.

What it draws. The orchestrator sits on top, apart, since it moves the work. The stages go top to bottom, the roles of a parallel stage side by side (stacked under a bracket when the panel is too narrow), and each loop is an arrow up the right side into the stage it returns to, labelled with what sends the work back and its rounds (findings · 1/3). The end is ◆ open a pull request or ◆ leave the commits. Each box names its role in its own colour, then its agent, model and effort (claude · opus · high).

What lights up.

  • Each box shows its agent’s status, as the tabs do: ◐ working, ! waiting for you, ○ idle, and ✓ done for the orchestrator (a role’s finished turn shows as idle). A role whose tab was closed says closed; one whose agent exited by itself says exited, with the cyan ▶ that brings it back.
  • A role that works gets a heavy border (┏━┓) in its colour.
  • The arrow the work last moved along takes the colour of the role it came from, and a ● travels along it for a second when a message goes through.
  • A loop counts its rounds (each time the orchestrator sent the work back along it, whatever it sent), and turns orange past its limit.
  • When the orchestrator sends work somewhere the plan doesn’t go (skipping a stage, going back where no loop goes), the step it really took is drawn dashed on the left.
  • ◆ turns blue once the run reaches its end: as soon as the run’s branch has a pull request on GitHub or a merge request on GitLab (open, a draft or merged; a closed one doesn’t count), or once the orchestrator has marked its own pane for review, its last step. The mark counts for the rest of the run, so the end stays blue while the orchestrator works on, waits for you or gets a follow-up; it is forgotten only if the run’s worktree moves to another branch. A flow that leaves the commits lights from the mark alone.
  • Next to the end, the pull request’s number coloured by its checks, as on the workspace’s row: #485✓ passed, #485• running, #485✗ failed, #486! merge conflicts, purple once merged, crossed out when closed. Click it to open the pull request dialog, where ask agent sends the failed checks to an agent. In a narrow panel the words are cut first and the number kept.

How it knows. From what really happens, not from what the agents say: every cornercase command run in a pane carries that pane’s id, so the orchestrator’s send, keys, read --last-message and wait are steps between real panes. A send into the next stage is that stage’s arrow; a send into the stage a loop goes back to is a round of that loop; anything else is outside the plan. Going back is a change: every stage after the one the work went back to waits for it again, joins the list of stages not run (which keeps what an earlier change left on it) and comes off it when the orchestrator sends it work. A first pass that skips a stage is not on that list; it shows as outside the plan. When a send goes on to a stage while an earlier one is still on that list, and when the orchestrator marks its pane with stages still on it, the command says so (warning: stage 3 (reviewer, security) has not run since the last change in stage 2: … on stderr) and still goes. cornercase flow runs says stopped moving 50 min ago when the orchestrator’s turn is over (or its agent exited), no agent of the team works and the run has not ended.

Messages. Under the diagram, Messages · n lists what the team sent each other, newest first: from → to · sent, the step it moved the work along (stage 1 → 2, a loop’s name such as findings, or outside the plan in orange), its number and its age, and the first two lines of its text. Each message takes the colour of the role it went to. Click one to read it whole, with a copy button.

Full issue·running×Fix https://github.com/acme/web-shop/issu…↑morefailures·0/2▼testerclaude○▼◆open a pull requestMessages·5orchestratorreviewer·sent#5·0mstage 12Check the fix for #482 again: coderadded the test.orchestratorcoder·sent#4·0mfindingsreviewer: 1. there is no test for anempty address.orchestratorsecurity·sent#3·0mstage 12Check the fix for #482 for securityproblems.orchestratorreviewer·sent#2·0mstage 12Review the fix for #482 on this branch.orchestratorcoder·sent#1·0mFix #482: the returns page crashes onan empty address.Files·5open foldercoder-2.md71 bytes·0msecurity-1.md68 bytes·0mcoder-1.md75 bytes·0morchestrator-1.md50 bytes·0mtask.md94 bytes·1m
What the team sent each other, newest first, and the run's files (the task and what the roles wrote), with their size.

Clicks. Click a box or a team row to go to its tab, or the ▶ of a role whose agent exited to bring it back. Click an arrow, or a loop’s label, to read the last message sent along it, with a copy button; where an arrow splits into a parallel stage, each branch shows the message its own role got. The arrows that carried a message light up under the mouse, a branch with the way it took. The wheel scrolls the whole panel.

The messages are kept in memory only, at most the first 32 KiB of each and the last 256 of a run: they never reach the log, which keeps their sizes, nor the saved session. After a restart the panel shows the plan and the agents’ status again, with an empty list of messages; what the roles wrote to the run’s folder is still there.

When the account a team runs on reaches its plan limit, or the run started on the wrong one, move the whole team to another account without stopping the run. Once you have accounts, the heading has a row under the stop button with one button per agent of the team that has accounts, such as claude: work ▾ codex: System ▾ (shortened to work ▾ when the panel is narrow). It reads mixed when the team’s agents of that kind are not all on the same account, and an agent none of whose panes is open has no button.

Click a button to see that agent’s own login and accounts, the team’s with a check mark, and click another. The team restarts on it once it is idle: no agent of it working or waiting for you, no agent still starting and nothing typed in its panes. Meanwhile a second row reads restarting claude on personal… with now and cancel, the orchestrator is not woken, and a cornercase send or cornercase keys into one of the team’s panes is refused with a message that tells the orchestrator to end its turn (it is told when the team is back, or that it did not restart when the change is cancelled or fails, and sends again then). Keys to an agent that waits for an answer to a question or a permission prompt still go, so the prompt can be answered and the team can become idle, but not once the conversations start moving. A pane of the team whose agent exited and that now runs another program keeps the change waiting until that program ends. The buttons stay: clicking the account the team still runs on drops that agent’s change, another account changes where it goes, and another agent’s button adds its change to the same restart; cancel drops them all.

now restarts the team at once, unless such a pane cannot restart yet, which the message says. When that would cut a turn in progress, or a role cannot go on in its conversation, a dialog names them first (coder is working: restarting cuts its turn., tester starts a new conversation.), as close agents does; confirm with restart now.

Each agent of that kind comes back in its own pane, as restarting a pane on another account does: its conversation’s files go to the other account’s folder first, and it resumes with its role’s model, effort and flags. Pane ids, tabs and seats stay, so the orchestrator’s map of its team is still right. A role that cannot resume (Gemini CLI, which a pane restart also starts in a new conversation, or one that never had a turn) starts over with its role’s brief, and a role whose agent had exited gets a new shell on the account, with nothing started in it: its ▶ or reopen agents brings it back there. Agents of another kind stay as they are. When the orchestrator runs that agent, it restarts last and is told that its team restarted on another account, whose turn was cut and who started over; when it runs another one, it keeps running and gets that note as a message once the restarted agents are back (and not while it waits for your answer). If any conversation cannot be moved (another file in its place in the other account), or the account was removed meanwhile, nothing restarts and a message says why. An agent whose pane changed while the conversations moved (closed, its agent exited) keeps its account while the others restart, and the message names it.

The change is kept in memory only: cornercase kill-server forgets a change that waits, and the team comes back on the accounts it last ran on. A run on another machine changes its team in that machine’s window, or with cornercase --remote … flow account. The account row under each member’s pane keeps its entries disabled, with it is the coder of a flow run: change its account in the Flow panel.

Terminal window
cornercase flow account --worktree fix-login --account claude=personal
cornercase flow account --run 12 --account claude=work --account codex= --now

stop in the Flow panel does what close agent does on the orchestrator: after a confirmation the whole team closes for good and the run ends. A flow’s agents close like any workspace’s: close agents in the workspace’s menu (or w a, or cornercase agents close) closes the orchestrator and its team together. The run is kept whole, with its messages, where the plan stands and its folder, and the run’s worktrees stay. While they are closed the Flow panel hides, the run is not marked as ended, and a new run in that workspace is refused (reopen or forget them first).

The workspace’s ▶ brings the whole team back: each role in its own conversation, and the orchestrator last, told its team’s new pane ids and which roles were cut in the middle of a turn. A role you had closed with its × starts again from its role’s prompt, in a tab named after it. forget closed agents ends the run instead.

The × of a member’s row in the agents section (close agent) is different: it closes the whole team for good and ends the run, removing nothing.

An agent can also exit without being closed: a stray pkill in a shell, a crash, /exit. Its tab stays at the shell prompt and the run goes on without that role. cornercase flow runs shows exited for it (where - is a role that has not started yet) and adds the command that brings it back, for example exited: coder; `cornercase agents reopen --workspace 7` brings it back. The workspace’s ▶ shows too, and reopen agents in its menu, w o and cornercase agents reopen start every exited role again in the pane it was in, with the role’s model, effort, account and the run’s folder, in its own conversation when cornercase saw one (also after a restart), or from its role’s prompt when it did not. The orchestrator comes back last and is told where its team stands; an orchestrator that kept running is told which roles came back. In the Flow panel its team row and its box read exited with a cyan ▶ instead of an idle ○, and that ▶ brings it back too.

cornercase tells you once: a toast with reopen and, while you are not looking at its tab, a desktop notification (a member only while notices for subagents is on), and programs get a flow-exited message on cornercase events --notices under the same conditions as the desktop notification (never for a tab you are looking at, and for a member only while notices for subagents is on). A send to that pane, the orchestrator’s included, is refused with the command that brings it back, since the text would be typed into its shell.

A run whose orchestrator’s agent exited has nobody to move it on, so once no agent of the team works it shows stopped moving 5 min ago: the orchestrator's agent exited.

Start a run with cornercase flow run … --close-when-merged, or turn it on for a run that is already going with cornercase flow close-when-merged (--off turns it off again), and the team closes by itself once the run’s pull request or merge request has merged and none of its agents has been working, waiting, starting or typed into for 3 minutes. It closes as close agents does, so finished runs stop piling up idle agents: the workspace’s ▶ (or cornercase agents reopen) brings each role back in its own conversation, and opencode and custom agents start over. Nothing is removed (but, with --free-builds, the build folders, below): the workspace, its worktrees, its branches and the run’s folder stay. A reopen keeps the team open, since the choice is spent (also one made after the merge, for a team you closed yourself).

Add --free-builds (to flow run, or to flow close-when-merged for a run that is already going) and, once the agents have closed, the build folders of the run’s worktree and of its roles’ own worktrees are freed too, as free build folders does without --force: only git-ignored folders on the project’s list (node_modules, target…), and a worktree where a program still runs, or whose build folder holds a git checkout, keeps them. The toast first says freeing the builds, then, a few seconds later, pull request merged in fix-login: 5 agents closed, 15.7 GB of builds freed (or why nothing was freed), and the flow-merged message says the same, with failed: true when something could not be freed (where the toast shows ✗). The worktrees, branches and the run’s folder stay, so reopening the agents rebuilds what they need. --free-builds needs --close-when-merged, and --off turns both off. A run started without it, and worktrees made by hand, are freed with cornercase worktrees free-builds --merged, which frees the builds of every merged worktree the same way.

A shell you opened in one of the team’s tabs, or an agent of your own that cannot resume its conversation, keeps the team open, since closing it could lose what you were doing there. A flow that leaves the commits has no pull request, so it cannot use it. It needs pull requests on in settings and gh (or glab on GitLab) signed in, the same as the Flow panel’s end. A window toast says what closed and offers reopen. Programs that draw cornercase get the same words on cornercase events --notices (a flow-merged message), without the toast’s · ▶ on the workspace reopens them: they bring the agents back with cornercase agents reopen --workspace ID.

Every run gets a folder for its files, so long reports don’t pile up in the orchestrator’s context and the run leaves a record of what each role produced. It is outside the worktree, so nothing in it is ever committed, and every pane of the team has its path in $CORNERCASE_RUN_DIR.

  • The task, whole. Before any agent starts, cornercase writes the task to task.md there, exactly as it was given (the task of flow runs --json), whether it came from the prompt, --prompt-file, an issue or a routine; a run on a machine writes it in that machine’s folder. Every role’s prompt names it, and the orchestrator gives each role its path and what the stage adds instead of retelling the task, so a careful task reaches every role whole.
  • The personas. A role that follows a persona finds it in personas/<id>.md there, copied from yours when the run started; its prompt tells it to read and follow it before its first work.
  • One file per answer. Each role writes every answer to a file named after it and the next free number (reviewer-1.md, then reviewer-2.md) and replies with the file’s path and a few lines. The orchestrator passes work on by path instead of pasting text, and writes its own decisions there too (orchestrator-1.md: what it asked, what came back, what it decided and why). Scratch files, logs and scripts a role needs go there as well, never in the worktree.
  • Where it is. In runs/ next to the saved session (~/.local/state/cornercase/runs/ by default; with CORNERCASE_SOCKET, <session name>.runs/ next to the socket, so separate servers never share one), named by your local day (the one queue list and the window show) and the workspace (2026-10-17-fix-login, with -2 when that day already has one). It and runs/ are readable only by you (mode 0700).
  • Who can reach it. Claude Code, Codex, Cursor CLI, Vibe CLI and GitHub Copilot CLI start with --add-dir for it, so their file tools can write there. Gemini CLI, opencode and Grok Build have no flag cornercase uses for it, and write through their shell, which the prompt tells them to do when their file tools can’t reach it.
  • The Flow panel lists it. Under the diagram, Files · n shows the folder’s files, newest first, with their size and age; click one to read it in the files panel, and ‹ brings you back to the Flow panel where you left it. open folder on its title opens the folder through the same open in… menu as the files panel (your file manager or an editor), or copies its path when the window can open nothing. The list is read every two seconds while the panel shows, at most 200 files.
  • How long it stays. The folder survives the end of the run and a restart (a folder you deleted is made again), and goes with its workspace: removing the workspace (which removes its worktree), closing the project, or closing a plain workspace removes it, once the workspace’s shells have exited. cornercase close --workspace on a worktree, without --remove-worktree, only stops its shells: the workspace and the folder stay. cornercase flow run prints the folder on stderr, with run_dir in --json, and cornercase status --json gives each workspace’s run_dir, so a script finds the files of a run that ended.

A persona is how an agent works, written once and given to any role, on any agent: the same Code Reviewer can run on Claude Code in one flow and on Codex in another. It is a Markdown file with a front matter that gives its name (and often a description, an emoji and a color), then the instructions, the format of collections such as agency-agents.

In Settings → Flows (or the Flows dialog), click personas under the list of flows. The Personas page lists yours: each one’s emoji and name, its description and where it came from (yours for the ones you wrote), the files it cannot read with why, and beside the list which flows follow the selected one.

Flows›personaspersonas: how a role's agent works, picked in a role's persona row🧪Careful TesterWrites a failing test before it fixes anything.yoursPersona🔍Code Reviewer Expert code reviewer who gi…msitarzewski/agency-agent🧪Careful TesterWrites a failing test before it fixesanything.id careful-tester·1 KiByoursno flow follows it yet: pick it in arole's persona rowenter or a click on the selected persona edits it·new writes one of yours·import brings some ineditremoveimportnewdone
Flows › personas: your personas, imported or written by you, and what the selected one is.
  • Import some: click import, type a GitHub repository (msitarzewski/agency-agents, or a folder of one such as msitarzewski/agency-agents/engineering), an https:// address, or a folder or .md file on your computer, and press Enter. A repository comes back as a catalogue grouped by its divisions (the folders its divisions.json names, with their labels). Check the personas you want, or click a division’s row to check all of it, then import selected. Nothing is checked at first; a red row is one you cannot import, with why. The window says again, before saving, that personas are prompt text a flow’s agents follow without asking, where they came from and that nobody reviewed them. The import is all or nothing.
  • Write your own: click new, fill in the name, a description and an emoji, then click instructions and write what the agent should do and how (Enter starts a new line, save keeps the text). save writes it to your personas. Its id comes from the name.
  • Edit one: click it twice, or select it and click edit. The id stays, so the flows that follow it keep it. Saving an imported persona makes it yours: its source: goes and the list says yours. Importing its source again with --replace would still replace it, since it keeps its id, and your changes with it.
  • Remove one: remove asks first and names the flows that follow it; they cannot start until you pick another persona or import it again. Running flows keep their copy.
  • Give one to a role: in a flow’s editor, each role’s tab and the orchestrator’s have a persona row. Click it and pick one of yours, or none. A persona you don’t have shows in red, and the flow cannot be saved until you pick another or import it. The diagram shows each role’s persona after its agent where there is room, and so does the Flow panel while it runs.
Terminal window
cornercase persona import msitarzewski/agency-agents/engineering/engineering-code-reviewer.md
cornercase persona import msitarzewski/agency-agents/engineering
cornercase persona import msitarzewski/agency-agents --check
cornercase persona import msitarzewski/agency-agents --catalogue
cornercase persona import msitarzewski/agency-agents --only engineering-code-reviewer --only testing-reality-checker
cornercase persona import ./my-reviewer.md
cornercase persona list
cornercase persona new --name "Careful Tester" --emoji 🧪 ./tester.md
cornercase persona edit careful-tester --description "Tests before it fixes"
cornercase persona show careful-tester
cornercase persona remove engineering-code-reviewer
  • Import takes a .md file, a folder, - for standard input, an https:// address, or a GitHub repository as OWNER/REPO, OWNER/REPO/FOLDER or OWNER/REPO/PATH/FILE.md, read from its default branch with no GitHub token (a repository or a folder of one is a single download). A folder or a repository imports every .md file whose front matter gives a name and skips the rest; when it holds a divisions.json that lists its folders, only those are read. At most 500 personas at once.
  • Where they are kept. In personas/ next to config.json (~/.config/cornercase/personas/), one file each, named after its id: the file’s name (engineering-code-reviewer). The file is kept as it came, plus a source: line in its front matter saying where it came from, so importing that source again with --replace refreshes it.
  • Names. A persona whose id you already have is refused unless you pass --replace; one with the name of a persona you have under another id is refused, so remove that one first. An import that has one persona it cannot read, or one collision, imports none of them.
  • Check before you import. A persona is prompt text that an agent running without permission prompts reads and follows. --check lists what would be imported (id, name, size, description, whether it replaces yours) and saves nothing. From an address or a repository, persona import shows the same list and asks [y/N], with the page to read them at; without a terminal (or with its messages sent to a file, where you would not see the question) it refuses unless you pass --yes.
  • Pick some. --catalogue lists every persona of a source by division, each with why it cannot be imported, if it cannot (not a persona, an id or a name that appears twice in the source, or a name one of yours has), and saves nothing; unlike --check it never refuses because of one persona, and --json gives the whole catalogue, as the window shows it. --only ID (repeat it for more) imports only those ids, still all or nothing; an id the source does not have is an error.
  • Your own: persona new takes the instructions from a Markdown file (or -) and writes the front matter from --name, --description and --emoji. persona edit ID changes only what you pass and keeps the id; persona show ID prints the whole file.
  • Give one to a role in the window (above), with persona = "ID" in the flow’s file, or with persona in flow save’s JSON. A flow that names a persona you don’t have, or one whose file cannot be read, cannot run, and flow list says which: import it first. flow list names each role’s persona, as in reviewer: claude · sonnet · 👁️ Code Reviewer. Any role can have one, the orchestrator too.
  • What the agent gets. When a run starts, cornercase copies each persona its roles name into the run’s folder, and the role’s prompt tells the agent to read it before the first work it is sent, to follow it in how it works, and to read it again after a compaction; its role and the orchestrator’s messages come first where they differ. The orchestrator’s brief says which persona each role follows. The run keeps its copy, also across a restart, so editing or removing a persona later never changes a team that is running.
~/.config/cornercase/flows/reviewed.toml
[[role]]
name = "reviewer"
agent = "codex"
persona = "engineering-code-reviewer"
prompt = "Review the changes on this branch."

By default every role works in the run’s worktree, so a reviewer sees what the coder wrote the moment it writes it. For work where several coders try the same task, set a role’s worktree to own (worktree = "own" in the file): cornercase makes it a worktree and a branch of its own, <run's branch>--<role> (fix-login--coder-a), made from the run’s branch, and its tab opens there. The built-in Arena flow does this for its competing coders; the diagram tags such a role’s box own worktree (own when the box is narrow).

  • Seeing the work. What a role has not committed is invisible to the rest, so the role’s prompt tells it to commit on its branch, and the orchestrator’s brief says to read a candidate with git log, git diff and git show on that branch, and to build or test it in its worktree folder. The role’s worktree is a row in the sidebar like any other, so you can open its Changes and Files panels to compare candidates.
  • Integrating. cornercase never merges a candidate. A role that works in the run’s worktree (the integrator in Arena) merges the chosen branch with git merge, or takes parts of the others by hand or with git cherry-pick; the orchestrator never edits.
  • Rules. Two roles that edit the run’s worktree in one parallel stage are a problem, and the flow does not start: give all but one a worktree of their own, or put them in stages of their own. Only a role can work apart, not the orchestrator, and two such roles cannot have names that make one branch. When a run starts on a new branch, its role branches must not exist yet; on a branch that exists, role branches and their worktrees already there are reused.
  • Lifetime and removal. The worktrees stay until the run’s workspace is removed, which asks first, checks every one of them for uncommitted changes, runs the project’s teardown in each and removes them all; the branches are kept. A role’s worktree cannot be removed on its own while its run lives.
  • A file needs version = 2 when a role has one; cornercase writes it that way and refuses a file that says own without it, so an older cornercase does not run the coders in one worktree.
  • Cost. Each worktree is a checkout and builds on its own, and the project’s setup runs in each, so several coders cost several times the disk and the first build.

Going fast should start the flow you meant. In settings → Flows, set default makes the selected flow your default: it is tagged default and the start dialog opens with it selected, so start from an issue starts it and not Full issue. Only one flow is the default, and set default on it again does nothing. A default that was deleted, hidden or has problems never blocks a start: the dialog falls back to Full issue, or to the first flow that can start. Deleting or hiding the default clears it, and renaming it in the editor moves the default to the new name.

Drag a flow up or down the list to move it, as you drag rows in the sidebar: a cyan line shows where it lands, and Esc puts it back. A click on the selected flow still opens it, on release. The start dialog and cornercase flow list follow your order. Flows you have not placed, such as a new built-in flow after an update, an import or a project’s flow, go after the ones you did, by name. Unreadable files stay at the end, and deleted built-ins stays last.

The default is default_flow and the order flow_order in config.json; neither goes into the settings you share with a colleague, since they name flows the colleague may not have. From a shell, cornercase flow default NAME and cornercase flow order NAME… set them (see Manage flows).

Open settings → Flows, the tab right after Agents (Tab and ← → move to the other tabs, ↑ ↓ between flows), to list them, in one list in your order, by name for the flows you have not placed: your default flow is tagged default, a project’s flows this project, and built-in flows you changed edited. Click a flow to select it and see its diagram, and again (or edit) to open it. When the dialog is wide enough the diagram is drawn beside the list (the wheel over it scrolls a tall one); otherwise diagram shows it in place of the list and list brings the list back. A file that cannot be read says why instead of drawing a diagram. duplicate saves a copy in your folder and opens it, set default makes the selected flow the one the start dialog opens on, export and import share a flow, new starts a flow with a coder and a reviewer, and delete asks first. A built-in flow opens like the others: saving it keeps your version in your folder under the same name, in its place.

Deleting a built-in flow hides it, since it lives in cornercase itself and not in a file: it leaves Settings, the start dialog and cornercase flow list, and cornercase flow run refuses it and says how to bring it back. A built-in flow you edited offers both restore default, which deletes your file and brings the built-in back, and delete, which deletes your file and hides the built-in too. deleted built-ins, at the end of the list (click it, or Enter, to expand it), lists the ones you hid, muted with their diagram, and restore brings one back. A run already going keeps its flow. From a shell, cornercase flow hide NAME does the same as delete on a built-in flow, cornercase flow restore NAME as restore and restore default, and cornercase flow delete NAME deletes a flow of yours or the project’s (see Manage flows). A deleted built-in keeps its name: a project’s flow named like it is shown in red and does not run.

SettingsWorktreesAgentsAccountsFlowsIssuesUIRemotePluginsMachinessearch settingsArena 6 ag…coder A + coder BjudgeintegratorreviewerDiagramBug, test first 4 agentsreproducercodertesterorchestratorCross review 4 agentscoderreviewer + second reviewerclaudeFull issue5 agentsedited·coderreviewer + securitytesterQuick 3 agentscoderreviewercoder◀claude◀findings·≤3▼▼reviewersecuritycodexclaudefailures·≤2▼testerclaude▼◆open a pull requestenter or a click on the selected flow edits it·drag a flow to move it·tab orswitches tabseditduplicateset defaultexportrestore defaultdeletepersonasimportnewsharerestartdone
Settings › Flows: the flows in name order, with their agents and their plan, and the selected one's diagram beside them; Full issue has been edited.

A flow opens on its Flow tab, with a tab for the Orchestrator and one per role, and + add role to add one (at most eight). When the dialog is wide enough, the diagram is drawn beside the form as you change it; otherwise diagram shows it. The wheel scrolls it (↑ more and ↓ more at its edges), and the stage you are changing is drawn with heavy borders and scrolled into view.

Flows›Full issueFlowOrchestratorcoderreviewersecuritytester+ add rolename Full issueDiagramdescription A coder, a reviewer and a security reviewer, then a tester, then…orchestratorsaved in yoursnot saved yetclaudePlan▸1 codercoder◀▾2reviewer + securityfindings1·at most 3claude◀roles reviewer, securityseveral work side by sidegoes back to stage 1when there are problemsfindings·≤3when findingswhat sends it backat most 3 timesthen it moves on▼▼▸3 testerfailures1·at most 2reviewersecurity+ add stagecodexclaude◆at the end open a pull requestnotes✎failures·≤2▼testerclaude▼◆open a pull requestenter or a click changes a row or opens a stage·tab orswitches tabssavedone
Editing Full issue, with stage 2 open and drawn heavy in the diagram beside the form.
  • The Flow tab: the name, a description, where it is saved (yours, or the project’s), the stages, the final action and the notes. Click a stage to open it: roles (several work side by side), goes back (never, or to an earlier stage), when (what sends it back, such as findings) and at most (how many times). Hover a stage to move it with ↑ ↓ or remove it with ×; + add stage adds one.
  • A role’s tab: its name, agent, model (the agent’s default, the models cornercase knows for it, or other… to type one), effort (the agent’s default, or one of its levels: Claude Code low, medium, high, xhigh, max; Codex minimal to xhigh; Grok Build and GitHub Copilot CLI none, minimal, low, medium, high, xhigh, max; Gemini CLI, opencode and Cursor CLI have no effort switch; with Cursor it goes in the model id), args added to the agent’s command, env as KEY=value pairs (Claude Code on Bedrock, for example), whether it edits files, its worktree (shared, the run’s, or own, one of its own for competing coders and prototypes; not for the orchestrator), and its prompt. Renaming a role renames it in every stage.
  • Prompts and notes open a larger editor: Enter starts a new line, Ctrl+← Ctrl+→ or Option+← Option+→ move by word, Shift or the mouse select, a right-click copies or cuts, save keeps the text, cancel or Esc drops it.

save refuses while the flow has problems, listed in red under the form (a role in no stage, a loop that goes forward, an agent cornercase cannot start…). Renaming a flow renames its file. Closing a flow with unsaved changes asks first.

A flow is a file, so sharing one is sending text. Select a flow in settings → Flows and click export: its text is copied to your clipboard, even when cornercase runs on another machine, and the dialog says so. A teammate opens the same dialog and pastes (or clicks import and then pastes) on the Flows › import page, and import there opens the flow in the editor, not saved yet. Nothing is saved until they click save, so they can read what it does first; a name already taken becomes Quick 2.

Flows›importpaste a flow, or type owner/repo or an https address# A cornercase flow: import it with `cornercase flow import <file>` or SettingsFlowsimportname = "Quick review"end = "commits"[orchestrator]agent = "claude"model = "opus"prompt = "Keep every message to an agent self-contained."[[role]]name = "coder"agent = "codex"edits = trueprompt = "Implement what the orchestrator asks, run the checks and commit locally."[[role]]name = "reviewer"agent = "claude"prompt = "Review the changes on this branch. Do not edit files."[[stage]]roles = ["coder"][[stage]]roles = ["reviewer"]enter starts a new line·import opens the flow to check it·esc goes backimportcancel
The import page, with a flow pasted from a teammate.

Whoever imports a flow runs its env and args and its prompts, with every agent starting without asking for permission, so the editor shows what the flow sets in red, as it does for a project’s flow, and names the agents you do not have installed. The text is the flow’s own file under one comment line, the same TOML as the files below, at most 256 KiB: a bigger text is refused, on export and on import.

From a shell the same two steps are commands:

Terminal window
cornercase flow export Quick > quick.toml
cornercase flow import quick.toml
cornercase flow import quick.toml --to project --name 'Quick mine'
cornercase flow import quick.toml --check --json

flow export prints the flow, and names on standard error any variable it sets, so you can check that no secret goes with it. flow import takes a file, - for standard input, an https:// address or OWNER/REPO of a community flow. It lists the roles, and when the flow sets variables or arguments, or comes from an address or a repository, it asks before saving (without a terminal, or reading - from standard input, it refuses unless you pass --yes). It saves in yours, or in the project’s .cornercase/flows/ with --to project. A name that is taken is refused: --replace overwrites that flow, and --name imports this one under another name. A built-in flow’s name can be taken with --replace, and yours then stands in its place; a name of yours or a built-in’s cannot be taken in the project’s flows, since they would never run. To share a flow with a whole team, commit its file to .cornercase/flows/ instead.

flow import SOURCE --check shows the roles, risks and agents that are missing here, then exits without asking or saving, even without a terminal or when reading -. With --json, the preview is data for a program that asks the user itself; see Scripts and agents. Use the same --to, --project, --name and --replace options as the later import. It exits 0 when the preview succeeds, or 1 for a bad flow or a name conflict. --check and --yes cannot be combined.

usecornercase.dev/flows lists the built-in flows first, tagged built in (they already come with cornercase, so there is nothing to import), then flows that other people published in their own GitHub repositories, most starred first, with a search box. Each page shows the plan, the team and every prompt in full, and the file. To use one, import it from its repository:

Terminal window
cornercase flow import octocat/security-audit

OWNER/REPO is read from the repository’s default branch: flow.toml at its root, else cornercase-flow.toml. The command lists the roles, always asks before saving (without a terminal it refuses unless you pass --yes) and saves the flow in yours. In the dialog, type owner/repo or an https:// address on the Flows › import page and click import: cornercase fetches it and opens it in the editor, not saved yet, with a note that nobody reviewed it. An import is a copy that does not update itself; --replace brings in a newer one. A name that is also a folder or file on your disk is read as that path. To publish yours, see Publish a flow.

  • Nobody reviews community flows. Anyone can publish one, and the list is built by a script that skips a flow that is not valid, is longer than 256 KiB or sets env or args. That is all it checks.
  • A flow’s prompts drive agents that start in the mode that never asks for permission, so a prompt that tells an agent to run a command, read a file or send something runs it, on your machine. Read the page of a flow, every prompt of it, before you import it, and pass --yes only for one you have read. What a flow does is your responsibility.
  • An import is a copy: a repository changed or deleted later does not change yours, and the page shows the file as it was at the last refresh, so read the file you actually import.
  • The list leaves out flows that set env or args, but a flow you import from any address can; the import shows them in red.

A flow you made or tuned on your laptop can be on your machines too, so starting one on a machine runs the version you just saved. Nothing is sent on its own: you send it when you want, from settings → Flows, while at least one machine is linked and shown there.

  • sync sends the selected flow, like export acts on it. It is offered for your flows (built-in flows you edited included), not for a built-in you did not change nor for a project’s flow, which already travels with its repository.
  • sync all sends every flow of yours.
  • Where: every machine in settings → Machines that shows its work here. A hidden machine, or a computer you only open a window on, has no link to send them through, and a machine that is not linked right then gets nothing: sync again once it is back. A machine still on an older cornercase gets nothing either, since it would keep no time on a flow and could save it readable by other users: the answer says it runs an older cornercase: update it there, then sync again.
  • What it says: what each machine got, or why it failed, such as vps: sent Duo · 2 already the same, vps: kept its newer Duo or vps: not synced: vps unreachable. A flow that cannot go is named with why: one too large to share, a file of yours that cannot be read (written by a newer cornercase, for instance), two files of yours with the same name (neither goes until you rename or delete one), or a folder of your flows that cannot be read.
  • The last saved wins: saving a flow writes the time in its file (changed), by each computer’s clock, so keep your machines’ clocks right (a time more than 5 minutes ahead is replaced by the receiving computer’s). A flow saved later on the machine is left alone there, even when it is saved while the sync runs.
  • Nothing is deleted there: deleting a flow here leaves the machine’s copy, and deleting or restoring a built-in flow stays on this computer, as do your default flow and your order.
  • Nothing asks: both ends are your machines and you clicked, so a synced flow is saved there without the question an import asks, even when it sets env or args. Its env values and arguments go too, secrets included; on Linux and macOS each flow file of yours is written readable only by you, on both ends; on Windows it is in your user profile. A flow that arrives or replaces one of yours shows a note there naming the computer it came from. Agents the flow uses that are not installed there are named on that machine’s Flows list, as usual.

From a terminal, cornercase flow sync sends every flow of yours and prints what each machine got; name a flow to send only it (--machine vps for one machine, --json for programs):

Terminal window
cornercase flow sync
cornercase flow sync Review --machine vps --json
Flows Where
Built in In cornercase itself. The ones you delete are listed by name in hidden_flows in config.json.
Yours flows/ next to config.json: ~/.config/cornercase/flows/.
A project’s .cornercase/flows/ in its repository. Commit them to share a flow with your team.

Each flow is a TOML file named after it, so long prompts read well in a repository. A name is looked up in yours, then the built-in flows, then the project’s: a flow of yours with a built-in flow’s name replaces it, and a project’s flow, which comes with the repository you cloned, never stands in for yours or a built-in one, so give it a name of its own to run it. flow list and flow run say so when a name is in several places. A file cornercase cannot read is listed with its error, and can be deleted from the dialog.

.cornercase/flows/quick-review.toml
name = "Quick review"
end = "commits"
memory = "6GB"
[orchestrator]
agent = "claude"
model = "opus"
prompt = "Keep every message to an agent self-contained."
[[role]]
name = "coder"
agent = "codex"
model = "gpt-5.5"
effort = "high"
edits = true
prompt = """
Implement what the orchestrator asks, run the checks and commit locally.
"""
[[role]]
name = "reviewer"
agent = "claude"
prompt = "Review the changes on this branch. Do not edit files."
[[stage]]
roles = ["coder"]
[[stage]]
roles = ["reviewer"]
[stage.back]
to = 1
when = "findings"
at_most = 2

memory, at the top of the file, is how much free memory a run of the flow needs, such as "6GB" or "512MB" (units are powers of 1024). flow run --machine auto, the queue and the auto choice of the start dialog only pick a machine with that much free; a flow without it counts a start needs of Settings › Machines, 4GB unless you change it. An amount cornercase can’t read is one of the flow’s problems, and flow list --json gives it as memory.

Terminal window
cornercase flow list
cornercase flow run 'Full issue' --prompt-file issue.md --worktree fix-login
cornercase flow run 'Full issue' --issue '#482' --close-when-merged --free-builds
cornercase flow export Quick > quick.toml
cornercase flow import quick.toml
cornercase flow save draft.json --check
cornercase flow hide Quick
cornercase persona import msitarzewski/agency-agents/engineering

flow account moves a running team to another account. flow export and flow import share a flow, and flow sync sends your flows to your machines. flow save, flow delete, flow hide and flow restore manage them, flow runs, flow messages and flow files follow a run, and a program with an editor of its own reads each flow whole in flow list --json and saves one with flow save (the flow-save request). flow list lists the flows with their agents and their problems. flow run starts one, answering once the tabs exist with the workspace’s id and each role’s pane id; nothing changes in the window unless you pass --focus. An agent can use them too, and start takes --model, --mode and --effort to start a single agent with a model, a mode and an effort of its own. See Start a flow in Scripts and agents.

cornercase status --json gives each workspace that runs a flow a run with its end, whether it was reached and, when the run closes its agents once merged, close_when_merged (and free_builds when it also frees their builds), and exited, the roles whose agent exited by itself, while there are any.

  • The files of a run that ended in the Flow panel, which shows only while a run does: cornercase flow files lists them, and run_dir is their folder. There is no way to turn the folder off; a flow’s own prompts can say not to use it.
  • Flows that span several projects.
  • Scheduling a flow: the queue starts single agents.
  • Message events in cornercase events: a run’s messages are their own stream, cornercase flow messages.
  • A search in the import’s catalogue, and its divisions’ icons and colours. A run on another machine uses that machine’s personas, and the Personas page lists this computer’s.
  • Agents cornercase doesn’t know: a role runs Claude Code, Codex, Gemini CLI, opencode, Grok Build, Cursor CLI, Vibe CLI or GitHub Copilot CLI.