
showagent
io.github.aytzey由 GitHub 帳號 aytzey 發布v0.14.1更新於 Oct 24, 2026
Search, resume and hand off coding-agent sessions: Claude Code, Codex, Gemini, Antigravity and more.
概覽
本機 MCP 伺服器,讓助理搜尋電腦上的編碼代理工作階段歷史、讀取近期對話,並把工作階段交接給另一個代理。
- 可以做什麼
- 依代理、工作區或首則與最新使用者訊息中的文字尋找本機工作階段
- 讀取工作階段中近期的使用者與助理對話輪次,預設對疑似密鑰的值進行遮蔽
- 把工作階段中可轉移的對話複製成同一代理下的新工作階段
- 把工作階段改寫成另一個代理的原生格式,並回傳新工作階段的 id、檔案與續接指令
- 回傳續接某個工作階段的确切 shell 指令與工作目錄,但不會執行它
- 適用情境
- 適合同時使用多個編碼代理、希望助理找到先前的軟體工作階段、取出其脈絡,或把對話從一個代理帶到另一個代理而不必重新說明任務的情況。
- 執行需求
- 以本機 stdio 程序執行,透過 showagent mcp 子指令啟動;需先安裝 showagent 執行檔(提供 Linux、macOS 與 Windows 的 MCP 打包)。需要電腦上已有受支援代理的工作階段,交接目標代理的 CLI 需在 PATH 中。不需帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 showagent,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
showagent
Switch coding agents. Bring the conversation.
Out of Claude quota halfway through a fix? Want Codex to review what Gemini planned?
Started in Antigravity and want to finish in the terminal?
showagent finds every coding-agent session on your machine and continues it in another agent,
as that agent's own native session, in a few keystrokes.
[CI] [Release] [Downloads] [Stars] [MIT]
Claude Code · Codex · Gemini CLI · Antigravity new · OpenCode · MiMoCode · Pi · jcode
[showagent walkthrough using sample sessions and simulated agent output]
The demo runs the real showagent binary on sample sessions; the target CLI is a labeled stub. See compatibility evidence for what has been tested with real agents.
Why showagent
Every coding agent keeps its history in its own private format. Switching agents usually means starting over and re-explaining the task. showagent reads every supported store, puts all of your sessions in one picker, and moves a conversation between agents without leaving the terminal.
- Move conversations between agents. Eight agents, one picker. Hand a session from Claude Code to Codex, from Codex to Gemini CLI and back, or carry an Antigravity conversation into any of them.
- Native sessions, not copy-paste. The target agent gets a real session
in its own store, so
claude --resume,codex resume,gemini --resume, and the rest reopen it like any other session. - Preview before anything is written. The first
xshows the workspace, how many turns move, and what is dropped. Only the secondxwrites, and the original session is never modified. - Find any past session. Group by workspace and fuzzy-search agent, session ID, paths, and first/latest prompts across every agent at once.
- Your agent can use it too.
showagent mcplets an MCP client search and read other agents' history, and request a hand-off. - Bring web chats in. Import a public ChatGPT or Claude share link, a transcript file, or pasted text as a native coding-agent session.
- Local only. No hosted service, telemetry, or account. See the privacy FAQ.
Typical hand-offs
Quick start
You need an existing local session, the target agent's CLI on PATH, and its
normal sign-in completed. Keep the original workspace available.
- Press
/and search for the workspace or a phrase in the session's first or latest user prompt. Pressenterto finish searching, then select the session you want to continue. - Press
ountil the target isclaude(or another installed agent). - Press
xto review the workspace, message scope, and state that will be dropped. Pressxagain to write and select the new session. - Press
enterto open that new session in the target CLI.
Prefer commands? The Codex → Claude handoff guide walks through selecting an explicit session ID, previewing, converting, and resuming it. It also explains the reverse direction and what conversion preserves.
If showagent saved you a re-explanation, a ⭐ helps other people find it.
Install
On Linux or macOS, install the latest GitHub release. The script checks
the archive against that release's SHA256SUMS and normally installs in
~/.local/bin:
If that directory is not on your PATH, run ~/.local/bin/showagent directly
or add the directory to your shell's PATH.
On Windows, download and extract the windows_amd64.zip archive from the
latest release, then run
.\showagent.exe in PowerShell from the extracted directory. Windows support
is experimental; see platform and native-resume evidence.
Homebrew and Go installation remain available under other installation options. Distribution details explain version differences between channels.
Supported agents
Notes:
- The table describes implemented adapters, not a claim that every provider version and conversion direction has passed a real CLI test. See the compatibility record.
- Antigravity has two surfaces. Conversations from the
agyterminal agent are listed with their workspace and reopen withagy --conversation <id>. Conversations from the Antigravity IDE are listed as hand-off sources: convert them into any other supported agent. showagent reads the plain-text transcript Antigravity keeps next to each conversation and never opens Antigravity's private databases. Converting into Antigravity is not available yet:agyhas no way to create a conversation without a model turn, and in that turn the model can write files if the handed-off text asks it to. showagent will add this direction whenagyoffers a safe import path. - OpenCode and MiMoCode store sessions in a SQLite database, so every operation (discover, export, import, delete) goes through their own CLI; showagent never writes into the database directly. OpenCode, MiMoCode and jcode only appear when their CLI is installed.
- The picker only offers hand-off targets whose CLI is on
PATH. Scripted conversion to file-backed agents can still prepare a session before their CLI is installed; OpenCode and MiMoCode always require their CLI because the import goes through the agent itself. - jcode is a niche, experimental agent CLI. Its support is auto-hidden: if no
jcodebinary is onPATH, showagent never shows it. - Pi sessions are versioned JSONL trees. showagent follows Pi's active leaf
through
parentIdlinks, so abandoned branches are not previewed or moved into another agent. Converted sessions use Pi's native v3 format; the compatibility record distinguishes file conversion from native loader and model-continuation checks. - A project-local Pi
sessionDiris visible when showagent is launched from that project. Like Pi itself, showagent cannot discover arbitrary custom session roots belonging to other projects unless one is selected globally withPI_CODING_AGENT_SESSION_DIR. - Platforms: Linux and macOS (amd64 + arm64). Windows (amd64) builds are released but experimental: resume runs the agent as a child process instead of replacing showagent.
Other installation options
Homebrew, GitHub releases, Go module versions, and MCP bundles can update on
different schedules. Go's @latest follows module version resolution, which
can differ from GitHub's latest release; check showagent --version and
showagent --help after installing. See distribution details
for channel-specific features and update instructions.
Archives are also available for linux/darwin amd64 + arm64 and windows
amd64 (experimental) on the releases page.
More commands
Replace SOURCE_SESSION_ID with the ID you selected from showagent list.
The transcript command is not present in older builds such as v0.11.0;
check distribution details if your help output differs.
See web conversation import for accepted transcript
formats, security boundaries, and the difference between creating a session
and adding context to an existing one.
Keybindings
Scripting
showagent list --json emits an array sorted newest-first — the field names
are a stable contract:
showagent resume <id|latest> [--yolo] resumes without the picker, so a shell
alias can reopen your last session in one keystroke.
showagent transcript <id|latest> [--max-turns N] [--json] exports the most
recent turns for local tools that need a bounded context handoff. Output is
always secret-redacted, marked as untrusted history, and capped at 500 turns.
showagent convert <id|latest> --to <provider> --dry-run prints the hand-off
before writing anything: source session, target provider, workspace, scope,
transferable turn count, last user ask, and the agent-specific state that will
be dropped. Remove --dry-run to write the converted session, then showagent
prints the resume recipe for the new row.
showagent import --url <public-share-url> --to <provider> --cwd <directory>
creates a new native session from a ChatGPT or Claude web share. Use --file
or --stdin for copied transcripts, and preview with --dry-run. Existing
Codex sessions accept --into codex:<exact-id>; imported messages become model
context but may not appear as normal chat bubbles. Other existing-session
targets stay disabled until their CLIs provide a safe same-ID append contract.
showagent info <id|latest> [--yolo] prints the exact resume command,
working directory, and storage location for a session.
Exit codes: 0 success, 1 error (including "no sessions found"), 2 usage.
When stdout is not a terminal, plain showagent prints the list table, so
pipes just work.
Use it from inside your agent (MCP)
showagent mcp runs a stdio MCP server, so an MCP client can find sessions
from the supported local agents, read their recent transcript turns, and
request a new native session in another agent. For example, ask it to find a
Codex session whose first or latest prompt mentions rate limiting, then read
that session for context. Search matches workspace and first/last user-message
text; it does not search every message in the transcript.
The server returns a resume command for you to run. It does not launch an interactive agent or continue a model conversation by itself.
An MCP client can send returned transcript text to its model provider. Common
secret-like values are therefore redacted by default, and every transcript is
marked as untrusted historical data rather than instructions. If verbatim
values are required, the user must explicitly start the server as
showagent mcp --allow-secrets; an MCP tool call cannot bypass redaction.
For clients that should never write session copies, register
showagent mcp --read-only; that mode omits branch_session and
convert_session entirely.
Tools:
The default MCP surface is deliberately non-destructive: there is no delete
tool, and it never launches or resumes an interactive agent. OpenCode storage
operations still go through the local opencode CLI because its sessions live
in SQLite. Deleting sessions stays exclusive to the TUI, where it takes two key
presses with a human watching. Branch and convert only add new sessions —
originals are never modified — and --read-only removes even those additive
tools.
How it compares
claude-squad manages parallel live agents with tmux and git worktrees. ccmanager also manages live agent sessions and worktrees, without requiring tmux. Agent Sessions offers a macOS GUI for browsing agent history. hstry provides a shared history database, search, and native-format conversion.
showagent focuses on finding and continuing the sessions already on your machine: a terminal picker that reads existing stores, previews a handoff, and writes a new session for another supported agent. It can sit alongside the tools you use to run live tasks. Start with the handoff guide and check the tested compatibility scope for your workflow.
Compound engineering
Press C on a session and pick an agent. showagent resumes the session there
and starts it on a compound-engineering pass: review what was solved, then
record the durable learnings as markdown.
Learnings are pooled per project but shared across agents: each workspace gets
a directory under ~/.showagent/learnings/<project>/ (override with
SHOWAGENT_LEARNINGS_DIR) that every agent reads and writes. Picking an agent
that did not create the session converts its transferable user and assistant
messages first; provider-private tool and runtime state is not copied.
showagent setup installs the companion
compound-engineering plugin
into the Codex, Claude Code, and Pi CLIs found on the machine. For Pi it also
installs the pi-subagents and pi-ask-user companion packages. The command
is idempotent and only installs what is missing.
FAQ
Is my session data sent anywhere?
showagent itself does not upload session content and has no telemetry or
account. An MCP client may send get_transcript results to that client's model
provider, so MCP transcripts redact common secrets by default; keep that
boundary in mind before registering the server. Web import fetches only the
public ChatGPT or Claude share URL you explicitly provide; it does not use
browser cookies, private-chat URLs, or arbitrary hosts. The optional release
updater and startup update check also use HTTP (disable the update check with
SHOWAGENT_NO_UPDATE_CHECK=1). showagent setup invokes the installed
Codex/Claude/Pi CLIs, which may download the requested plugin. Message previews
also redact password-like strings and API keys before rendering (covered by
tests in internal/session/session_test.go).
Release archives ship with a SHA256SUMS file, and releases after v0.7.0
also carry GitHub build provenance — verify with
gh attestation verify <file> --repo aytzey/showagent.
How does conversion work?
Conversion extracts the user and assistant turns from the source transcript
and writes a brand-new session in the target agent's native format (for
OpenCode and MiMoCode via their import command), so the target's own resume
command picks it up. Code blocks, newlines, and indentation are preserved, and
the original session is never modified. For file-backed targets, showagent
writes the new file itself: private (0600) and atomically, so a crash cannot
leave a half-written session in another tool's store.
Trust is explicit: in the TUI, the first x shows the hand-off preview and the
second x writes it. In scripts, use showagent convert ... --dry-run for
the same preview. Conversion intentionally does not copy tool-call
internals, approval history, encrypted reasoning blobs, or provider
attachments: those are private to the source agent and would not replay
correctly anyway. Branching uses the same safe user/assistant-turn projection;
it does not byte-clone provider-private runtime metadata. t / --scope trims
the scope to the latest N turns before converting.
What does delete actually do?
Codex sessions are deleted through codex delete --force; OpenCode through
opencode session delete (which cascades inside its database). Claude Code
removes the JSONL plus its matching index entry, jcode removes the JSON plus
backup/journal sidecars, and Gemini and Pi remove their session files.
Antigravity conversations are not deleted by showagent; delete them from
agy's own /resume picker so its databases stay consistent. Delete
always takes two presses, and moving the cursor disarms it.
Windows? Binaries are released, but resume uses a child process instead of replacing showagent. Windows remains experimental; the compatibility record lists the checks actually run.
A session is missing from the list.
Run showagent list with no sessions found and it prints exactly which
directories were scanned and which env vars override them. r rescans
in-place after you start a new conversation.
Adding a provider
A provider implements the interface in
internal/session/provider.go, including
discovery, resume arguments, transcript extraction, and conversion.
gemini.go (file-based store),
opencode.go (CLI-based store), and
antigravity.go (a hand-off source only)
are the templates. Register it in the registry slice and the TUI picks up badges,
filter keys, and convert targets automatically. Add a matching env override
so its tests stay hermetic. Issues and PRs welcome.
Building
The minimum supported toolchain is Go 1.26.10 (see go.mod); CI also runs race tests,
golangci-lint, govulncheck, and every published cross-compile target.
The illustrated demo uses vhs,
fabricated fixtures, and simulated agent output; it is not a native-resume
test. Recording and isolation instructions are in demo/README.md.
Security issues and sensitive-data exposure should be reported privately; see
SECURITY.md. Contributions are covered by
CONTRIBUTING.md.
Star history
[Star history chart]License
MIT. Built with Bubble Tea, Bubbles, and Lip Gloss.
來源:README.md,提交 17191af
工具
0版本歷史
4- v0.14.1最新Oct 23, 2026
- v0.14.0Oct 16, 2026
- v0.12.1Sep 17, 2026
- v0.11.3Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分