A lightweight, local-first, multi-provider AI agent desktop workspace written in Rust.
- ACP First, Not ACP Only: Built-in Agent Client Protocol (ACP) v1 client over stdio, plus native CLI adapters for agents without a standalone ACP wrapper installed.
- Multi-Provider Support:
- OpenCode (
opencode acp) - Grok Build (
grok agent stdio, using the existinggrok login) - Claude Code (
claude-agent-acpor nativeclaudeCLI adapter over bidirectionalstream-json) - Codex (
codex-acpor nativecodex app-serveradapter) - Antigravity (
agy acp) - Custom ACP agents (configurable command, args, env, cwd)
- OpenCode (
- Provider CLI Management: Check installed paths and versions for Codex, Claude Code, Antigravity, OpenCode, and Grok Build in the current project’s execution environment. Get update notifications when a release feed is available, run supported updates individually or in bulk, and inspect update logs. SAME blocks updates while affected sessions are running and shows manual update guidance for unsupported installations.
- Parallel Sessions: Run multiple sessions concurrently across the same or different providers and projects, with independent per-session UI state (draft prompts, attachments, selected skills, scroll position), cross-project active session list and stop controls, and clickable background notifications.
- Context Handoff & Provider Session Reuse: Switch providers or models inside the same SAME session while preserving conversation history and continuity. Native provider sessions are stored per
(provider, exec_mode, workdir)and reused with delta sync when returning to a previous provider; when native resume is unavailable,Smart,Full, orFreshcontext handoff restores work seamlessly. - Working Environment Isolation: Choose
Shared,Isolated (Git Worktree), orRead Onlyper session (with configurable default in Settings). Create or attach Git worktrees, inspect branch/diff status, and merge or remove worktrees with explicit confirmation and uncommitted-change protection. Non-Git projects continue to work normally. Grok Build supports Shared and Isolated workdirs. Plan mode, Quest Party Leaders, AI skill drafting, and memory consolidation require a provider that can enforce Read Only execution. - Centralized MCP Gateway: Register stdio and Streamable HTTP MCP servers once in Settings (with standard
mcpServersJSON import/export, OS credential store for tokens and multi-secret header/env bundles, Global and Project overrides, and Read Only lockdown) and expose them uniformly to Claude Code, Codex, and ACP agents through the built-insame mcp servestdio gateway. - Project & Global Memory: Store and search reusable knowledge locally (SQLite + FTS5). Review agent, session-extracted, and Quest-extracted proposals before they become active memory, and configure which approved entries are injected into session context.
- Quest Orchestration & Quest Board: Turn complex, multi-step work into structured Quests (
Workspace -> Project -> Quest -> Session, while keeping standalone quick sessions frictionless). Collaborate with a Party Leader to clarify intent, design a revisioned execution plan (party roster + acyclic task DAG), run approved Party Members in parallel (with isolated Git worktrees), monitor and intervene live on the Quest Board, confirm Quest Clear with structured final reports and opt-in Project Memory consolidation, and selectively inherit context into follow-up Quests. - Streaming & Tool Visibility: Real-time streaming responses, collapsible thinking/reasoning blocks, compact tool call summaries in chat with full details in the splittable right-pane Tools view, approval cards with diffs and keyboard answers for every provider, question and plan cards, OS notifications while in the background, and file/image attachments.
- Usage Dashboard: Plan limits of Claude Code and Codex (5-hour and weekly windows, share used and left, time until reset) in one place, read from the CLIs without spending tokens.
- Local-First Storage: All configuration (TOML) and conversation history (SQLite) are stored locally. Zero telemetry, no mandatory account.
- Built-in Workspace Tools: File browser (with right-click context menu to reveal/open in Explorer, Finder, or the OS file manager and copy paths), file viewer/editor, and optional Git status/diff viewer for software development projects.
- Customizable & Bilingual UI: 4 color themes (Ocean, Classic, Twilight, Sakura), each with dark and light variants, configurable UI/monospace fonts and font size, configurable submit key, and Japanese/English UI support.
- In-App Updates: Built-in updater that checks GitHub Releases and updates in place (
same --version/-Vto print the installed version).
On Windows, agents run where the project lives. A project folder inside WSL (\\wsl.localhost\<distro>\...) runs its agents inside that distribution, with your Linux login shell's PATH, so the CLIs you installed and logged in to there are used. Other folders use the Windows CLIs. Override it per project from the ⚙ menu in the chat header (Auto / Windows / WSL).
| Key | Action |
|---|---|
Enter / Shift+Enter |
Send prompt / insert newline (configurable to Ctrl+Enter / Cmd+Enter in Settings) |
Cmd+K / Ctrl+K |
Open / close the Command Palette (jump across Chat, Quest Board, tabs, Global Inbox, Quest actions, and Settings) |
Cmd+Shift+A / Ctrl+Shift+A |
Open / close the Global Needs-Action Inbox (j/k or ↑/↓ to navigate, Enter to jump to the review surface) |
Cmd+, / Ctrl+, |
Open Settings |
Esc |
Close the active overlay, modal, palette, Global Inbox, confirmation strip, free-text question input, skill picker, rename/font menu, Quest Board overlay/selection/view, or Settings; when the prompt is focused, stop the running agent |
Ctrl+N |
New session |
Ctrl+S |
Save the file open in the file panel |
Ctrl+L |
Focus the prompt |
Ctrl+B |
Show / hide the Files · Git · Tools · Logs panel |
1–9 / N or Esc |
On an approval card (when it has the focus ring): pick that option / deny |
1–9 / Enter / Esc |
On a question card: pick an option / answer / skip |
The title bar shows a ring per Claude Code, Codex, Antigravity, or Grok Build provider, split into two semicircles: the top half fills to the short (5-hour) limit and the bottom half to the long (weekly) one, with both percentages stacked in the middle (amber at 80%, red at 95%). Hover a ring for its limits and reset times; click it for the Usage screen (click again to go back), which shows a bar per limit (5-hour, weekly, and any per-model limit), the share used and left, and the time until it resets.
- Claude Code: the
get_usagecontrol request ofclaude -p --input-format stream-json. - Codex:
account/rateLimits/readoncodex app-server. - Antigravity: the model group quotas from
agy --print /usage --output-format jsonon CLI 1.1.11 or later. The quota is unavailable when the ACP configuration uses account or backend settings that print mode cannot reproduce. - Grok Build: the included-credit usage of the current billing period from the
x.ai/billingACP extension (signed-in subscriptions only; API-key logins are shown as unavailable). A period of unknown length is drawn on the bottom half. - Other ACP agents are shown as unavailable. Logins without plan limits (e.g. API keys) are shown as unavailable too; SAME never estimates a number.
No turn is run, so no tokens are spent. Limits are fetched at launch, every 10 minutes (every 5 while the Usage screen is open), after a turn of that provider ends (if older than a minute), and with Refresh. They belong to the CLI's login where the current project's agents run (Windows or WSL). A fetch can start the CLI and run its startup hooks (e.g. Claude Code SessionStart hooks).
Below the limits, Token usage totals the tokens each CLI used today, over 7 days or over 30 days: per provider (split into input, output, cache read and cache write), per day (stacked bars) and per model. Include cache switches between all tokens and input + output only. The numbers come from the history each CLI keeps on the machine where the project's agents run, so use outside SAME counts too:
- Claude Code:
~/.claude/projects/**/*.jsonl(or$CLAUDE_CONFIG_DIR), deduplicated by message and request id. - Codex:
~/.codex/sessions/**/*.jsonl(or$CODEX_HOME), deduplicated by response id. - Grok Build: Per-turn usage records from the local store used by
grok usage. Subscription credit usage comes from the CLI’s ACP billing extension when available. - OpenCode:
opencode stats --json, which also reports a cost (shown as is; SAME estimates no cost). - Antigravity: saved CLI transcripts at
~/.gemini/antigravity-cli/brain/*/.system_generated/logs/transcript.jsonlby default. SAME follows the ACP provider's--gemini-dirand--app-data-dirsettings and deduplicates steps within each conversation. Totals cover conversations with saved transcripts.
The row under the prompt has an agent picker, a model picker, and a reasoning effort picker (when supported by the selected model). Providers that are not installed or not authenticated are hidden from workspace pickers, and providers whose quota is exhausted are shown disabled until reset. Models are discovered dynamically from each provider (ACP session/new, Claude Code initialize, and Codex app-server). You can also type /model <name> (or /model default) in the prompt; typing / lists the commands, and /model lists the models.
- Parallel execution: Sessions keep running in the background when you switch sessions or projects. Draft prompts, attachments, selected skills, and scroll positions are preserved per session. Active sessions across all projects appear at the top of the sidebar with one-click jump and individual stop controls, and background events (finished replies, approvals, user questions, errors) show clickable banners. Concurrency is unlimited by default and can optionally be capped (1–16) in Settings → General.
- Context Handoff & Provider Session Reuse: Switching providers in a session with existing history asks for confirmation before sending context to another provider and lets you pick
Smart(structured summary + recent turns),Full, orFresh(no prior context sent; SAME history is preserved). Returning to a previously used provider resumes its native session and sends only unsynced delta updates. - Working environments: Pick
Shared,Isolated (Git Worktree), orRead Onlyfrom the chat header (📁 Shared ▾). Isolated sessions run in a dedicated Git worktree and branch (with the right-pane Files and Git tabs following the session's worktree), and offer confirmed merge and removal actions without discarding uncommitted changes.
Quests let you coordinate multi-agent workflows across providers while keeping you strictly in control of goals, permissions, completion, and durable project knowledge:
- Lifecycle:
Clarifying→Planning→Awaiting Approval→Approved→Running→Awaiting Completion→Completed(plusPausedandArchived). You can create a Quest directly or promote an existing chat session into a Quest. - Autonomy & Human in Control:
- Within an approved plan and approved party roster, the Party Leader can autonomously inspect live status (
party_get_status), dynamically add/update/reassign/retry/cancel tasks (task_create,task_update,task_cancel) while maintaining an acyclic DAG, and queue mid-run instructions (party_send_message). - Explicit user approval is always required for: changing Quest objectives/success criteria/constraints mid-run, approving execution plans (immutable once approved), adding new party members or expanding member permissions (
party_propose_member), confirming Quest Clear (Awaiting Completion→Completed), activating extracted Project Memory proposals (Proposed→Active), and merging isolated Git worktrees.
- Within an approved plan and approved party roster, the Party Leader can autonomously inspect live status (
- Navigation, Global Needs-Action Inbox & Responsive Layout:
- Global Needs-Action Inbox: The title bar bell icon displays the cross-project count of items requiring your attention (permission requests, pending plan/member approvals, open clarifying questions, Quest Clear confirmations, startup/quota recovery, and worktree actions). Open it with the bell or
Cmd/Ctrl+Shift+A, navigate withj/k(↑/↓), and pressEnterto jump straight to the corresponding review surface—items are never auto-approved from the inbox. - Unified Navigation &
Chat | BoardSwitch: Switch between Chat and the Quest Board from the title barChat | Boardsegmented control (orCmd/Ctrl+KCommand Palette). The chat sidebar and Quest Board left rail share the same status-grouped Quest list (with finished Quests collapsed and live task progress badges) and automatically collapse into a 56px icon rail below960px. - Responsive Breakpoints: Every screen adapts across Compact (
< 960px), Medium (960–1279px), and Wide (≥ 1280px) viewports—collapsing side rails to icons, turning docked side panes into overlay drawers when horizontal space is tight, scaling modals/master-detail panes, and folding secondary toolbar actions into⋯.
- Global Needs-Action Inbox: The title bar bell icon displays the cross-project count of items requiring your attention (permission requests, pending plan/member approvals, open clarifying questions, Quest Clear confirmations, startup/quota recovery, and worktree actions). Open it with the bell or
- Unified Chat Experience & Quest Strip:
- Above Quest chats, a pinned 32px Quest strip shows live status, progress, primary run controls, and a collapsible needs-action inbox without crowding the conversation.
- Full chat and the Quest Board's Party Leader side chat share the exact same message, card, and composer UI. Party Leader sessions display a locked Read Only (Delegation Only) chip in the composer so the Leader coordinates work via MCP without editing workspace files directly.
- Plan Approval Review:
- Pending execution plans and member proposals open in a dedicated Plan Review overlay (reachable from the Quest Board, Chat Quest strip inbox, Global Inbox, or Command Palette) with an item-level diff summary against the previous revision, prominent red permission-escalation warnings whenever member privileges widen, and a fixed footer (
Reject,Request Revision,Pause & Approve,Approve). - Bulk elevation (Set All to Full Access…) is tucked inside the
⋯overflow menu behind an explicit inline confirmation strip and only updates draft members—explicit plan approval is still required before execution.
- Pending execution plans and member proposals open in a dedicated Plan Review overlay (reachable from the Quest Board, Chat Quest strip inbox, Global Inbox, or Command Palette) with an item-level diff summary against the previous revision, prominent red permission-escalation warnings whenever member privileges widen, and a fixed footer (
- Quest Board: Full-screen operational workspace with 5 views and one-click session jump:
- Kanban: 6 columns (
Pending,Ready,Running,Blocked,Completed,Failed),QuotaExhaustedbadges, card density toggle, and a Selected Task Inspector. - DAG: Topological dependency graph with cubic Bézier curve edges, arrowheads, interactive node selection highlighting prerequisites and downstream paths (dimming unrelated nodes), per-node session jump, and task inspector.
- Timeline: 2-pane view combining a top Gantt band of clickable attempt duration spans (clicking a span scrolls to its attempt event) with a bottom category-filtered event list (attempts, leader events, member instructions, milestones, and clarifying questions).
- Artifacts: Aggregated task artifacts, attempt commits, and final report deliverables with kind filters,
Open Session, file-managerReveal, andCopy. - Party & Quota: Live Party Leader and member status, inline provider/model switching (strictly preserving approved permissions), isolated worktree Folder / Merge confirmation, Provider Quota cards, and Token Usage summary.
- Kanban: 6 columns (
- Live Interventions & Failure Recovery:
- Start, Pause, Resume, or Cancel a run (Cancel uses an inline confirmation strip); Dispatch, Retry, Quota-Recover, or Cancel individual tasks; send mid-run instructions directly to the Party Leader or any approved member; answer open clarifying questions inline; and jump to the unified Plan Review overlay to Approve, Pause & Approve, Reject, or Request Revision on pending plan/member proposals.
- On app restart, interrupted runs and tasks are safely paused (
Interrupted, without burning retry budgets) for manual resume—never auto-restarted. Quota exhaustion pauses affected tasks with bilingual recovery guidance (reassigning to another approved member or switching provider/model without altering permissions).
- Quest Clear, Memory Consolidation & Selective Inheritance:
- Quest Clear Confirmation View runs a live pre-confirmation check for unmerged worktrees, dirty worktrees, unmet success criteria, and open clarifying questions—enforcing an exact-match two-step confirmation whenever blockers are present. It also lets you verify success criteria, edit the final summary, review structured outcomes/decisions/lessons/unresolved items/deliverables, and opt in to asynchronous
QuestExtractedProject Memory consolidation (proposals are saved strictly asProposedfor review in Settings → Memory). - Selective Quest Inheritance creates a follow-up
Clarifyingchild Quest with parent/child lineage tracking by letting you check specific categories (Background,Context,Constraints,Artifacts,Decisions,Unresolved Items) and individual items—sanitizing all copied text and starting with a fresh Party Leader session without carrying over prior approvals.
- Quest Clear Confirmation View runs a live pre-confirmation check for unmerged worktrees, dirty worktrees, unmet success criteria, and open clarifying questions—enforcing an exact-match two-step confirmation whenever blockers are present. It also lets you verify success criteria, edit the final summary, review structured outcomes/decisions/lessons/unresolved items/deliverables, and opt in to asynchronous
Each session has an approval mode, picked under the prompt (the default for new sessions is in Settings). A change applies to a running reply right away (for Codex, sandbox and policy changes apply on the next turn).
| Mode | Claude Code | Codex | ACP agents |
|---|---|---|---|
| Plan | --permission-mode plan |
read-only sandbox, plan collaboration mode | the agent's plan mode |
| Ask (default) | default |
workspace-write sandbox, on-request approvals |
the agent's default mode |
| Accept edits | acceptEdits |
same as Ask | acceptEdits-like mode, else edits are allowed by SAME |
| Full access | bypassPermissions |
no sandbox, never asks |
bypassPermissions-like mode, else everything is allowed by SAME |
In plan mode the agent's questions (Claude Code's AskUserQuestion, Codex request_user_input) and its proposed plan show as cards; Implement this plan switches back to the mode the session had before and starts the work.
The Claude Code and Codex CLIs run as one process per session that lives across turns (so "Allow for this session" grants last), and stop after 10 minutes unused; the next turn resumes the conversation.
Settings open from the ⚙ next to the version at the bottom of the sidebar or via Cmd/Ctrl+, (click again, press Esc, or pick a session to go back). Double-click a session (in the sidebar or its title) to rename it. Session delete buttons ask for a second click to confirm, while Quests are deleted via their ⋯ overflow menu with a dedicated confirmation dialog.
crates/
├── same-core/ # Domain models, SQLite storage, TOML config, EventBus
├── same-acp/ # ACP v1 stdio JSON-RPC 2.0 client & protocol types
├── same-mcp/ # Centralized MCP Gateway (rmcp), OS credential store, policy resolver
├── same-agent/ # Provider-agnostic AgentRuntime, Capabilities, Provider adapters
└── same-app/ # Native GPU-accelerated desktop GUI (GPUI + gpui-component)
See docs/ARCHITECTURE.md for details.
# Build and run SAME (optionally pass a project directory to open immediately)
cargo run -p same-app -- /path/to/your/project
# Run tests
cargo test --workspaceThe source code is dual-licensed under MIT or Apache-2.0, at your option.
Exception: The brand assets and the mascot character Shark Egg in assets/brand/ are All Rights Reserved (Copyright (c) 2026 xsota) and are not covered by the MIT or Apache-2.0 license. Non-commercial fan art and referencing/showcasing SAME are permitted; see assets/brand/LICENSE for details.