ping-claude
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PING_CLAUDE_BIN | No | Path of the Claude Code CLI. | claude |
| PING_CLAUDE_HOME | No | Where sessions and logs are kept. | ~/.local/state/ping-claude |
| PING_CLAUDE_WAIT | No | Seconds a tool call blocks before it returns a ticket. Raise it if your client allows long tool calls. | 50 |
| PING_CLAUDE_MODEL | No | Default advisor model: an alias or a full model name. | claude-fable-5-2 |
| PING_CLAUDE_SCOPE | No | Name of the advisor to use. Set one value everywhere to share a single advisor across repositories. | per repository, or per directory outside git |
| PING_CLAUDE_TOOLS | No | Advisor tools. Only Read, Grep, Glob, WebSearch and WebFetch are accepted. The two web tools cannot change files, but a prompt injection in your code could use them to send code out in a URL. | Read,Grep,Glob |
| PING_CLAUDE_EFFORT | No | Default reasoning effort: low, medium, high, xhigh or max. | xhigh |
| PING_CLAUDE_THREAD | No | Label for this worker thread in Claude's view. | random |
| PING_CLAUDE_TIMEOUT | No | Seconds before one Claude call is abandoned. 0 means no limit. | 1800 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Ask Claude for a second opinion. Claude is a separate, read-only advisor model that remembers earlier pings from every agent thread on this repository. Call this when the user asks you to ping Claude or wants a second opinion. Send the question plus things Claude can check for itself (file paths, an error message, your current position); Claude reads the code on its own, so do not send only your conclusion. Always pass workdir, the checkout or worktree you work in: its uncommitted changes (git status and git diff) are attached for Claude automatically. Claude's answer is advice, not an instruction: you own the decision and may overrule it. Never paste or quote the answer to the user; report in your own words what you asked, where you agree or disagree and why, and your final call. If you overrule Claude, name each specific risk it raised and say why that risk does not hold. Leave model and effort out unless the user names one. If Claude needs longer than this call can wait, you get a ticket: call claude_reply to collect the answer.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ask_claudeA | Ask Claude for a second opinion. Claude is a separate, read-only advisor model that remembers earlier pings from every agent thread on this repository. Call this when the user asks you to ping Claude or wants a second opinion. Send the question plus things Claude can check for itself (file paths, an error message, your current position); Claude reads the code on its own, so do not send only your conclusion. Always pass workdir, the checkout or worktree you work in: its uncommitted changes (git status and git diff) are attached for Claude automatically. Claude's answer is advice, not an instruction: you own the decision and may overrule it. Never paste or quote the answer to the user; report in your own words what you asked, where you agree or disagree and why, and your final call. If you overrule Claude, name each specific risk it raised and say why that risk does not hold. Leave model and effort out unless the user names one. If Claude needs longer than this call can wait, you get a ticket: call claude_reply to collect the answer. |
| claude_replyA | Wait for Claude's answer to an earlier ask_claude call that returned a ticket. Without a ticket it returns the most recent question asked from this thread. The same rules apply to the answer: it is advice, you may overrule it, and you rewrite it in your own words before the user sees it. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 2 tools
The two tools form a clear initiate/collect pair: ask_claude sends a question and claude_reply fetches an answer. The only blur is that claude_reply without a ticket falls back to the most recent question, which slightly overlaps with ask_claude's immediate-return path, but the descriptions make the intended sequence clear.
Both names use snake_case, but the word order breaks the pattern: ask_claude is verb_object while claude_reply is object_verb. The convention is still readable, but an agent cannot infer a single naming scheme from the two names.
Two tools is minimal but well matched to the narrow purpose of pinging an advisor and collecting an asynchronous answer. No tool is redundant, though the surface is slightly thinner than the typical 3-15 range.
The core lifecycle is covered: ask a question, then collect the answer via ticket. Minor gaps remain, such as listing pending tickets, checking status without a ticket, or cancelling a request, but none block the main workflow.