aytzey/showagent
关于
Switch coding agents mid-task and keep the conversation. Find every local Claude Code, Codex, Gemini CLI, OpenCode, Antigravity & Pi session in one terminal picker; resume it, branch it from any message, or hand it off to another agent as a native session. TUI + CLI + MCP server.
开发工具实测星标增长
- 24小时
- +1
- 7天
- +1
- 15天
- +8
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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.

Watch a 23-second hand-off in the real picker with sample sessions and simulated agent CLI output. See the real CLI compatibility checks for tests with installed agents.
Try it with an empty history. Run showagent demo to move a sample checkout
bug from Codex into a temporary Claude Code session and read back the three
messages. It works offline without either agent installed. The demo, workspace
views, and list filters require showagent v0.18.0 or newer.
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
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.
Press v to switch between Folders, Tree, and Repos. Tree
shows sessions inside their directory hierarchy. Repos puts a project's
sessions under its Git root and marks each subfolder with its relative path,
such as ↳ apps/api. See the three workspace views.
- Press
/to search by workspace or words in the first or latest prompt. Pressenterto finish searching, then select the session. - Press
oto choose the target agent, thenxto choose where it picks up. Select Continue from the end and pressenterto preview the hand-off. - Press
xto create the new session, thenenterto open it in the target CLI.
Hand off from the command line
Find the session you want to move. For example, if you remember discussing rate limiting on the API server, narrow the list first:
showagent list --provider codex --workspace api-server --query "rate limiting"
The filters match part of the workspace path and text in the first or latest
user prompt. Use showagent list for the full list on any version. Copy the
session ID from the result to preview exactly what will move.
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
| Agent | CLI | Session store | Override | Hand-off target |
|---|---|---|---|---|
| Codex | codex |
~/.codex/sessions, ~/.codex/multica-sessions |
CODEX_HOME |
Yes |
| Claude Code | claude |
~/.claude/projects |
CLAUDE_HOME |
Yes |
| Gemini CLI | gemini |
~/.gemini/tmp/<project>/chats |
GEMINI_CLI_HOME |
Yes |
| Antigravity | agy |
~/.gemini/antigravity-cli, ~/.gemini/antigravity-ide |
ANTIGRAVITY_HOME |
Source only |
| OpenCode | opencode |
opencode.db via its CLI |
OPENCODE_DATA_HOME |
Yes |
| MiMoCode | mimo |
mimocode.db via its CLI |
MIMOCODE_HOME |
Yes |
| Pi | pi |
~/.pi/agent/sessions |
PI_CODING_AGENT_DIR, PI_CODING_AGENT_SESSION_DIR |
Yes |
| jcode | jcode |
~/.jcode/sessions |
JCODE_HOME |
Yes |
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_DIRto select a directory globally. - CLI conversions to file-backed targets can prepare a session before you
install the target CLI. Add
--openonce the target is available.
Commands
| Do this | Run |
|---|---|
| List or script against local sessions | showagent list or showagent list --json |
| Open a known session directly | showagent resume SESSION_ID |
| Print its resume command and storage location | showagent info SESSION_ID |
| Export recent messages as redacted Markdown | showagent transcript SESSION_ID --markdown |
| Preview importing a ChatGPT or Claude share | showagent import --url SHARE_URL --to codex --cwd . --dry-run |
| Update a standalone install | showagent update |
| See all commands and flags | showagent --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
| Key | Action |
|---|---|
enter / c |
Open the selected session or copy its resume command |
/ |
Search sessions by agent, ID, workspace, and first or latest prompt |
o / x |
Choose a target agent or start a hand-off |
n |
Branch within the same agent |
i |
Import a public share link or pasted transcript |
r |
Refresh the session list |
? |
Show or hide the key hints |
q / ctrl+c |
Quit |
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.
探索相关项目
加载中…