Repository navigation
m4code 0.10.0: native GPUI app with ACP sessions across harnesses - #145
Merged
Merged
Conversation
The window goes back to GPUI with gpui-kit (gpui-component), from the last GPUI release, v0.8.5. Rune's own editor and its parity ports go, since gpui-kit's editor is what they copied. Everything the Rune builds added since is carried over: - Settings: a Projects page (rename, reorder, remove with undo), a Custom subagents page with one dialog per provider, and Check now for updates - Codex, OpenCode and Antigravity subagents, with their limits in the sidebar under Claude's, with each provider's logo - RECENT at the bottom of the sidebar, closed until opened, and folded when a session opens from it - Issues and pull requests attached from any repository, shown in their own GitHub pane - A system notification when a background session finishes or asks - Hand-off to another account without compacting first - A shell on the welcome screen, and Ctrl+Z (Cmd+Z) to reopen the last closed session - One app per data folder, with an "already running" window - Tools found on the login shell's PATH, and nested repositories listed with their own ignore rules in editor mode Rune-only rendering fixes (bullet glyph, scroll springs, idle redraws) are not carried over; GPUI never had those problems.
Claude Code, Codex, OpenCode and Antigravity each get an adapter in src/harness/ that says how to start their ACP server and how a stored session reopens. The thread view in src/thread/ shows the conversation, tool calls, diffs, plans and permission questions, and takes Claude Code's keyboard shortcuts. Settings -> Sessions picks the agent for new sessions, and "Continue in a terminal" ends a session here and copies the agent's own resume command. The shell panel stays a PTY. The Claude-only parts of the terminal view (the start-up skeleton, inline cards, typing references into the input box) are gone, along with the Claude CLI launch specs and the per-session MCP config file.
…other agent Before each message in a git repository, the working tree is saved as a commit under refs/claudiu/<session>/ through a throwaway index, so the user's index, HEAD and stash are untouched; a session keeps its 20 newest. Review changes shows what changed since the last message hunk by hunk: keep a hunk, revert it (git apply -R, which refuses when the file moved on), or comment on a line. The comments go back to the agent as one message of @path#L12 lines. Pick up a session here, in a project's menu, asks the default agent for its sessions in that folder (ACP session/list) and opens the chosen one. Hand to another agent starts a session of another agent in the same folder with the conversation so far as its first message.
bridge/claude.mjs drives Anthropic's SDK and answers ACP for Claudiu, so the thread view and the other agents stay as they are. It runs the user's own claude through CLAUDE_CODE_EXECUTABLE. The script is embedded like the mod and written to a hashed folder in the data dir. The first session runs npm ci there from the pinned lockfile, without the SDK's bundled copies of claude. The bridge ends a turn without waiting for the context size, which is only shown. The README now says Claude Code sessions need Node and npm, and that Anthropic's terms restrict subscription sign-ins in Agent SDK apps.
…d compact chat pickers - Settings -> Skills: browse and search skills.sh, install individual SKILL.md packages or whole GitHub repositories, toggle skills globally or per project, and symlink enabled skills into active harnesses without touching user-owned folders. - Settings -> Harnesses: replace Custom subagents and Claude Code tools with per-harness configuration popups (Claude Code holds its CLI path, accounts, and tool trims; Codex, OpenCode, and Antigravity hold enable and subagent switches, keeping Antigravity's terms warning under the switch). Enlarge Settings and harness dialogs. - Sidebar & Welcome screen: remove the account picker from the sidebar footer so only connected harnesses' usage limits show; rebuild the Welcome page with provider-agnostic harness, project, worktree, branch, and draggable effort controls. - Chat composer & handoff: replace the model list with a compact provider/model/draggable-effort dialog, add a permission mode selector dialog (both closeable with Escape), remove handoff from the right sidebar, and hand off conversations dynamically in place when sending a message after switching harness.
The Welcome screen and the chat draw the same message box (panels/composer.rs). The branch chip moves from the title bar into it, and a waiting question sits at its top, so the conversation above stays scrollable. Consecutive tool calls fold into one dimmed line that opens on click. The branch dropdown starts a new worktree in one click, from main or from the current checkout, and offers Create branch for a typed name that isn't one. The sidebar's running header is gone; its first row is a neutral New session item. Each harness popup in Settings lists its models. The ticked ones are what the model picker shows (all of them when none are ticked) and, with subagents on, the subagents. The Claude in Chrome switch moves to Claude Code's popup. The inspector loses its Chrome, advisor and continue-in-terminal rows, with their actions. Settings calls workspaces projects. Claudiu's MCP server answers list_models and set_model for every harness, with models named harness:id. A switch to another harness asks first and hands the conversation over when the turn ends; the mod no longer switches models itself. The bridge lists Auto mode when Claude Code offers it. The model pickers scroll to follow the arrow keys.
Opening the model picker moves the keyboard into its search box, and only Enter, Esc and Alt+P moved it back. Clicking a model or a permission mode, or closing the dropdown with the mouse, left it in the hidden search box. Every close in the chat now goes through close_picker, which focuses the message box. On the Welcome screen, focus_active focused the window instead of the message box when the shell is closed, and a pick from a workspace dropdown, such as the branch picker, gave the keyboard to nothing. A pick now hands it back to the message box under the dropdown unless a dialog opens. A headless check clicks a model in the chat's picker and expects the message box to have the keyboard.
A hand-off sends the new agent the conversation so far with the user's message at the end, and the chat showed all of it as the user's message. The chat now keeps only what the user typed, both when the message is sent and when the agent replays it after a restart, so a later hand-off no longer copies the earlier conversation in twice. The hand-off wording moves into harness/thread.rs, next to the code that strips it, so the two can't drift apart.
A resumed session came back on the harness's default model and effort, whatever was picked in it before. Each session's record now keeps the model and effort option values last picked in it, reported by the chat whenever the harness confirms a change, and a resumed session asks for them again once it loads. The permission mode stays as the harness restores it.
Review changes opened whenever a snapshot existed, so after a turn that changed nothing it showed an empty page. After each turn, and after the review closes, the chat now reads in the background whether the working tree differs from the last snapshot. Until it does, the chip is dimmed and doesn't respond to the pointer. Outside a git repository it stays hidden, as before.
The Skills page groups installed skills by the repository they came from and lists the selected project's own skills from its .claude/skills folder. Update on a skill, Update repo on a group and Update all download the latest version through the install path, keeping each skill's global and project toggles and its links.
Agents were told to ask which model and effort before set_model, so they kept asking about effort. They now ask only which model. A set_model call that names a model and no effort runs at medium. The instructions also let an agent call start_code_session unasked when the user gives it a big task separate from the work in progress. The user still approves the new session in Claudiu's dialog.
When Claude Code compacts a conversation, its summary comes back as a user message on replay. The bridge now skips it by its fixed opening, since the SDK marks it no other way. A hand-off an agent asks for with set_model sent its "carry on" message as the user's message, so the chat showed a message the user never typed. That message now goes into the carried conversation as the agent's last words, and the chat adds no message when the user's part is empty, both live and on replay.
Consecutive thoughts and tool calls now share one dimmed line, such as "Thought, 3 tool calls" with the latest step's title. A click opens the run and shows each step on its own, thoughts in full. A run is now named by its first entry's place, since a thought has no id.
The message box, open chips, the chosen answer of a question, the model picker's selection, the permission picker, slash commands and the staged hand-off line now use a neutral outline (theme::FOCUS_BORDER) or plain text instead of the accent. The user's messages lose their accent bar. The effort slider and the plan's current step keep it.
panels/picker.rs gains Nav and Choices. A dropdown registers each choosable row with what choosing it does. A click and Enter on the highlighted row then run the same action, and Up and Down move the highlight, wrapping at the ends and scrolling it into view. The keys work while typing in the dropdown's search box, and new search text starts the highlight over at the first row. The branch & worktree, project, editor, default model, effort, permission and skill scope dropdowns use it. The branch & worktree dropdown now scrolls its worktrees and branches as one list, so the keys move through both. The Welcome model picker and the chat's own pickers keep their existing key handling.
The menu over the message box listed at most eight commands and took only Tab and clicks. It now lists every matching command in a list that scrolls. Up and Down move a highlight, kept in view, instead of walking the message history. Enter runs the highlighted command, and Tab fills it in to add arguments. Typing starts the highlight over.
A harness's model list started with nothing ticked, which the picker read as "show all" and subagents read as "none". Every model now starts ticked. The first untick saves the full list without that model, and the last ticked model can't be unticked, so the picker always has one. Saving with subagents on and the list untouched gives that agent its whole catalog as subagents.
After a model change handed a conversation to another harness, the chat showed the old conversation with no sign that anything was happening until the new agent answered. While a chat starts, the message box now shows a spinner with "Handing over to Codex…" after a hand-off, or "Starting Codex…" otherwise.
The tool trims were switches in Claude Code's popup that Claudiu wrote into Claude Code's own settings.json, so they also changed Claude Code run in a terminal. Now every Claude Code session Claudiu starts goes without a fixed set of extras (trim::FLUFF): bundled skills, workflows, Remote Control, the claude.ai connectors, artifacts, scheduled tasks, ScheduleWakeup, RemoteTrigger, SendMessage, PushNotification, design sync, report findings, the Claude API skill and the Advisor tool. The bridge passes them as the session's own settings layer. Plan mode, AskUserQuestion, notebooks, background tasks, the Explore and Plan agents and the git instructions stay. At startup Claudiu takes back out of settings.json the trims an earlier version wrote there. The trim switches and the setup window's "recommended trims" switch are gone. The skill limits still go into settings.json as before. The slash command menu leaves out commands Claudiu's own controls cover: /autocompact and /model for Claude Code, and /model, /approvals, /permissions, /new, /status, /logout, /quit and /exit for Codex.
The branch chip names the new worktree with a spinner straight away. Pressing Start before git finishes starts the session in the worktree once it exists; if git fails, the toast says why and the typed message stays.
A button in the gutter, beside the selection or the line under the mouse, opens a comment box. Enter adds @path#L..: comment to the message box on a line of its own, and Cmd/Ctrl+Enter sends it. Review changes uses the same box, where Cmd/Ctrl+Enter now sends all comments. Moving the keyboard to the chat no longer puts the selection into the message box, and the editor's menu items drop "Ask Claude to".
Claude Code reads AGENTS.md when a project has no CLAUDE.md. The new Tokens section comes from one session's transcript: 472 calls on a context that averaged 208k tokens, most of them back-to-back reads.
The Welcome screen moves to home.rs, the menu, modal and toast to overlays.rs, the workspace's dropdowns to workspace_pickers.rs and the Settings modal to settings_view.rs. The code is unchanged apart from pub(super) on the moved entry points.
app/mod.rs keeps the state types, Workspace and new. The code is unchanged.
- Rename app, crate, bundle IDs, env vars, MCP server, assets, web, and CI from Claudiu to m4code with first-run data directory migration - Replace icon with monochrome <m4/> mark and switch to minimal #121212 / #ffffff theme - Show new session prompt immediately, top-align conversations, keep composer focused, indent expanded tool/thought steps, remove tool status dots, fix picker border shift and permission mode arrow navigation - Auto-save Settings on close and apply changes immediately to open sessions - Remove Claude-only transcript scanning/stale status, make setup and defaults harness-agnostic across Claude Code, Antigravity, Codex, and OpenCode, and persist thread entries across restarts
A child's report used to reach its parent only through wait_subagent, so a parent that ended its turn never got it. m4code now sends the report to the parent when the child's turn ends, and the parent's chat draws it as a card that opens the child. A subagent's chat gets a bar with a link back to its parent, its provider and its state. The right sidebar's sections are cards, subagents show their provider logo and state, and linked sessions use a link icon. Refs #139
…debar A subagent's report now shows in the parent's chat as a folded step among the thinking and tool calls, with Open to show the child, instead of a card that took the column's full height. The right sidebar folds finished, failed and stopped subagents into one row under the ones still running. Refs #139
When the running binary is replaced on disk, Linux reports its path with " (deleted)" on the end. New Claude Code sessions then got that path as the m4code MCP server's command, failed to start it (ENOENT, posix_spawn 'stdio'), and ran without m4code's tools and instructions. own_exe drops the mark when the marked file is gone, for the MCP server, the custom subagent helper and Antigravity's read-only hook.
Claude Code's Agent tool and OpenCode's task tool now show in the right sidebar beside the subagents m4code started, with their provider's logo and state, and fold away once finished. A native subagent has no session to open, so clicking it unfolds its step in the parent's chat and scrolls there. Tool calls keep their agent type when saved. Refs #139
…n pick model and effort m4code no longer shows a confirm dialog when a session opens another with a first message, switches to a model on another harness or moves to another worktree. set_model is allowed like the other m4code tools, and a harness's permission prompt for one of m4code's tools is answered yes. The instructions tell the model to call these tools only when the user asked, and never to ask the user to confirm what they asked for; the unasked start_code_session suggestion is gone, since nothing would stop it now. start_code_session takes a model (its harness follows) and an effort. The new session keeps the user's default permission mode.
Holding Ctrl (Cmd) no longer reveals key hints anywhere: the sidebar's session numbers, the top bar, the right sidebar, the message box and the welcome screen's shortcut row are gone, along with the modifier tracking behind them. Settings → Keyboard lists every shortcut instead, grouped, and can't change them yet. The bindings move to app/keymap.rs beside that list, and a test fails when a binding is missing from it.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…rom compaction and hand-offs is_own_tool matched "m4code" and a tool name anywhere in a permission prompt's title, so a shell command such as `grep mcp__m4code__set_model && rm -rf build` was approved without asking. The whole title must now be the tool's name, and execute, edit, delete and move prompts are never answered for the user. A child turn that filled the context started an automatic compaction, and the parent never got its report. Reports now go out when the turn ends, before the compaction starts. They are queued through their own path, so they no longer start or join a hand-off the user picked in the parent's model picker.
…s left the terminal
… CRLF from the stand-in agent
…rries its reply The prompt's reply came back on its own channel while the updates queued on another, so under load the turn could end before the agent's last message was applied: the child reported "(The subagent wrote no report.)". The reply now goes through the same event channel, after every update that came before it.
This was referenced Nov 23, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This merges the GPUI rewrite into main as m4code 0.10.0. Every agent session now runs over the Agent Client Protocol in m4code's own chat view. Claude Code runs through the Claude Agent SDK, and Codex, OpenCode and Antigravity run through their own ACP servers. The shell panel is the only terminal left.
The branch also adds:
The app, package and repository are renamed from Claudiu to m4code, and the version is 0.10.0.
Evidence
On Linux, after the last commit:
cargo clippy --locked --all-targets -- -D warningsis clean.cargo test --lockedgives 467 passed and 31 ignored.claude plugin test modgives 30 passed.vpkstarts, and its MCP server reports version 0.10.0.Windows and macOS are checked by this pull request's CI.
Risk
The installer package is now
m4codeinstead ofClaudiu, so Claudiu 0.9.x installs won't update to 0.10.0 on their own. Their users have to install m4code once by hand. The released app copies the old Claudiu data folder the first time it starts.To undo, revert the merge commit on main and delete the
v0.10.0release and tag.Refs #136
Refs #139