Repository navigation
v0.5.0
fold 0.5.0
You can let fold run the main agent on a server, review related proposals together, and see what each task costs. The web app also requires sign-in on localhost, with a one-time link from fld web.
Browser sign-in
- Run
fld weband open the link it prints. The link works once, and the command shows when it expires. You can also sign in with a token, including from another machine. - Every browser needs a session, including on localhost. Sign-in links and tokens come from the daemon; supervised workers and check processes cannot create them.
- The main agent in your own
fld claudesession runs as you and can sign in as you. Browser session cookies reach every port on the same host.
Reviews and proposals
- The review lead can wait up to an hour for related tasks before assigning their proposals to one reviewer. A plan holds at most five tasks, including those whose proposals are already open. The board and proposal page show the tasks it awaits and the deadline.
- fold merges ready batch members in dependency order and runs integration checks once on the result. It publishes those members together. If the checks fail, fold tries members separately and sends back the failures.
- The batch page has Members and Merged changes, with a diff of the combined result against main. For manual integration, choose Integrate the batch or use
integrate_review_batch. After a batch review, fold waits at most an hour for outstanding verdicts. - The review lead assigns reviews to reviewers. When a revised proposal needs review, fold resumes the stopped reviewer holding its claim in the same session. Missing task requirements lead to requested changes; work outside the task becomes a separate request.
- Proposal pages have Overview, Changes, Checks, and Conversation tabs, each with its own address. They bring together version history, a changed-file tree with viewed marks, check logs, and discussion threads.
- Select diff lines and choose Ask the author, or ask about the whole proposal from Conversation. The question reaches the task's worker and can restart it to answer. It changes no review verdict, and the thread quotes the selected lines.
A main agent without a terminal
- Set
supervised = trueunder[main]in.fold/config.tomlto let fold run the main agent. You talk to it through the web app. Plans, questions, and requests to change main arrive as messages that wait for your reply. - fold starts the main agent with the daemon and resumes it for messages, requests, ready tasks in
main, or reviews needing its attention. It stays paused with the project and waits while an interactive main session is open. - The Agents screen shows its transcript and lets you start a new session. If you stop it, it stays stopped until you start a new session.
Costs and tokens
- The Agents screen has a Cost tab for Today, Last 7 days, and All time. View cost or tokens over time, split by role, area, model, task, or worker. Token totals include input, output, cache reads, and cache writes.
- Tasks show build and review costs. The Projects page shows each project's cost and the combined total. These numbers come from Claude Code's reports for supervised turns; your own terminal's main session is outside them. A supervised main agent is included.
- Run
fld costfor the terminal report. Use--sincefor a time range,--byfor a full breakdown,--taskfor one task, or--jsonfor the data. Web ranges use your local day; terminal ranges use UTC days.
Messages and agent tools
- Leads, reviewers, and task workers can ask you directly about their work. Questions reach Needs you, and your reply returns in the same thread.
- A message to a stopped or failed worker can start it again in its saved session. If fold cannot start it, the message goes to the responsible lead or main agent, with a note in the thread.
- New messages arrive with wake notices, the Stop hook, and
wait_for_eventsresults. A reply withreply_toacknowledges the message it answers when it was sent to you.acknowledge_messagecan handle several messages in one call. - Task feedback goes to the task's claim holder, area lead, and main agent. The task's Messages section starts collapsed and shows your threads.
- Each role has its own fold skill, and its frequent tools load with the session.
fld claudeand the daemon refresh the installed skill files when they differ.fld doctorreports missing role skills.
Improvements and fixes
- A check can run at both stages with
stage = ["proposal", "integration"]infold-checks.toml. A single stage string remains valid. - Resuming a session counts the cost added by each turn, without counting its earlier cost again.
- Reviewers use the five-minute prompt cache by default. Workers using that cache wait at most 270 seconds in one
wait_for_eventscall. - Leads hand off at 85% of a context window below 220k tokens, or 60% for larger windows, unless configured otherwise.
- Keyboard focus rings appear on controls, long diff lines wrap, and the batch side panel moves below its members on narrow screens.
Breaking changes
- Sign-in by name and the
fold_humancookie are removed. Usefld webor a token.fld token creategoes through the daemon and starts it when needed. - Each fold agent has one worker. Remove
register_worker, toolasfields,include_workers,agent/workerrecipients, and the agents API'sparentfield from integrations. Claims held by former subagent workers become stale. - Tool reads return shorter answers by default. Use
detail: "full"forget_proposalandget_task_graph,history: "all"forget_task, andinclude_stoppedorinclude_instructionsforlist_workers. get_proposal_diffandcompare_revisionsreturn unified@@hunks with numbered line strings.acknowledge_messagetakesids, a list, in place ofid.- Proposals in open review plans cannot be claimed or batched separately. Members of open or waiting batches wait for batch integration. A member with only comments waits for a verdict, subject to the batch deadline.
- With supervised main enabled,
fld clauderefuses to start another main agent. Configure this through[main];start_workerdoes not accept themainrole. - fold removes a closed workspace's folder once its agent has no running worker and no open session. It first records tracked changes it has not saved; review checkouts take no final checkpoint. Closed workspaces cannot be restored.
closed_workspace_dayscontrols checkpoint retention, andfld gcretries failed removals. - The project and registry databases change; v0.4.0 cannot open them after the upgrade. The upgrade also settles old unread messages that never reached a worker through a notice.
- If your project tracks the refreshed fold skill files, run
fld recordto record them.
Install or upgrade
-
Install or update fold:
curl -fsSL https://omukk.dev/fold/install.sh | sh -
The installer puts
fldin~/.local/bin. SetFOLD_VERSIONto choose a release orFOLD_INSTALL_DIRto choose another folder. -
After updating, run
fld restart, thenfld webfor a sign-in link. -
Binaries support Linux x86_64 and aarch64, and macOS 13 or newer on Apple silicon. Linux binaries are static. The web app comes with
fld. -
Use Claude Code 2.1.299 or newer and sign in before starting fold. Projects with Git require Git 2.36 or newer.