Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 15:22
· 975 commits to main since this release

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 web and 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 claude session 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 = true under [main] in .fold/config.toml to 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 cost for the terminal report. Use --since for a time range, --by for a full breakdown, --task for one task, or --json for 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_events results. A reply with reply_to acknowledges the message it answers when it was sent to you. acknowledge_message can 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 claude and the daemon refresh the installed skill files when they differ. fld doctor reports missing role skills.

Improvements and fixes

  • A check can run at both stages with stage = ["proposal", "integration"] in fold-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_events call.
  • 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_human cookie are removed. Use fld web or a token. fld token create goes through the daemon and starts it when needed.
  • Each fold agent has one worker. Remove register_worker, tool as fields, include_workers, agent/worker recipients, and the agents API's parent field from integrations. Claims held by former subagent workers become stale.
  • Tool reads return shorter answers by default. Use detail: "full" for get_proposal and get_task_graph, history: "all" for get_task, and include_stopped or include_instructions for list_workers.
  • get_proposal_diff and compare_revisions return unified @@ hunks with numbered line strings. acknowledge_message takes ids, a list, in place of id.
  • 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 claude refuses to start another main agent. Configure this through [main]; start_worker does not accept the main role.
  • 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_days controls checkpoint retention, and fld gc retries 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 record to record them.

Install or upgrade

  • Install or update fold:

    curl -fsSL https://omukk.dev/fold/install.sh | sh
  • The installer puts fld in ~/.local/bin. Set FOLD_VERSION to choose a release or FOLD_INSTALL_DIR to choose another folder.

  • After updating, run fld restart, then fld web for 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.

Full changelog