跳到正文
FunCoding

showagent

官方 MCP Registry 已收录

Search, resume and hand off coding-agent sessions: Claude Code, Codex, Gemini, Antigravity and more.

Star
74
版本
v0.17.0
许可证
MIT
最近提交
2026年11月30日

showagent

Switch coding agents mid-task and keep the conversation.

Hit your Claude Code limit halfway through a fix? Find the conversation in your terminal and open it in Codex as a native session in the same workspace. Or branch from an earlier user message and take the conversation in a new direction.

The picker reads eight agents' local histories, including Gemini CLI, OpenCode, Antigravity, and Pi.

CI Latest release MIT license

Install

Linux and macOS

curl -fsSL https://raw.githubusercontent.com/aytzey/showagent/main/scripts/install.sh | sh

With Homebrew, run brew install aytzey/tap/showagent. Check with showagent --version, then run showagent to open the picker.

The shell installer verifies the release checksum and normally installs to ~/.local/bin. If your shell can't find showagent, add that directory to PATH or run ~/.local/bin/showagent directly.

Windows (experimental) · Extract the windows_amd64.zip asset from the latest release. In the extracted folder, run .\showagent.exe --version to check the install, then .\showagent.exe to open the picker. Use .\showagent.exe in place of showagent when running the examples from that folder.

Go install, manual downloads, and release details

You can also install from Go 1.26.11+ with go install github.com/aytzey/showagent/cmd/showagent@latest or download a platform archive from the latest release. For updating and checking which features your install includes, see distribution details.

Release assets include SHA256SUMS. To check build provenance for a current release asset, run gh attestation verify FILE --repo aytzey/showagent.

Quick start

The showagent picker previews a sample Codex to Claude Code hand-off, with 11 turns to carry over and the original session preserved.

Watch the 23-second hand-off demo. It uses sample sessions and the real showagent picker. The final agent CLI output is simulated.

These hand-off examples use showagent v0.16.0 or newer. Have a saved session, its workspace, and a signed-in target CLI on PATH. Run showagent to see local sessions grouped by workspace.

  1. Press / to search by workspace or words in the first or latest prompt. Press enter to finish searching, then select the session.
  2. Press o to choose the target agent, then x to choose where it picks up. Select Continue from the end and press enter to preview the hand-off.
  3. Press x to create the new session, then enter to open it in the target CLI.

Hand off from the command line

Run showagent list and copy the ID of the Codex session you want. Replace SESSION_ID below to preview the workspace, transferable turn count, and last user request in the range you're copying.

showagent convert SESSION_ID --to claude --dry-run

When you're ready to create the session and open Claude Code, run this command.

showagent convert SESSION_ID --to claude --open

For the reverse direction, choose a Claude Code session and use --to codex. The hand-off guide walks through verifying and resuming the new session.

What moves

The copy carries user and assistant message text, including code blocks and indentation. Tool calls and results, approvals, attachments, and private runtime state stay with the source. The copy gets its own session ID and opens in the same workspace with the current project files. Read the full transfer details.

Branch from any message

Suppose the fourth request sent a rate-limiting fix toward a sliding window, and you want to try a token bucket instead. Select the session, press n, and search with / for sliding. Press enter to finish searching, then tab to leave that request out. The chooser shows how many turns the branch keeps. Press enter to create the branch in the same agent. The original conversation stays available.

showagent messages SESSION_ID --all
showagent branch SESSION_ID --before-user 4 --dry-run

Replace --dry-run with --open to create and open the branch. Use --through-user 4 to include the fourth user message and end there. Both cutoffs work with convert too. Watch the 20-second branch demo, recorded with sample sessions and simulated agent CLI output.

Trim the current conversation

Trimming requires showagent v0.17.0 or later. Build from source if your picker help has no D key.

Close the conversation in its agent, then select it in showagent and press uppercase D. Pick a user message, press enter to preview, then press uppercase D on that screen to confirm. The conversation keeps its session ID. Codex trims whole turns from its active conversation and keeps the previous rollout on disk. See the cutoff options and supported formats.

Supported agents

AgentCLISession storeOverrideHand-off target
Codexcodex~/.codex/sessions, ~/.codex/multica-sessionsCODEX_HOMEYes
Claude Codeclaude~/.claude/projectsCLAUDE_HOMEYes
Gemini CLIgemini~/.gemini/tmp/<project>/chatsGEMINI_CLI_HOMEYes
Antigravityagy~/.gemini/antigravity-cli, ~/.gemini/antigravity-ideANTIGRAVITY_HOMESource only
OpenCodeopencodeopencode.db via its CLIOPENCODE_DATA_HOMEYes
MiMoCodemimomimocode.db via its CLIMIMOCODE_HOMEYes
Pipi~/.pi/agent/sessionsPI_CODING_AGENT_DIR, PI_CODING_AGENT_SESSION_DIRYes
jcodejcode~/.jcode/sessionsJCODE_HOMEYes

All eight can be hand-off sources. The picker offers installed targets. Antigravity CLI sessions can reopen in agy. Antigravity IDE sessions support hand-off to another agent. See the compatibility record for tested CLI versions, platforms, and transfer directions.

Provider-specific discovery and conversion
  • OpenCode, MiMoCode, and jcode appear when their CLI is installed. OpenCode and MiMoCode handle imports through their own CLI. See discovery and caching for OpenCode version differences.
  • Pi follows the active conversation branch. Launch showagent from a project to pick up that project's custom Pi session directory. Use PI_CODING_AGENT_SESSION_DIR to select a directory globally.
  • CLI conversions to file-backed targets can prepare a session before you install the target CLI. Add --open once the target is available.

Commands

Do thisRun
List or script against local sessionsshowagent list or showagent list --json
Open a known session directlyshowagent resume SESSION_ID
Print its resume command and storage locationshowagent info SESSION_ID
Export recent messages as redacted Markdownshowagent transcript SESSION_ID --markdown
Preview importing a ChatGPT or Claude shareshowagent import --url SHARE_URL --to codex --cwd . --dry-run
Update a standalone installshowagent update
See all commands and flagsshowagent --help

You can use latest in place of a session ID to select the most recently updated session across all agents and workspaces. For scripts that preview and then write, use an explicit ID so both commands refer to the same source. See web conversation import for file, clipboard, and existing-session import options.

Keybindings

KeyAction
enter / cOpen the selected session or copy its resume command
/Search sessions by agent, ID, workspace, and first or latest prompt
o / xChoose a target agent or start a hand-off
nBranch within the same agent
iImport a public share link or pasted transcript
rRefresh the session list
?Show or hide the key hints
q / ctrl+cQuit

See the full picker keybindings for scope, filters, previews, and the message chooser.

Compound engineering

Press C to resume with a prompt that records durable project learnings as Markdown. showagent setup installs the compound-engineering plugin for supported local agents. See the setup and storage details.

Scripting

Use showagent list --json to consume stable session fields and showagent transcript SESSION_ID --json for bounded, redacted conversation text. The CLI reference has an example response, exit codes, and behavior outside a terminal.

Use it from inside your agent (MCP)

showagent mcp serves local session history over stdio. An MCP client can list sessions, read recent turns, preview a hand-off, and get the resume command. Start with --read-only for these operations. The default mode also exposes tools to write a branch or hand-off.

# Claude Code
claude mcp add showagent -- showagent mcp --read-only
# Codex (~/.codex/config.toml)
[mcp_servers.showagent]
command = "showagent"
args = ["mcp", "--read-only"]

For tool parameters, desktop bundles, and agent instructions, see the MCP tool reference, distribution details, and handoff skill.

How it compares

See how other local session tools handle the same job in the November 2026 comparison.

FAQ

Where does session data go? showagent processes conversations on your machine. Picker previews, transcript exports, and MCP reads redact common secrets by default. A hand-off copies the original message text, and an MCP client can send returned context to its model provider. Release checks and explicit public-share imports make network requests. Set SHOWAGENT_NO_UPDATE_CHECK=1 to disable the startup release check.

A session is missing. Press r to rescan. When no sessions are found, showagent list prints the directories it checked and their environment overrides. See discovery and caching.

How do I update? Run showagent update for standalone installs or brew upgrade aytzey/tap/showagent for Homebrew. Check showagent --version and showagent --help against the distribution notes.

Contributing

Building

Use Go 1.26.11 or newer.

git clone https://github.com/aytzey/showagent.git
cd showagent
go test ./...
go build -o showagent ./cmd/showagent

Read the contribution guide and demo recording instructions. Report security issues privately using the security policy.

Adding a provider

Add the provider to the registry and give it an environment override so tests can use isolated stores. The current adapters cover file-backed stores, CLI-backed stores, and hand-off sources. Provider interface · Gemini CLI example · OpenCode example · Antigravity example

Request support for another agent with an agent request.

If showagent saved you from re-explaining a task, a GitHub star helps others find it.

License

MIT. Built with Bubble Tea, Bubbles, and Lip Gloss.

同类 MCP Server

Scrapling MCP Server

Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.

D4D4Vinci/Scrapling107k近 7 天新增 1,982 个 star

官方

Fetch

Fetches web content and converts it to Markdown for an LLM to read

MOmodelcontextprotocol/servers92k近 7 天新增 200 个 star

OpenSEO

Keyword research, site audits, rank tracking and AI visibility for your AI agent.

EVevery-app/open-seo29k近 7 天新增 630 个 star

Agent Skills Search Server

Search and discover Agent Skills from the skills.sh registry. Powered by HAPI MCP server.

AGagentskills/agentskills28k近 7 天新增 208 个 star

XERJ

The search engine for AI agents: cited answers from your local code, docs, specs and logs.

XExerj-org/xerj23k近 7 天新增 2,746 个 star

精选

Apify

调用 Apify Store 上的现成爬虫,抓取社交媒体、地图和电商数据。

APapify/apify-mcp-server19k近 7 天新增 1,018 个 star