A CLI that extracts the useful structure from source files: signatures, imports, types, variables, comments, Markdown sections, and JSON shapes.
Use it to understand a codebase quickly, review files, or create compact context for AI assistants.
Benchmark
In an A/B experiment on 25 SWE-bench Lite tasks (SWE-agent, identical configs with and without showsignature), the agent solved the same or more tasks while the median task used 62% fewer tokens:
Setup: SWE-bench Lite (n=25), SWE-agent 1.1.0, deepseek-v4-flash, $0.25/instance cost cap, 100-call limit, single seed. A case study, not a definitive benchmark.
Install
[!NOTE]
How the tool is exposed depends on the agent: in Pi and OpenCode it registers as a native tool call, while in Claude Code and Codex it runs as a bash command (their harnesses integrate external tools through the shell).
Claude Code
1. Install locally or globally
#npm|pnpm|yarn
# global install
npm install -g showsignature
# local install
npm install showsignature
(You have to send two separate prompts for the install to work)
The desktop app has no /plugin command. Install it from the UI instead: Customize, the + by personal plugins, Create plugin and add marketplace, Add from repository, then enter the repo URL.
The agent invokes showsignature as a bash command.
Codex
1. Install locally or globally
#npm|pnpm|yarn
# global install
npm install -g showsignature
# local install
npm install showsignature
Open /plugins, select the showsignature marketplace, and install showsignature. Then open /hooks, review and trust its lifecycle hook, and start a new thread.
This same install also covers the Codex desktop app: restart the app after installing and it picks up the plugin.
The agent invokes showsignature as a bash command.
Pi agent extension
# option 1
pi install npm:showsignature
# option 2
pi install git:github.com/FredySandoval/showsignature
# option 3
pi install https://github.com/FredySandoval/showsignature
The extension registers showsignature as a native tool call.
OpenCode installs the package automatically at startup and registers the map and outline_read tools — the agent calls them as native tools, no shell involved.
[!NOTE]
Pin an exact version as shown above and update it manually on new releases. OpenCode caches the plugin by its version specifier, so an unpinned (or @latest) install is resolved once and never refreshed — publishing a new version to npm won't reach you until the pinned version changes (or you clear ~/.cache/opencode/packages/).
[!NOTE]
You may need to have installed node or bun.
MCP server (Claude Desktop, Cursor, Cline... etc.)
For any MCP-capable host, showsignature ships an MCP server over stdio that
exposes map and read as the tools map and
outline_read. The host injects them into the model's tool list — the
model calls them directly instead of shelling out.
1. Install
# global install — lets the host launch `showsignature mcp` directly
npm install -g showsignature
2. Register the server
# For Claude Code
claude mcp add showsignature -- showsignature mcp
# For Codex
codex mcp add showsignature -- showsignature mcp