0x2F documentation

00 START RELEASE1.1.0 REQUIRESnode ≥ 20

0x2F is a local task runtime for coding agents. The task outlives the agent session: return to unfinished engineering work with its context intact.

A coding agent does the work. 0x2F keeps the Task: its original intent, constraints, decisions, previous runs, evidence and results. Reopen it from another process, or continue through another supported harness without reconstructing the previous context.

0x2F is hex for the ASCII / (47). The CLI is 2f. No build step, local-first. Commands below target 1.1.0. See the dated verification and support limits.

1.1.0 · REVIEW THE NEXT RUN

Release 1.1.0 shows the next agent’s task input before continuing. Review your instructions, prior-result delivery and exact prompt; choose the next harness, then explicitly start. Local Web and TUI use the preview for correction, answer-and-continue, retry and reopen. A changed context refuses the reviewed start. Existing task state needs no migration. See the preview and guarded start, or read the release scope, actual checks and limits. Passing checks remains separate from human acceptance.

00.2  INSTALL

Two prerequisites: Node.js ≥ 20, and an installed, authenticated coding harness with an available model. Claude Code (claude), Codex CLI (codex), Gemini CLI (gemini), DeepSeek Harness (dsh) and OpenCode via ACP (opencode acp) are built in. Extra integrations use project manifests — see 02 EXECUTION.

npm install -g 0x2f@1.1.0        # adds the 2f command to PATH
2f version                # 1.1.0

npx --yes 0x2f@1.1.0 ... works for a one-off; install globally for regular use. 0x2F needs no service account of its own. Authentication, model access and inference charges belong to the selected harness and its provider.

00.3  QUICK START

2f init                          # initialize this repository
2f providers                     # check installed integrations
2f new "Investigate why retries restart the whole run" --provider auto
# Created #001: Investigate why retries restart the whole run
# Open: 2f open 1
2f open 1                        # also works in another process
2f open 1 --run 1                 # inspect this run's result
2f tui                           # terminal client
2f ui                            # Web UI

Use the actual ID printed by new; 1 is an example. It is the persisted Task ID. Open the same project directory in another terminal and run the printed command — no agent session has to remain open.

2f init writes .work/ with project.md, rules.md, knowledge.md, decisions.md and providers/. Edit project.md and rules.md once — every prompt 0x2F builds is assembled from them, so the harness starts with your project's context instead of none. It also tells you which provider will run, or what to install if none is available.

If a requested provider is unavailable, install that harness or select one you have. Without a routing config, the default is claude-code; --provider auto uses availability and policy instead (see 03 ROUTING). Executable availability does not establish authentication or model access.

00.4  2f ui

2f ui behaves like launching a local application. If a 0x2F runtime is already healthy on 127.0.0.1:4242 it reuses that one and opens the browser; otherwise it starts the runtime in the background, waits until it is healthy, then opens the UI. Runtime output goes to .work/ui.log.

The Web UI is a control surface over tasks that are already running. Closing the browser does not stop anything. 2f ui <port> or 2f ui --port <n> serves another port; --no-browser starts it without opening a browser.

00.5  YOUR FIRST TASK

Write the task the way you would write it for a colleague — the outcome you want, not the steps to get there. 2f new returns immediately; the run is detached.

2f new "…"
    ↓
WORKING ──────→ READY              2f open <id> for the result
    ↓
NEEDS YOU ── 2f allow | 2f reject | 2f answer ──→ …
01 TASKS & RUNS STATEstable SOURCEsrc/core/

The task is the product object. Everything else — runs, events, results, provider sessions — hangs off it.

01.1  A TASK IS NOT A SESSION

A Task persists beyond individual sessions. Each run records an execution through a coding harness; later runs receive the Task's accumulated context. The harness may stay the same or change. Runs belong to one continuous record of work.

Task  "Investigate why retries restart the whole run"
  │
  ├── run 01 · harness A   investigation → findings saved
  │          ↓ task context
  └── run 02 · harness B   fresh session → continues the work

     illustrative · sequential runs · same Task

01.2  LIFECYCLE

Five states, normalized by 0x2F regardless of what the provider underneath reports. A provider that emits nothing but a final result still moves its task through the same lifecycle.

WORKING ───────────────────────────→ READY
   │                                    │
   ├── permission ──→ NEEDS YOU ──→ allow / reject
   │                      │
   ├── decision ─────────→│ ──────→ answer
   │
   └───────────────────────────────→ FAILED

   any state ─────── close ──────────→ DONE
WORKING
A run is executing. Nothing is required of you.
NEEDS YOU
Execution has stopped on a permission or a decision. See 04.
READY
The run finished and produced a result for you to read.
FAILED
The run ended without a result. It is not silently retried elsewhere.
DONE
You closed it. It leaves active attention and stays on disk.

01.3  RUNS

Each execution is recorded as a run under the task, numbered from 01. Re-running is explicit and never automatic, and runs of one task are strictly sequential — a rerun refuses while the task is working.

2f rerun 1                        # new run, same Task
2f open 1 --run 2                  # inspect run 02

Use an existing run number; a bare --run is a usage error. History records what happened, not a ranking of agents. READY means a result is available; inspect its evidence and verification.

01.4  CONTINUING THROUGH ANOTHER AGENT

A new run is a continuation of the task, not a blank attempt. Its input (runs/<n>/prompt.md) is rebuilt from current task state — the original request plus your constraints and answers, and prior runs' results, verification and changed files — and handed to a fresh provider session. The task is persistent; provider sessions are disposable.

Add a constraint with 2f note <id> "<constraint>" (or 2f answer on a decision block); it becomes part of the next run's context with no manual copying. The original prompt.md is never overwritten.

2f note 1 "Preserve the public API; add a regression test."
2f rerun 1 --provider opencode     # when that harness is appropriate
2f open 1 --run 2

One observed Codex → OpenCode correction demonstrates this path. It is supporting evidence, not a guarantee for every harness or task.

REVIEW THE NEXT RUN

In local Web and TUI, continuing first opens the input preview. New corrections and answers stay editable drafts until you confirm Start. Escape returns to the task. TUI v previews directly, p selects the next harness before opening it, and u refreshes the review.

2f preview 1 --provider opencode
# Inspect the input, then run the printed command:
2f rerun 1 --provider opencode --preview <preview-id>

The preview identifies prior results included in full, excerpted or referenced under the context budget. Binding user instructions remain in full. If the task, target or context changed, refresh before starting. Existing direct CLI reruns remain available.

This is the task prompt for a fresh session. Hidden harness state, full transcripts and future file reads are not captured; checkout files are not frozen. Full preview is local and is not added to the experimental phone protocol. A lost start response is reconciled with task state; execution is never retried automatically.

0x2F 1.1.0 next-run preview with demonstration agents
Local preview · deterministic demonstration data, not a live-model performance claim

01.5  EVENTS

Runs append normalized events to .work/tasks/<slug>/events.jsonl. The CLI and the Web UI subscribe to the same stream; neither reads provider processes directly. Providers that emit structured events produce a fine-grained stream; providers that do not produce a sparse one. 0x2F does not invent the difference away.

01.6  RESULTS & CLOSING

A finished run writes runs/<n>/result.md — prose written by the harness, not a diff or a score. 2f open <id> shows it.

2f close <id> removes a task from active attention — a finished run you have read, a failure you have understood, a stop you do not want to answer. It never resumes a provider and never starts an execution.

02 EXECUTION STATEstable SOURCEsrc/providers/

0x2F has three provider integration paths behind one contract. To 0x2F they are all just providers — the harness underneath differs, and the difference is declared, not hidden.

02.1  THE THREE PATHS

NATIVE     a deep adapter for one harness's capabilities
           claude-code · codex · deepseek-harness · gemini   built in
           claude-code: permissions → needs_you → same-session resume

ACP        one generic provider, Agent Client Protocol v1 over stdio
           OpenCode built in · other ACP agents by manifest

COMMAND    one generic provider for headless executables
           any CLI that takes a prompt and prints a result — by manifest

2f providers lists every provider with its integration type and executable availability. The four native integrations are Claude Code, Codex CLI, DeepSeek Harness and Gemini CLI. OpenCode uses the same ACP adapter as configured ACP agents.

02.2  MANIFESTS

Everything that is not built in is added declaratively: drop one JSON manifest into .work/providers/ and it becomes a provider — no source changes.

{ "id": "cursor",
  "displayName": "Cursor",
  "transport": "acp",
  "command": ["agent", "acp"] }

ACP manifests may set "permissions": interactive (default — a permission request pauses the run and asks you), deny, or approve (headless auto-resolution). Command manifests must pass the task through the {prompt} placeholder. Commands are spawned as argv arrays, never through a shell.

02.3  AVAILABILITY

Availability means the executable can be resolved — a PATH lookup, never a model request. A registered integration or yes does not prove login validity, model availability, subscription access or free inference. Set those up in the chosen harness itself.

Codex normally keeps its user config and existing authentication. If that config forces an unavailable model, opt in to the account default with CODEX_IGNORE_USER_CONFIG=1. It skips the whole Codex user config for this invocation; it does not edit credentials, force a model or retry a failed run.

CODEX_IGNORE_USER_CONFIG=1 2f new "Investigate a CLI bug" --provider codex

02.4  OBSERVED COMPATIBILITY

Real Task-context handoffs include Codex → OpenCode → Codex and Codex → Cursor → Codex. These November 1 development-build observations are version-pinned; they are not universal guarantees. Cursor Agent CLI 2026.10.22-27dcf5f used agent acp with its own login. Cursor native resume and interactive permissions were NOT RUN in that chain. A separate real OpenCode 2.2.5 Linux task used its public no-login model path; it does not prove OAuth access.

See the compatibility matrix for live, mock and untested boundaries, and the roadmap for unfinished work.

02.5  WHEN NONE IS AVAILABLE

2f init reports what is ready, or what to install. 2f new refuses before persisting anything — a run against an unavailable provider would be doomed, so no task is created:

Execution provider "claude-code" is unavailable on this machine.
Expected executable: claude
Install or configure Claude Code, then retry.

Install a harness, add a manifest (02.2), or point routing at what you have (03).

03 ROUTING STATEstable SOURCEsrc/core/router.mjs

By default 2f new uses the configured routing default. When that default is auto, 0x2F picks a harness deterministically — it does not read the task text and never claims a provider is "best".

03.1  CONFIG

In .work/routing.json:

{ "default": "auto",
  "prefer": ["claude-code", "deepseek-harness"] }

03.2  THE DECISION

auto selects available providers first, then the prefer list in order, then registry order. The decision — provider, node, reason, considered — is persisted with the run and shown by 2f open and the Web UI.

Same state + same policy → same routing decision. No randomness, and no automatic failover: a routed run that fails is failed, not secretly retried elsewhere.

03.3  OVERRIDE

2f new "Audit the auth flow" --provider auto         # policy routing
2f new "Audit the auth flow" --provider claude-code  # explicit
04 NEEDS YOU KINDS2 SOURCEsrc/core/lifecycle.mjs

NEEDS YOU is a Task waiting for human input. The coding harness reports the stop; 0x2F keeps it attached to the work and exposes the action you can take.

There are two reasons a task stops, and they are not interchangeable.

04.2  PERMISSION

A concrete operation needs authorization — an edit, a command. The request names the operation.

2f allow <id>
2f reject <id>

Where the provider supports it, answering continues the same run — nothing restarts. claude-code works this way natively.

04.3  DECISION

The harness cannot proceed without your judgment. It asks one concrete question.

2f answer <id> "<your answer>"

Your answer is recorded with the Task; answering alone starts no execution. Use 2f rerun <id> to continue in a new run with that answer in context. A decision is never allowed or rejected.

04.3.1  THE DECISION PROTOCOL

A decision request is machine-read, not prose. A harness signals one by ending its run with exactly this block:

## Needs human decision
REQUIRED: yes
QUESTION: <the concrete question a human must answer>

Anything else — a bare heading, "None", "No decision required", or any amount of prose — is read as no decision. A finished run completes READY instead of interrupting you for work that did not need you. This is deliberate: arbitrary provider chatter must not be able to summon a human.

04.4  CLOSE

2f close <id> — or CLOSE in the Web UI — belongs to the 0x2F lifecycle, not to the provider, so it is available whatever the harness underneath can do: a stop you do not want to answer, a wrong request, a failure, a result you have read. It never resumes and never starts a run. CLOSE does not cancel a provider: an active worker may finish or wait for permission. Runtime restart likewise leaves detached workers running; see the host setup for systemd semantics.

04.5  RESUME CAPABILITY

Same-session resume is a harness capability, used for supported permission flows. Continuing a persisted Task is broader: rerun creates a new run with saved context, even through another harness. It does not resume the previous provider session.

                 PROVIDER CONTRACT
                        │
      ┌─────────────────┼─────────────────┐
   NATIVE              ACP             COMMAND
   adapter           manifest         manifest
   rich               broad            minimal
   events · resume    structured       start → result
   permissions        permissions*     no interruption

* an ACP manifest sets "permissions": interactive (default) · deny · approve

05 SURFACES STATEstable SOURCEsrc/server.mjs

CLI, TUI, Web and phone are surfaces over the same Task runtime. They read the same history and call the same shared actions; changing surfaces does not create a new Task.

2f lists tasks; 2f open <id> opens one. 2f tui opens the terminal ledger, 2f ui the Web UI, and 2f pair connects a phone (07).

05.1  THE LOCAL RUNTIME

2f ui behaves like opening a local application. If a 0x2F runtime is already healthy on 127.0.0.1:4242 (localhost only) it reuses it; otherwise it starts the runtime in the background, waits until it is healthy, and opens the UI. Runtime output lands in .work/ui.log. A second 2f ui probes the port and reuses the running runtime — another tab is fine.

Port: 2f ui <port> or 2f ui --port <n>. --no-browser starts it without opening a browser.

05.2  WHAT THE UI SHOWS

The browser is a control surface over tasks that are already running: see NEEDS YOU / WORKING / READY / FAILED, open a task and its run history, and ANSWER / ALLOW / REJECT / NOTE / SEND BACK / ACCEPT. The ledger renders the same normalized events the CLI reads. Closing the browser does not stop anything.

05.3  LOCAL ONLY

The API binds to 127.0.0.1, is token-authenticated (the shell sets an HttpOnly SameSite=Strict cookie), and refuses cross-site browser requests — 0x2F serves only its own loopback origin. Remote control is an outbound control layer, not remote execution (see 07 REMOTE).

Web, phone and pairing screens offer Light / Dark / System in SETTINGS. System is the initial default; the preference is saved on the browser origin and resolved before first paint. Both themes distinguish prose, headings and green commands. TUI keeps its dark default and --light. In TUI, r reads the full result and reported Verification, i shows saved input, and brackets select runs. Notes saved during execution reach the next run, not the current worker.

DESKTOP · REAL RELEASE REVIEW

0x2F 1.0.0 web in dark: real Codex release-review tasks
Dark · Completed checks beside a running theme review
0x2F 1.0.0 web in light: real Codex release-review tasks
Light · Completed checks beside a running theme review

TERMINAL · TASK HISTORY AND PROGRESS

0x2F 1.0.0 tui in dark: real Codex release-review tasks
Dark · 140 × 42 cells · elapsed time compared with the previous run
0x2F 1.0.0 tui in light: real Codex release-review tasks
Light · 140 × 42 cells · elapsed time compared with the previous run

MOBILE · THE SAME TASKS

0x2F 1.0.0 mobile in dark: real Codex release-review tasks
Dark · 390 × 844 responsive browser preview
0x2F 1.0.0 mobile in light: real Codex release-review tasks
Light · 390 × 844 responsive browser preview

These 1.0.0 captures remain attributed to real Codex release-review tasks. TUI images render actual PTY cells with the application palette. Progress compares elapsed time with the prior run; Web and phone marks show reported activity. The mobile preview does not replace physical-device qualification.

06 LOCAL STATE STATEstable SOURCEsrc/core/store.mjs

0x2F keeps Task state in the project's .work/: intent, decisions, runs and results stay with the repository, independently of a harness session.

06.1  WHAT .WORK/ CONTAINS

tasks/<slug>/
Task state, runs, per-run prompts and results, the normalized event log.
project.md
The project described once — every prompt starts from it.
rules.md · knowledge.md · decisions.md
Working rules and promoted knowledge and decisions, carried into every prompt.
routing.json
The routing default and prefer list (03).
providers/*.json
Extra ACP/command providers (02).
ui.log
The UI runtime's output.
relay.json · relay-acks.json
Pairing credentials and the ack cache — only after 2f pair.

06.2  WHAT STAYS LOCAL

Task prompts and results may quote repository code, so they are written owner-only (mode 0600). The local API binds 127.0.0.1; remote control is a separate opt-in surface (07).

Local-first describes Task storage and runtime ownership, not an offline-model guarantee. The selected coding harness may send task content and source code to an external model provider under its own configuration and data policy. Its authentication storage is separate from 0x2F's Task state.

06.3  REMOVING STATE

Delete .work/ to remove 0x2F's state from a project — your source files are never touched. Project .work/ also survives uninstalling the CLI (see 08).

07 REMOTE STATEexperimental SOURCEsrc/relay/

The phone is an experimental companion to the host runtime. The host keeps executing work; the phone reads results and sends explicit actions. LAN pairing requires the same trusted Wi-Fi network. Self-hosted HTTPS requires client and relay origins you operate; 0x2F provides no public hosted service.

07.1  WHAT IT DOES

2f pair

Run it in the project you want to control. It detects the execution host's private LAN address, makes the host's runtime its own relay for the pairing window, and prints a phone-openable URL plus a one-time pairing code (with a "same Wi-Fi required" note). Open the URL on your phone on the same network and enter the code. The HTTP bootstrap assumes a trusted LAN: it cannot prevent an active network attacker replacing the client. Use the separately deployed HTTPS client and TLS relay when that assumption is unacceptable. The phone then speaks the same Web UI against that host: see NEEDS YOU / WORKING / READY / FAILED, open a task, and ANSWER / ALLOW / REJECT / NOTE / SEND BACK / ACCEPT.

Every command, ack, event and snapshot between the phone and the Mac is end-to-end encrypted (AES-256-GCM keyed by the pairing code): a passive observer sees ciphertext. The served client is trusted: an active attacker replacing an HTTP pairing page can capture the code. Use LAN pairing only on a trusted network.

07.2  OFFLINE

While the Mac is offline the phone shows its own last-known state with a MAC OFFLINE banner and disables actions. Commands are never queued, and a retried command reuses its requestId so a duplicate admission returns its recorded acknowledgement. Uncertain or corrupt replay receipts refuse mutations; inspect state before retrying.

07.3  PREREQUISITES

The execution host and phone on the same trusted Wi-Fi / private LAN (macOS may ask to allow incoming connections for node — allow it). The LAN surface is bounded: it exists only while pairing is active, only on private-LAN addresses, and the normal local API stays loopback-only — 2f ui is never reachable from other devices.

Away from the LAN, the hosted path remains available: 2f pair --relay https://… --client https://… (or the 0X2F_RELAY_URL / 0X2F_CLIENT_ORIGIN env vars) against a relay you deploy. The client and relay must use separate HTTPS origins. This path remains experimental, operator-owned infrastructure — its deployment details live in the repository (relay/README.md and docs/remote-control.md).

07.4  LIFECYCLE & REVOKE

Pairing tokens are one-time and expire in 10 minutes; phone sessions live 30 days. 2f pair --off revokes remote access — a real revocation, not just a local disconnect — and on the LAN also closes the pairing surface within a second. Re-pairing rotates the Mac's credential and the encryption key, so a stale phone session can never silently come back after the Mac reconnects.

08 UPDATE & UNINSTALL STATEstable SOURCEpackage.json

0x2F updates and uninstalls through npm like any global CLI. Project state belongs to the project, not to the install.

08.1  UPDATE

npm install -g 0x2f@1.1.0
2f version

08.2  UNINSTALL

npm uninstall -g 0x2f     # removes CLI; project .work/ stays

Uninstalling never touches task state. To remove state from a project, delete .work/ (06.3).

UPGRADE & ROLLBACK

Quiesce workers and other writers before upgrade. Preserve the prior prefix and a consistent private workspace/state backup. An old 0.2.0 executable must not execute new isolated tasks. Restore uses a new directory and disables relay credentials, hosts and execution authority; it never replays a run. Keep a matching executable for inspect/export/apply. Active pairings retain the new runtime, or must be revoked before rollback to a version without replay admission. Preserve uncertainty receipts; do not remove them to force a retry. Upgrade and rollback procedure →

09 LIMITS STATEcurrent SOURCEREADME.md

The current, honest boundaries of the product.

A user-systemd runtime can execute on ThinkCentre/Linux while a Mac connects through a loopback SSH tunnel and a phone uses the existing trusted-LAN pairing path. The host owns workspace, harness login and files. See host setup, recovery and stop commands. No service account or credential transfer is required by 0x2F.

The supported core is local CLI, TUI and desktop Web on macOS arm64 and Linux x86_64 with Node.js ≥20 and an installed, authenticated supported harness. Phone companion and self-hosted remote access remain experimental. Physical interruption testing on the final package is not complete; Android, Windows execution, native mobile apps and closed-browser push are unqualified.

1.1.0 checks and remaining limits · Commands and troubleshooting

LOCAL-ONLY EXECUTION
Each runtime executes on its own host. Explicit pinned SSH commands invoke a separately installed remote CLI on host-owned files and login. No task migration, credential transfer or automatic failover.
REMOTE CONTROL LIMITS
No push notifications (the phone works while the app is open), no offline command queue by design, one phone at a time per Mac (re-pairing revokes the previous phone's session).
AUTO IS POLICY ROUTING
Deterministic, not semantic selection — and there is no automatic failover: a routed run that fails is failed, not secretly retried elsewhere.
RUNS ARE SEQUENTIAL
Runs of one task are strictly sequential. No concurrent or multi-agent orchestration of a single task.
NO EVALUATION
Run history is for inspection — no scores, no winners, no recommendations.