Repository navigation
IDE: agent-first workbench with ACP coding agents (epic #265) - #289
Merged
Merged
Conversation
Agent Client Protocol host for Claude Code, Codex and Gemini CLI: catalogue with PATH and IDE-installed resolution, per-chat agent processes, session store per project, permissions, agent terminals, fs access limited to the folder, vendor logins in an integrated terminal. Exposed to the renderer as api.agentSessions.
The analysis queries of the built-in agent move to a shared module and are served over stdio by out/codexrMcp/index.cjs, run with ELECTRON_RUN_AS_NODE. codexrMcpServerSpec builds the session/new entry.
Create a worktree and branch per chat outside the project, status, commit, merge or squash into the current branch with conflict and overlap refusal, and removal.
…ated, not at startup (#268) Creating the editor group at startup loaded Monaco early and replaced the welcome view before the smoke probe saw it.
…#271 #274) SessionChanges owns one CheckpointStore per project (userData/checkpoints) and a persisted review base per chat (agent-sessions/review.json): the first checkpoint of a chat is its base; pending, diff, keep, undo, previewRestore and restoreCheckpoint work on top of it. Checkpoints that are off degrade to no checkpoint and a reason. AgentSessionService exposes the review calls (validated: the window must own the chat, paths are normalised project-relative paths, only checkpoints recorded on the chat's own messages can be restored, undo and restore are refused while a turn runs) and refreshes the pending count after each. The runtime wires beforePrompt/afterTurn to SessionChanges and measures each turn against the window's scene (AF9): a compact TurnMetricDeltaView is attached to the turn-end item through a new 'metric-delta' event. Six new IPC channels in AGENT_SESSION_CHANNELS and the preload.
…nder a turn (#270 #271 #274) A Changes tab per chat (chat-changes:<id>, resolved through resolveCustomEditor, never created at startup) lists the pending files with status and +/- counts, shows a lazily loaded Monaco side-by-side diff of the selected one and offers Keep / Undo per file or for all. It refreshes on pending-changes and turn-end events. The chat header's Changes button opens it; Restore files to here lists the files inline before restoring; a finished turn shows its metric delta compactly with the per-file detail folded under it. Pure helpers in changesModel.ts, tested. README updated.
… agent-first branch
…9m9bjg # Conflicts: # apps/ide/README.md # apps/ide/THIRD_PARTY_NOTICES.md # apps/ide/src/main/index.ts # apps/ide/src/main/ipc.ts # apps/ide/src/renderer/workbench.ts
A chat created with a worktree runs its agent in a git worktree and branch of its own under <userData>/worktrees: agent cwd, session/new cwd, fs access and terminals are confined to the worktree, and the Changes tab and the checkpoints work on it. The worktree record is persisted with the chat and only acted on when it lies in the IDE's worktree folder; the renderer names a chat by id. New IPC: worktreeAvailability, worktreeStatus, worktreeCommit, worktreeMerge (merge/squash, refusals carry the reason and files) and worktreeDiscard; create and remove take worktree options.
…277) New chat offers Separate worktree when the folder can have one (the choice is remembered). Worktree chats show their branch in the chat header and the Chats list; the header's Worktree bar shows files changed, ahead/behind, and offers Commit, Merge/Squash into the current branch and Discard (inline confirmation). Deleting such a chat asks inline whether to remove its worktree too. README documents the feature and its limits.
…9m9bjg # Conflicts: # apps/ide/THIRD_PARTY_NOTICES.md # apps/ide/scripts/build.mjs # apps/ide/scripts/dev.mjs # apps/ide/scripts/viteConfigs.mjs # apps/ide/src/main/index.ts # apps/ide/tsconfig.node.json
…9m9bjg # Conflicts: # apps/ide/src/renderer/workbench.ts
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.
Epic #265: the IDE opens in an Agent layout where the person chats with their own coding agents (Claude Code, Codex, Gemini CLI) while the live Code-XR analysis of the project sits on the right.
What
src/main/agentSessions/: agents run as separate programs over the Agent Client Protocol (@agentclientprotocol/sdk2.12.0). Each keeps its own sign-in, so the subscription or API key stays with the vendor's tool; the IDE never reads a vendor token. Per-chat processes, session store per project, permission cards (once / always), agent terminals and fs access limited to the folder, logins in an integrated terminal, no agent in Restricted Mode. An agent that dies reports its exit code and stderr.userData/agent-packages. Update and Remove (asks again).chat:<id>) on the custom-editor seam of IDE: PDF and image viewer tabs, on a generic custom-editor tab seam #256. Chats view by project with status, unread, search, rename, delete; streaming Markdown, tool cards with diffs and terminal output, plan, modes, model options, slash commands,@attachments, context meter, queued messages, notifications for chats not on screen.src/main/checkpoints/, outside the project; the project's own repository is never touched). A Changes tab per chat with a Monaco diff and Keep / Undo per file or all; "Restore files to here" on any message, with a preview of the files that will change.AnalysisServicesignals finished re-analyses and computes a per-turn metric delta, shown under each finished turn ("Complexity max 6 -> 2, LOC -8"). Re-analysis notices go to the status bar.out/codexrMcp/index.cjs, run by the IDE binary withELECTRON_RUN_AS_NODE), passed to every chat insession/new.src/main/worktrees/plus the UI: Separate worktree under New chat, branch badges, a Worktree bar with Commit, Merge / Squash into the current branch (refused on conflict, the person's hooks run) and Discard. The main process looks worktrees up by chat id only and refuses any record outside its storage folder.apps/ide/README.mdsection "Agent-first workbench"; manual test guidedocs/ide/agent-first-test-guide.md; THIRD_PARTY_NOTICES for both SDKs.ide(extensions Epic: run VS Code extensions in the Code-XR IDE (Open VSX + own extension host) #251, compare tabs IDE: Compare with Saved and Compare with Selected #288).Verification
npm testat the root: extension 1288/1288; IDE typecheck (node, web), ESLint 0 warnings, 840 pass, 1 skipped (debugpy).ide:smokeOK on Linux.Known limits