[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114999":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":41,"updatedAt":42,"readmeContent":43,"aiSummary":44,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":45,"discoverSource":46},114999,"icode-workbench","icodehq\u002Ficode-workbench","icodehq","Run a fleet of agents. One workbench. Keep the judgment. Your agents, your CLI, your subscription — Claude Code, Codex, OpenCode, and 40+ more.","https:\u002F\u002Ficodehq.vercel.app\u002F",null,"TypeScript",192,5,3,2,0,117,72.33,"GNU Affero General Public License v3.0",false,"master",[23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"ade","agent-manager","agent-orchestration","agentic-development-environment","ai-agents","claude-code","code-review","codex","coding-agents","desktop","electron","git-worktrees","local-first","opencode","parallel-agents","task-orchestration","worktree-manager","wsl","2026-11-23 17:21:26","2026-11-23 08:55:22","\u003Ch1 align=\"center\">\n  \u003Cimg src=\".github\u002Fassets\u002Flogo.svg\" alt=\"iCode Workbench\" width=\"64\" valign=\"middle\" \u002F> iCode Workbench\n\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  \u003Cstrong>English\u003C\u002Fstrong> ·\n  \u003Ca href=\"README.zh-CN.md\">简体中文\u003C\u002Fa> ·\n  \u003Ca href=\"README.ja.md\">日本語\u003C\u002Fa> ·\n  \u003Ca href=\"README.ko.md\">한국어\u003C\u002Fa> ·\n  \u003Ca href=\"README.es.md\">Español\u003C\u002Fa> ·\n  \u003Ca href=\"README.pt-BR.md\">Português (BR)\u003C\u002Fa> ·\n  \u003Ca href=\"README.de.md\">Deutsch\u003C\u002Fa> ·\n  \u003Ca href=\"README.fr.md\">Français\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Csub>\u003Cstrong>THE UNIVERSAL AGENT DEVELOPMENT ENVIRONMENT (ADE)\u003C\u002Fstrong>\u003C\u002Fsub>\u003Cbr\u002F>\n  \u003Cstrong>Every agent. Every platform. One workbench.\u003C\u002Fstrong>\u003Cbr\u002F>\n  Today: Claude Code, Codex, and OpenCode in parallel, each in its own Git worktree.\n  Mira, your cross-project assistant, watches every repository, tells you what\n  needs you, and can act across them. Review the diff, and keep the terminal\n  alive when the app restarts.\n\u003C\u002Fp>\n\n\u003Ch3 align=\"center\">\u003Ca href=\"#install\">\u003Cins>Get started\u003C\u002Fins>\u003C\u002Fa>\u003C\u002Fh3>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\".github\u002Fassets\u002Fworkbench-0916-shell.png\" alt=\"The iCode Workbench with a project and task sidebar, app and session tabs, a live terminal, and a Source Control diff in the inspector\" width=\"960\" \u002F>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Csub>Pre-1.0 · Linux (WSL2\u002FWSLg) · Windows x64 · macOS x64 \u002F arm64\u003C\u002Fsub>\n\u003C\u002Fp>\n\n## Why iCode Workbench?\n\niCode Workbench is the control room for a team of coding agents. It turns the\nterminal into a portfolio: each agent works in an isolated worktree, each task\nhas a durable record, and every change is reviewed in the checkout where it was\nmade.\n\n- **Every agent, one workbench.** Claude Code, Codex, and OpenCode today; the\n  adapter model is built to add more harnesses.\n- **Every platform.** Linux (WSL2\u002FWSLg), Windows x64, and macOS x64 \u002F arm64.\n- **One sidebar, two surfaces.** Projects, direct sessions, pinned items and the\n  cross-project task queue share one sidebar. Sessions and task workbenches are\n  the main surfaces; Mira, Settings and Schedules are temporary app tabs.\n- **Parallel by default.** Every session gets its own branch and Git worktree;\n  keep several in sight with session tabs and a resizable, nested split view.\n- **Review in place.** Files, Search, and Source Control live in a persistent,\n  resizable inspector beside the terminal; the task workbench gives Files and\n  Source Control their own full-width tabs. A file or diff takes the panel; the\n  list is one toggle away.\n- **Every session row is a control surface.** Right-click any session for\n  details, sleep or wake, restart, pin, and remove without opening it. Removal\n  never asks for the branch name, names the files or commits at risk, and keeps\n  the branch.\n- **Mira across projects.** One conversation for the real queue, blockers, and\n  cross-project actions.\n- **Terminals that outlive the app.** A detached host owns the PTYs, so closing\n  the window does not stop the agents.\n\n## Features\n\n### One sidebar, two surfaces\n\nThe sidebar is the only navigation and the portfolio view. It is drag-resizable\nbetween 240 and 400px and remembers its width; double-click the seam to reset it.\nIts top row holds search, new work, notifications and refresh (refresh moves to\nthe status bar at the narrowest widths). **Pinned** projects, sessions and tasks\nare shortcuts above the complete **Projects** tree, not replacements for it. A project row expands to its direct sessions, grouped by worktree branch,\nwith state and agent activity on each row. Task-owned sessions never appear\nthere.\n\nThe **Tasks** section at the bottom is the cross-project queue, grouped by\nproject and ordered by attention. It has separate **Needs** and **History**\nviews, and a task can be pinned without leaving the queue. The sidebar footer\nkeeps host status, task slots, live session count, harness count and app version\nin view; Mira and Settings sit below it.\n\nThe main column has two work surfaces:\n\n- **Sessions** — one tab per direct session, a resizable nested split view, and\n  a persistent Files\u002FSearch\u002FSource Control inspector on the right. A compact\n  strip under the terminal carries branch, ahead\u002Fbehind, conflicts and caret\n  blame.\n- **Task workbench** — Overview, Terminal, Source Control and Files for one task,\n  selected from the sidebar rather than opened as a tab.\n\nSessions is the base surface, pinned first whenever the app-tab strip is visible.\nOpening Mira, Settings or Schedules adds a temporary tab beside it; closing the\nlast auxiliary tab returns to Sessions. A task workbench is never an app tab. The\nproject menu holds new session, queue task, pin, copy path, repository settings,\n**Sessions & branches**, and remove. Before the first repository, the main column\nis just the welcome card and **Add project**.\n\nProject, session, and task rows each have their own right-click menu. A session\nrow carries its whole lifecycle — **Session details**, **Sleep** or **Wake**,\n**Restart**, **Pin**, and **Remove** — targeting that row's session without\nswitching to it first. Details opens the drawer, Sleep asks once, Restart and\nWake act immediately, Remove confirms and then names any work at risk, and an\nunavailable action explains why it is disabled.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".github\u002Fassets\u002Fworkbench-0916-session-menu.png\">\u003Cimg src=\".github\u002Fassets\u002Fworkbench-0916-session-menu.png\" alt=\"A session row context menu with Session details, Sleep session, Restart session, Pin to top, and Remove session\" width=\"100%\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n*Right-click any session row, including one you are not viewing, to reach its\nlifecycle actions. The menu stays out of the way until it is needed.*\n\nThe shell adapts rather than shrinking the terminal forever. Below 1280px the\ninspector collapses to a rail; below 900px the sidebar becomes a drawer and an\nexpanded inspector overlays the workspace instead of taking layout width. Focus\nmode (`F11`, or `Ctrl\u002FCmd+J` outside the terminal) drops the sidebar, app tabs,\nsession or task header, inspector and window chrome, leaving only the terminal.\n\n### Meet Mira, your cross-project assistant\n\nMira opens from the sidebar footer, or from **Talk to Mira** in the command\npalette, as an auxiliary tab. The Sessions tab stays pinned beside her, and the\nsidebar keeps the working set visible while she answers. She is not scoped to\none project, and she is not a terminal: one conversation spans every repository.\n\n- **She can see the work.** Projects, tasks, sessions, review state and diffs are\n  in her context, so “what needs me?” is answered from the real queue rather than\n  a summary you have to assemble.\n- **She can act across projects.** Through validated actions she creates,\n  cancels, retries, resumes and archives tasks, messages task sessions and\n  project supervisors, records non-binding review recommendations, and remembers\n  durable preferences. She has no shell, no project working directory, and cannot\n  approve a proposal, decide a review, merge or push.\n- **She streams.** With Claude Code, replies render as Markdown while they are\n  written; the run line shows the current stage, elapsed time and thinking-token\n  count, and Stop terminates the harness — on Windows, its whole shim process\n  tree.\n- **She keeps the harness’s conversation.** The installed harness owns the native\n  conversation and Mira resumes it by session id. The header lists the current\n  and earlier conversations, and each loads its part of the transcript. **New\n  conversation** starts a clean one; switching harness or target starts a bridged\n  conversation with a visible boundary, and a failed resume falls back to a\n  bridged conversation rather than losing the thread.\n- **She comes to you.** Approvals, failed or waiting tasks, review-ready work and\n  completed Mira\u002Fsupervisor tasks become proactive messages with a sidebar unread\n  badge, an app-tab badge when Mira is open, and an OS notification when no\n  window is focused. They stay in the notifications drawer rather than\n  cluttering the conversation. Deduplication, an hourly budget and quiet hours\n  keep it from becoming noise.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".github\u002Fassets\u002Fworkbench-0916-mira.png\">\u003Cimg src=\".github\u002Fassets\u002Fworkbench-0916-mira.png\" alt=\"Mira answering a cross-project question with a Needs a decision and In flight summary, beside the live project and task sidebar\" width=\"100%\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n*Mira reads the real queue: finished work waiting for review, a running task,\nand uncommitted session changes. The sidebar keeps every project and the task\nqueue visible while she answers.*\n\nMira is configured in **Settings → Mira**: persona name, run target (this machine,\na WSL distro, or auto), preferred harness, auto-dispatch policy, and notification\npolicy. Markdown is rendered as React nodes — headings, lists, tables, code,\nquotes and http(s) links — never as raw HTML. Low-risk tasks she creates may\nauto-dispatch under a daily cap and protected-path\u002Fkeyword policy; everything else\nwaits for a person.\n\n### Isolated sessions by default\n\nEvery direct session gets its own Git worktree and a new branch, starting from\nthe current branch or one you choose, so two agents in the same repository never\nedit the same checkout. Open sessions\nappear as tabs above the workspace; drag them to reorder, right-click for\n**Close**, **Close other tabs**, **Close tabs to the right**, **Split left**,\n**Split right**, **Split up**, **Split down**, **Swap panes** or **Close split\nview**. Splits nest, so panes can combine side-by-side and stacked layouts, and\nevery divider rebalances its own branch. Drag a pane's grip handle onto another\npane's edge to re-split there, or onto its centre to swap the two panes. On\nmacOS, `⌘D` and `⇧⌘D` split right and down, `⌥⌘` + arrows move focus, and\n`⇧⌘↩` zooms the focused pane; Windows and Linux use `Ctrl+Shift+D`,\n`Ctrl+Shift+Arrow`, `Ctrl+Alt+Arrow` and `Ctrl+Shift+Enter`. `⇧⌘W` (macOS) or\n`Ctrl+Shift+W` closes the focused tab and collapses its pane. A split shortcut\nstarts a sibling session with the focused harness in the same worktree. The\ncommand palette (`Ctrl\u002FCmd+K`) also lists Split left\u002Fright\u002Fup\u002Fdown, zoom and\nclose-split actions. Each\nproject can keep several split layouts; selecting a session reveals the layout\nit belongs to, and a session outside every layout opens full-width. Layouts and\ndivider ratios persist per project. Restart a session without\nmoving its worktree; sleep a direct session to stop the process while keeping the\ncheckout and resume token; wake it to continue the harness conversation where\nthe harness supports it. Every one of these actions is also on the session row's\nright-click menu, so a stuck or finished session does not need to be opened.\n\nSession removal is guarded by live PTYs, host reachability, uncommitted changes,\nunmerged commits, and missing worktrees. If work is at risk, the final\nconfirmation is a single consequence-specific warning: uncommitted changes list\nthe affected files, unmerged commits name the retained branch, and one click\ncompletes the removal. Nothing needs to be typed or copied, and the branch is\nkept even when the checkout is removed — an explicit **Accept & merge…** or\nbranch deletion stays a separate decision. The **Sessions & branches** dialog in\nthe project menu lists retained branches and any terminals the host still owns.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".github\u002Fassets\u002Fworkbench-0916-session-split.png\">\u003Cimg src=\".github\u002Fassets\u002Fworkbench-0916-session-split.png\" alt=\"Two direct sessions side by side in the iCode split view, each with its own terminal and branch\" width=\"100%\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n*Two direct sessions side by side. The divider is resizable and each pane keeps\nits own PTY; the inspector collapses to give the terminals more room.*\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".github\u002Fassets\u002Fworkbench-0916-session-removal.png\">\u003Cimg src=\".github\u002Fassets\u002Fworkbench-0916-session-removal.png\" alt=\"The session removal dialog naming an uncommitted file with a single Delete changes and remove button\" width=\"100%\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n*Work that would be lost is named once. The branch is retained, the modified\nfiles are listed, and there is no branch name to copy or type.*\n\n### Terminals that survive the app\n\nA detached host owns the PTYs, terminal emulation, and exit truth. Closing the\nwindow or quitting iCode does not stop a live session; reopening the app\nreattaches to the same PTY incarnation. A tab switch or split only changes what\nis visible; every pane stays attached to its own process. Attach returns a\nserialized snapshot with scrollback and alternate-screen state, and flow control\nkeeps a slow UI from blocking the agent's process.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".github\u002Fassets\u002Fworkbench-0916-session-terminal.png\">\u003Cimg src=\".github\u002Fassets\u002Fworkbench-0916-session-terminal.png\" alt=\"A direct session with its tab strip, branch header and a live shell showing recent commits\" width=\"100%\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n*A real PTY in the session worktree; the detached host keeps it alive. The tab\nstrip switches the visible session, while the collapsed inspector leaves room\nfor the terminal.*\n\n### Attention, not terminal scraping\n\nClaude Code hooks report session start, prompts, tool calls, permission requests,\nand turn endings. iCode turns those events into `Working · \u003Ctool>`, `Needs you`,\n`Done`, and `Done · failed`. The sidebar row carries the activity line and\nunread emphasis; OS notifications fire only when no window is focused. Activity\nis advisory: it never changes process state, and a relaunch resets it to\n`unknown` rather than showing stale work. Only Claude Code reports activity\ntoday; Codex, OpenCode, and shell sessions stay `unknown` by design. Task-linked\nsessions do not raise a second OS notification: Mira owns the blocker message,\nand the activity stream stays the raw evidence.\n\n### Tasks, approvals, schedules, and chains\n\nTasks are durable units of work, not terminal tabs. Selecting a task replaces the\nmain surface with its workbench; the workbench is never an app tab, and a\ntask-owned session never appears under a project or in the session tab strip.\n\nQueue work under two limits: how many tasks run at once globally (1–4) and how\nmany run at once per project (1–4). Statuses move through `queued`,\n`dispatching`, `running`, `waiting`, `completed`, `failed`, and `cancelled`. A\nretry is a new attempt; resume continues a failed or cancelled attempt in its\nexisting session and worktree; cancellation leaves the worktree for inspection.\nThe workbench shows the instruction, live session, changes against the task\nbaseline, and a review decision separate from process exit.\n\nApproval depends on who asked. Your own tasks are approved when queued and start\nwhen a slot is free. A project supervisor always proposes for a person, and a\nMira-created task waits unless the current auto-dispatch policy permits it. That\npolicy is deliberately conservative: daily caps (three per project and ten\nglobally by default), protected keywords and protected paths all keep the gate\nclosed.\n\nDependencies form chains. A dependent waits for its blockers to complete, and for\na blocker’s acceptance when **Wait for my acceptance before dependent tasks\nstart** is set. Chain tasks also share a chain branch: the dependent does not\ndispatch until the blocker’s work has been merged into that branch. This makes\nreview and merge ordering explicit instead of hoping two agents finish in the\nright order. A project supervisor is a control session bound to one repository;\nit proposes tasks from that project’s own context, always waits for a human\ndecision, and stays in the project’s Sessions. Mira can start or message one for\nyou.\n\nReview accept\u002Freject is a human decision. Accepting records the judgment; it does\nnot merge, push or delete anything. Merge remains in Source Control, where\n**Accept & merge…** is an explicit second step for a task result.\n\nSchedules create ordinary queued tasks on a cadence — once, daily, weekdays,\nweekly, or every few hours — with queue-or-skip overlap handling and run-now.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".github\u002Fassets\u002Fworkbench-0916-tasks.png\">\u003Cimg src=\".github\u002Fassets\u002Fworkbench-0916-tasks.png\" alt=\"The task workbench showing a finished task waiting for review, its changes against the baseline, and the review decision\" width=\"100%\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n*Task workbench: the instruction, the session, changes against the task\nbaseline, and a review decision. Execution and review are separate; the sidebar\nstays on the project and its queue.*\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".github\u002Fassets\u002Fworkbench-0916-schedules.png\">\u003Cimg src=\".github\u002Fassets\u002Fworkbench-0916-schedules.png\" alt=\"The Schedules tab with an enabled nightly dependency audit and a paused six-hour provider refresh\" width=\"100%\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n*Recurring tasks with queue-or-skip overlap handling. Schedules open as an\nauxiliary tab and create ordinary queued tasks.*\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".github\u002Fassets\u002Fworkbench-0916-task-composer.png\">\u003Cimg src=\".github\u002Fassets\u002Fworkbench-0916-task-composer.png\" alt=\"The task composer with a harness picker, prompt, blocker, start-from branch and chain branch\" width=\"100%\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n*Queue unattended work with a harness, optional blockers, a start point and a\nchain branch. The new task joins the same sidebar queue.*\n\n### Task history, without the clutter\n\nThe Tasks section defaults to the working list. **Needs** narrows it to work\nwaiting on a person: proposals to approve, sessions waiting for an answer,\nfailed tasks to retry, completions pending review, and chains blocked by a\ndead-end blocker. **History** switches the same section to archived tasks.\n\nArchive or restore a task from its Overview or the task actions menu. Archiving\nis reversible and does not delete the review, session, worktree or retry chain.\nReviewed completions and cancellations are archived automatically after seven\ndays; review-pending completions and failures stay in the working list. Retry\nchains collapse to the latest attempt, and earlier attempts remain\nunder **Previous attempts**. Archived tasks are excluded from attention counts,\nMira’s context and notifications, but remain queryable as history. There is\ndeliberately no hard-delete action.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".github\u002Fassets\u002Fworkbench-0916-task-history.png\">\u003Cimg src=\".github\u002Fassets\u002Fworkbench-0916-task-history.png\" alt=\"The sidebar Tasks history with an archived task open in the workbench and a Restore action\" width=\"100%\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n*History keeps finished work out of the working list while preserving the task,\nits attempts and its review record.*\n\n### Review where the agent worked\n\nSource Control is scoped to the session's checkout and lives in the persistent\ninspector, or in a task's full-width Source Control tab. The inspector switches\nbetween Files, Search, and Source Control; Source Control opens on the\nchanged-file list, clicking a file gives its diff the whole panel, and the list\nreturns with one toggle (or by drag the inspector wider for both columns).\nA one-line dock keeps the staged\u002Funcommitted counts and the primary action in\nsight while a diff is open; the commit composer expands above it on demand.\nThe task Overview also\nsummarizes changes against the baseline and opens the full diff. Diffs are\narea-scoped; stage or unstage by file, folder, hunk, or line; discard by file,\nfolder, or hunk; and a three-way merge editor handles conflicts. Add notes to\nexact changed lines and send them back to the agent's terminal. Commit, commit\nall tracked changes, amend, commit & push, pull, push, sync, or publish the\ncurrent branch, with paginated history and cherry-pick, revert, and reset\nactions. Draft a commit message with the installed harness in one-shot mode; the\nresult only fills the draft.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".github\u002Fassets\u002Fworkbench-0916-task-review.png\">\u003Cimg src=\".github\u002Fassets\u002Fworkbench-0916-task-review.png\" alt=\"Source Control in the task workbench showing a committed rate-limit source file as a side-by-side diff\" width=\"100%\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n*Review and stage in the task's worktree. The full-width Source Control tab\ngives the diff both columns; the file list stays one toggle away.*\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".github\u002Fassets\u002Fworkbench-0916-history.png\">\u003Cimg src=\".github\u002Fassets\u002Fworkbench-0916-history.png\" alt=\"Source Control history in the task workbench with the task commit selected and its changed files listed\" width=\"100%\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n*Commit history, scoped to the task's branch, with branch labels and the files\nbehind each commit.*\n\n### Edit in the same checkout\n\nOpen Files beside the terminal (or in a task's Files tab) and work in the same\nworktree the agent is editing. The explorer supports create, rename, delete,\nduplicate, and move, with app-managed trash and undo; Monaco provides editing,\nquick diffs against HEAD, inline blame, and file history. The inspector's\nSearch pane keeps the tree uncluttered and opens results in Files; the tree\ncolumn is drag-resizable. Quick-open files,\nhandle external changes with reload\u002Fkeep, and keep unsaved buffers across an\nordinary restart through hot exit.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".github\u002Fassets\u002Fworkbench-0916-files-editor.png\">\u003Cimg src=\".github\u002Fassets\u002Fworkbench-0916-files-editor.png\" alt=\"The task Files tab with a worktree explorer and Monaco editor open on the new rate-limit source file\" width=\"100%\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n*Files and Monaco in the task's worktree. The explorer and editor keep their\nfull width in the task surface. In the session inspector the tree is the list:\nan open file takes the panel, and widening the inspector brings the tree back\nbeside it.*\n\n### Run where your code lives\n\nRepositories can target this machine or a WSL distro. Local sessions run on\nLinux, macOS, or native Windows over ConPTY; WSL agent sessions run on a managed\nguest host reached through a relay, and shell sessions open through `wsl.exe`.\nHarness detection is tri-state and target-aware, so a CLI installed on Windows\nbut missing inside the distro is reported correctly.\n\n### Local-first, no cloud dependency\n\nState is local: SQLite holds projects, sessions, worktrees, tasks, and schedules;\na detached host owns terminal truth; there is no telemetry and no hosted service.\niCode does not call model APIs — your harness does — and the renderer is\nsandboxed behind a typed preload and validated IPC.\n\n**Also in the box:**\n\n- **Session tabs and split view**: browser-style tab menus, drag reordering,\n  and a resizable split tree that nests both axes.\n- **Focus mode**: `F11` or `Ctrl\u002FCmd+J` leaves only the terminal.\n- **Pinned working set**: pin projects, sessions and tasks as sidebar\n  shortcuts; the project tree stays complete.\n- **Project onboarding**: open an existing checkout, clone from a URL with live\n  progress, or initialize a folder’s first commit; repositories can live locally\n  or inside a WSL distro.\n- **Repository settings**: add, edit, fetch and remove Git remotes from the\n  project menu.\n- **Sessions & branches**: retained branches and orphan terminal reporting from\n  the project menu.\n- **Instant project removal**: the row disappears immediately while cleanup\n  stops sessions, snapshots dirty worktrees and reports retry\u002Fdiscard in the\n  sidebar footer.\n- **Command palette**: `Ctrl\u002FCmd+K` for projects, sessions, tasks, Source\n  Control actions, and “Talk to Mira”; `Ctrl\u002FCmd+P` for quick open.\n- **Mira settings**: persona, local\u002FWSL\u002Fauto target, preferred harness,\n  auto-dispatch policy, notifications and quiet hours.\n- **Task history**: archive\u002Frestore, collapsed retry attempts, and seven-day\n  retention for reviewed completions and cancellations.\n- **Themes**: light by default, with System and Dark available, applied before\n  first paint; terminals follow the same appearance, with a light ANSI palette\n  on the light canvas and the afterglow palette in dark mode.\n- **Configurable workflow**: global and per-project task concurrency, Source\n  Control, and Files preferences.\n- **Session diagnostics**: host authority, PTY incarnation, worktree state, and\n  exit codes in Session details.\n- **Session row actions**: details, sleep or wake, restart, pin and remove from\n  any session row without switching to it.\n- **Warning-only removal**: dirty or unmerged work is named before anything is\n  deleted, no branch name is typed, and iCode-owned branches survive session\n  removal; deletion is separate and requires the exact name when unmerged.\n- **Native window chrome**: native traffic lights on macOS; custom controls on\n  Windows and Linux.\n\n\u003Cp align=\"center\">\n  \u003Ca href=\".github\u002Fassets\u002Fworkbench-0916-settings.png\">\u003Cimg src=\".github\u002Fassets\u002Fworkbench-0916-settings.png\" alt=\"The Settings tab with appearance, language, Mira, host and runtime, and Source Control sections\" width=\"100%\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n*Settings open as an auxiliary tab. Appearance, language, Mira, task execution,\nSource Control, Files, agent providers, harnesses, host\u002Fruntime and About share\none page.*\n\n## How it works\n\n1. **Add a project.** Register an existing Git checkout, clone from a URL, or\n   initialize a folder on its first commit. Repositories can live on this\n   machine or inside a WSL distro.\n2. **Start work.** From the sidebar, open a project and start a direct session,\n   queue a task, or open Mira. A direct session launches immediately; a queued\n   task waits for a global and per-project slot. Either way, iCode creates a\n   worktree and branch at the chosen start point and launches the harness in a\n   real PTY.\n3. **Approve or adjust the plan.** Your own tasks are approved on creation.\n   Supervisor proposals wait for a person, and Mira tasks wait unless the\n   auto-dispatch policy allows them to start. Blockers and chain branches decide\n   when dependents may start.\n4. **Work in the terminal.** Switch sessions with the tab strip, split when two\n   need to be visible, and open Source Control or Files in the inspector. Every\n   pane is tied to the same worktree the agent is editing.\n5. **Review.** Stage by file, folder, hunk, or line; send line notes to the\n   agent; accept a task review when the result is right. Accept does not merge.\n   When the result should land, merge from Source Control; for a chain, merge\n   each blocker into the shared chain branch so its dependents can dispatch.\n6. **Archive the finished work.** Archive reviewed completions and cancellations\n   as you go; those older than seven days are archived automatically. A retry\n   chain stays one row with its attempts preserved.\n7. **Finish safely.** Removing a project is instant: the row disappears and a\n   background cleanup job stops its sessions, snapshots dirty worktrees to\n   recovery refs, and reports progress with Retry\u002FDiscard in the sidebar footer.\n   Removing an individual session stops the PTY and asks for confirmation; if\n   work is at risk, the files or commits are named before anything is deleted,\n   and the checkout is removed while the branch is kept.\n\n> **iCode is the environment, not the agent.** It does not call model APIs or\n> answer permission prompts. Your harness keeps its TUI, credentials, and\n> permissions; you keep the decisions.\n\n## Supported harnesses\n\nWorks with the coding-agent CLIs you already use. iCode runs the harness itself,\nnot a chat reimplementation, so its TUI, permissions, and hooks keep working.\n\n\u003Cp>\n  \u003Ckbd>Claude Code\u003C\u002Fkbd> &nbsp;\n  \u003Ckbd>Codex\u003C\u002Fkbd> &nbsp;\n  \u003Ckbd>OpenCode\u003C\u002Fkbd> &nbsp;\n  \u003Ckbd>Shell\u003C\u002Fkbd>\n\u003C\u002Fp>\n\nDetection is tri-state and target-aware: available, unavailable after a real\nprobe, or a retryable detection failure. A tool installed on Windows but missing\ninside a WSL distro is reported correctly.\n\nMira uses the same installed CLI in a one-shot mode in a scratch directory on\nthis machine or inside a WSL distro. All three agent harnesses can resume their\nown native conversation by session id; a harness or target switch starts a\nbridged conversation with a visible boundary. Claude Code supplies\ntoken-by-token streaming; Codex and OpenCode currently report run stages and the\nfinal reply rather than a live text draft.\n\n## Install\n\nDownload the latest installer from the\n[Releases page](https:\u002F\u002Fgithub.com\u002Ficodehq\u002Ficode-workbench\u002Freleases\u002Flatest).\nCI builds each release from its tagged commit:\n\n| Platform | Download |\n|---|---|\n| **Linux x64** | AppImage, deb, or rpm |\n| **Windows x64** | NSIS installer (`.exe`) |\n| **macOS x64 \u002F arm64** | dmg or zip |\n\nThe installers are unsigned, so Windows SmartScreen and macOS Gatekeeper warn on\nfirst launch. On macOS, right-click the app and choose **Open** to allow it.\niCode is pre-1.0; features and storage schemas may still change between releases.\n\n### From source\n\n**Requirements:** Node 24.x (`.nvmrc` pins 24.15.0), Corepack with pnpm 11.16.0,\nGit, and at least one harness on `PATH`. Linux also needs `build-essential` and\n`python3`; macOS needs Xcode Command Line Tools.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Ficodehq\u002Ficode-workbench.git\ncd icode-workbench\ncorepack enable\npnpm install\npnpm dev\n```\n\nThen choose **Add project**, start a session, queue a task, or open **Mira** and\nask what needs you.\n`pnpm install` rebuilds `node-pty` against Electron's ABI on Linux; Windows and\nmacOS use Node-API prebuilds.\n\n### Packages\n\n| Platform | Artifacts |\n|---|---|\n| **Linux x64** | AppImage, deb, rpm |\n| **Windows x64** | NSIS installer |\n| **macOS x64 \u002F arm64** | dmg, zip |\n\n```bash\npnpm package:linux         # AppImage, deb, rpm\npnpm package:win           # NSIS; run on Windows\npnpm package:mac -- --x64\npnpm package:mac -- --arm64\n```\n\nWindows packaging requires the verified WSL host artifact tree at\n`artifacts\u002Fwsl-host\u002Flinux-x64`. CI builds it once on Linux and passes it to the\nWindows job; locally, `pnpm build:wsl-host` requires Docker. Linux and macOS\npackages never ship that tree.\n\nArtifacts are unsigned unless signing credentials are configured, so Windows\nSmartScreen and macOS Gatekeeper warnings are expected.\n\nOn Linux, the unpacked build runs with `.\u002Fdist\u002Flinux-unpacked\u002Ficode`. Its profile\nis `$XDG_CONFIG_HOME\u002FiCode` (default `~\u002F.config\u002FiCode`), with the database at\n`icode.sqlite` and host runtime files under `run\u002F`. Quitting the window leaves\nthe host and its PTYs alive.\n\n### Troubleshooting\n\n- **Windows: iCode exits immediately and `--version` prints a Node version.**\n  If iCode is started from an AI terminal or automation tool that exports\n  `ELECTRON_RUN_AS_NODE=1`, Electron runs the executable as plain Node instead\n  of the app: no window appears, the exit code is 0, and there is no iCode log.\n  Clear the variable before launching (`Remove-Item Env:ELECTRON_RUN_AS_NODE`\n  in PowerShell, `set ELECTRON_RUN_AS_NODE=` in cmd), or start iCode from the\n  Start menu. The app cannot log this itself, because Electron never reaches\n  application code in that mode.\n- **Checking the database schema version.** `icode.sqlite` runs in WAL mode; a\n  migration committed by a running app lives in `icode.sqlite-wal` until a clean\n  quit checkpoints it. A tool that reads only the main file, or a copy without\n  its `-wal` and `-shm` companions, can report the previous `user_version` and\n  miss recently added tables. Quit iCode normally before inspecting the profile,\n  or inspect the whole directory.\n\n## Community & support\n\n- **Issues:** [github.com\u002Ficodehq\u002Ficode-workbench\u002Fissues](https:\u002F\u002Fgithub.com\u002Ficodehq\u002Ficode-workbench\u002Fissues)\n- **Contributing:** [.github\u002FCONTRIBUTING.md](.github\u002FCONTRIBUTING.md)\n- **Code of Conduct:** [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)\n- **Security:** [SECURITY.md](SECURITY.md)\n- **Translations:** [TRANSLATIONS.md](TRANSLATIONS.md)\n- **Changelog:** [CHANGELOG.md](CHANGELOG.md)\n- **Privacy:** iCode has no telemetry, no hosted service, and makes no model API\n  calls. Model traffic belongs to your harness.\n\n## Developing\n\nSee [.github\u002FCONTRIBUTING.md](.github\u002FCONTRIBUTING.md) for prerequisites,\nrepository layout, compatibility gates, packaging, and the versioning convention.\n\nBefore sending a change:\n\n```bash\npnpm typecheck\npnpm test\npnpm check:brand\npnpm build\n```\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>Engineering deep dive\u003C\u002Fstrong>\u003C\u002Fsummary>\n\n### Repository layout\n\n| Path | Responsibility |\n|---|---|\n| `src\u002Fmain` | Electron main: windows, gates, persistence, host supervisor\u002Fclient |\n| `src\u002Fhost` | Detached terminal host: PTYs, NDJSON protocol, token auth |\n| `src\u002Fpreload` | Frozen typed bridge; context isolation on, Node off, sandbox on |\n| `src\u002Frenderer` | Terminal workspace and product UI |\n| `src\u002Fshared` | Domain model, Zod boundary contracts, host protocol |\n| `config` | TypeScript, Vitest, electron-builder, build scripts |\n| `tests\u002Fcompat` | Compatibility gates and packaged smokes |\n| `tests\u002Fwsl` | WSL host artifact selftests and smokes |\n\n### Mira: native conversation, typed control plane\n\nMira is not a repo-less PTY. Each turn is a one-shot run of the same installed\nharness in a scratch directory on this machine or inside a WSL distro. The\nharness owns the native conversation: iCode stores the opaque session id, while\nthe harness keeps the prior context. A manual **New conversation** retires the\nhandle and starts clean. A harness or target switch, or a failed resume, retires\nit and starts a bridged conversation: the next turn replays a compact recent\nhistory and appends a visible boundary to the thread, so the switch is not\namnesia.\n\nEvery turn rebuilds the persona and cross-project snapshot; a per-turn digest\ncarries action results, failures and notifications from turns the harness did\nnot see. The model answers with one JSON envelope. Main validates it with Zod\nand executes reads before writes; up to three harness calls are allowed per\nturn. Writes are authorized and audited in `assistant_actions`; the model never\ngets a project working directory, a shell, or a control socket. Approvals,\nreview decisions, merges and deletes are absent from its action vocabulary.\n\nClaude runs with `--output-format stream-json`: text deltas feed a Markdown\ndraft, thinking-token events feed the run line, and the final `result` event is\ncaptured as it arrives. Codex and OpenCode are resumed through their own\nsession ids but report run stages and the final reply rather than a live draft.\nLow-risk auto-dispatch is a conservative policy over daily caps, protected\nkeywords and protected paths; the default is three per project and ten globally.\nNotifications use a per-thread sequence watermark and a partial unique dedupe\nkey, so restarts and repeated task events do not replay the same message.\n\n### Terminal host and continuity\n\n`createOrAttach` is idempotent by durable session ID. A live session attaches; an\nexited session restarts with a **new PTY incarnation**; attach-only never spawns.\nEvery write, resize, data event, and exit event carries both the durable session\nID and the incarnation, so a stale handle cannot touch a restarted PTY.\n\nEach session runs a headless xterm fed by PTY output. Attaching waits for the\nemulator to drain, then returns a serialized snapshot with dimensions, cursor,\nsequence, alternate-screen state, up to 5,000 lines of scrollback, and a\n`truncated` flag when history was lost. Snapshots are capped at 3 MiB. Alternate\nscreen content round-trips through the serialize addon.\n\nOutput feeds the emulator before clients, so a slow UI never blocks the process.\nIf the parse backlog exceeds 1 MiB, the PTY is paused and resumed below 256 KiB.\nPer-client queues are capped at 1 MiB; excess data events become one `lagged`\nnotice with a sequence range. Responses are never dropped.\n\nThe socket prefers `$XDG_RUNTIME_DIR\u002Ficode\u002F\u003Cprofile-scope>\u002Fterminal-host.sock`,\nwith `ICODE_HOST_SOCKET` and `ICODE_HOST_DIR` as overrides. Authentication uses a\n32-byte token in a `0600` file, a versioned hello, and constant-time comparison.\nThe host verifies effective `0700\u002F0600` permissions and refuses filesystems that\ncannot enforce them. A non-socket at the socket path is never deleted.\n\n### Persistence and recovery\n\n`app.getPath('userData')\u002Ficode.sqlite` is opened by the main process with\n`node:sqlite`: WAL, foreign keys, `busy_timeout=5000`, and `synchronous=NORMAL`,\nall verified on open. Migrations are append-only and each runs in its own\ntransaction.\n\nThe database refuses a zero-byte file, checks the SQLite header before opening,\nand runs `PRAGMA integrity_check` read-only and again on the writable handle. On\nfailure it reports `DB_CORRUPT` with recovery guidance and never deletes,\nrenames, or recreates the file.\n\nStartup reconciles stored sessions against the host. A persisted `live` is never\ntreated as proof; host query failure yields `unavailable`, not `exited`. A live\nhost PTY with no durable row is reported as an orphan rather than silently\nadopted. Repository removal is optimistic and durable: the project row\ndisappears first while a background job stops live PTYs, snapshots dirty\nworktrees to `refs\u002Ficode\u002Fremoved\u002F*`, and removes the checkout. An unreachable\nhost moves the job to `waiting_host` instead of blocking the action, and the\nsidebar cleanup indicator exposes Retry and Discard snapshots.\n\n### Session removal rules\n\nThe following rules apply when removing a single session; they are re-checked at\nthe moment of the action:\n\n| Situation | Result |\n|---|---|\n| Live or starting PTY | Blocked |\n| Host unreachable | Blocked; everything preserved |\n| Uncommitted changes | One warning lists the files; confirming deletes them |\n| Unmerged commits | One warning shows the commit count; the branch is retained |\n| Missing or unregistered worktree | Blocked; explicit recovery only |\n| Clean and merged | Checkout removed, **branch retained** |\n\nThe confirmation is a warning, not a typed guard: the branch is always kept, and\nthe exact branch name is still sent to the backend so removal can never delete a\nbranch. Branch deletion stays a separate action that still requires the exact\nname when the branch is unmerged.\n\nSession creation is refused for an unborn repository or while a merge, rebase,\ncherry-pick, revert, or bisect is in progress, because no trustworthy baseline\nexists. iCode never falls back to the primary checkout for a session whose\nworktree is missing.\n\n### Activity hooks\n\n| Hook | Activity |\n|---|---|\n| `SessionStart` | `idle` |\n| `UserPromptSubmit`, `PreToolUse`, `PostToolUse*` | `working` (tool name shown) |\n| `PermissionRequest` | `waiting`, unread |\n| `PreToolUse` of `AskUserQuestion` \u002F `ExitPlanMode` | `waiting`, unread |\n| `Stop` \u002F `StopFailure` | `idle` with `completed` \u002F `failed` |\n\nEvents from a previous incarnation are rejected. Events older than the newest\naccepted event by more than 250 ms are rejected, and a `Stop` whose prompt ID is\nnot the current turn is rejected. Duplicate deliveries are idempotent.\n`Notification` is intentionally not used because its interactive behavior was\nnot verified.\n\nThe hook script drains Claude's payload from stdin, forwards one bounded JSON\nobject over a Unix socket, writes nothing to stdout, and exits `0` within 100 ms\neven when iCode is down. A broken iCode must never block the agent.\n\n### Security model\n\n- The renderer is sandboxed with context isolation and Node disabled. The preload\n  exposes named operations only; subscriptions are reference-counted and dispose\n  individually.\n- Main registers a fixed IPC channel table, validates each payload with Zod,\n  checks the calling frame, and maps failures to stable `AppError` codes.\n- Mira’s Markdown renderer produces React elements, never HTML. Only http(s)\n  links can reach `shell.openExternal`; `file:`, `javascript:` and custom schemes\n  are rejected in both the parser and the IPC handler.\n- The host protocol is NDJSON with a 4 MiB frame limit; malformed, oversized,\n  unknown, and identity-colliding frames are rejected.\n- Agent workspace trust for new worktrees is pre-seeded for Claude and Codex.\n  iCode never answers a harness permission prompt on your behalf.\n\n\u003C\u002Fdetails>\n\n## Status\n\niCode Workbench is in early experimental development and iterating quickly.\nFeatures, storage schemas, and packaging may change between releases. Use normal\nGit hygiene on real work, and check the [changelog](CHANGELOG.md) before\nupgrading; every user-visible change is recorded there.\n\n## Star History\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fwww.star-history.com\u002F?repos=icodehq%2Ficode-workbench&type=date&legend=top-left\">\n    \u003Cpicture>\n      \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=icodehq\u002Ficode-workbench&type=date&theme=dark&legend=top-left\" \u002F>\n      \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=icodehq\u002Ficode-workbench&type=date&legend=top-left\" \u002F>\n      \u003Cimg alt=\"Star History Chart\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fchart?repos=icodehq\u002Ficode-workbench&type=date&legend=top-left\" \u002F>\n    \u003C\u002Fpicture>\n  \u003C\u002Fa>\n\u003C\u002Fp>\n","iCode Workbench 是一个面向 AI 编程代理的本地化开发环境（ADE），专为并行、隔离地运行多代理编码任务而设计。它基于 Git worktree 实现每个代理会话的沙箱化工作区，支持 Claude Code、Codex、OpenCode 等多种代理后端，并通过跨项目智能助手 Mira 统一调度任务与状态。核心特性包括会话级终端持久化（进程不随 UI 关闭中断）、原位代码审查（Source Control 与文件视图紧邻终端）、可嵌套分屏与会话快速管控。适用于需要同时管理多个代码生成\u002F评审任务、强调本地数据主权、Git 工作流集成及跨仓库协同的开发者与小团队。","2026-11-24 04:50:02","CREATED_QUERY"]