agent-whisker
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
agent-whisker
English · 简体中文
agent-whisker is a local document library and session store for coding agents. It indexes Markdown, plain text, PDFs, DOCX files, and local agent session transcripts on your machine. Agents and operators query passages, physical PDF pages, and conversation turns through the CLI or a read-only stdio MCP server, with optional read-time passage reranking and page-level field extraction.
Quick start
On Linux, follow the manual setup instead of running the installer commands below.
From a source checkout (Node runs TypeScript directly; keep the checkout in place because the installed launcher points to it):
git clone https://github.com/Tomatamatom1/agent-whisker.git
cd agent-whisker
pnpm install
node packages/cli/src/main.ts install --dry-run
node packages/cli/src/main.ts install --apply allFrom npm (or from a locally packed tarball with npm install -g <tarball>):
npm install -g agent-whisker
agent-whisker install --dry-run
agent-whisker install --apply all
agent-whisker doctorThe current release is 0.2.0, published to npm as agent-whisker. Runtime requires Node >=24.22.1 <25 or >=26.13.0 <27 (with ~/.local/bin on PATH on macOS). Markdown and plain text import directly. PDF text import requires Poppler's pdftotext (qpdf adds PDF bookmarks and page slicing), and DOCX import requires Pandoc >=2.15.
CI runs checks on macOS, Ubuntu, and Windows. agent-whisker install configures launchers, background sync, and agent programs on macOS and Windows; on Linux, the CLI, stdio MCP server, and foreground service run work directly. See Windows setup.
Related MCP server: OmniClip RAG MCP Server
Use cases
Document retrieval. Import runbooks, papers, and standards with
agent-whisker ingest <path>, rank passages withsearch, scan literal strings withgrep -F, and open matched sections or PDF pages withread.Agent session history. Sync and search transcripts across local coding agents (
sessions sync,sessions search), or inspect surrounding turns withsessions read.Read-only MCP retrieval. Expose seven stdio tools (
library_search,library_read,library_catalog,library_grep,session_search,session_read,session_grep) to coding agents, pluslibrary_extractwhen an extraction endpoint is configured.Task verification. Record user expectations, observed command runs (
taskstate run --for <E> -- <command>), and completion claims separately withtaskstateso a reviewer on another model can verify the runs after merge.
Properties
Append-only truth, rebuildable indexes. Under
~/.agent-whisker,truth/holds the append-only journal, versioned document text, and retained sessions. The SQLite FTS5 indexes inderived/can be rebuilt withagent-whisker index repair.Local lexical search. Retrieval uses Node's built-in
node:sqliteandjieba-wasmfor CJK word segmentation. The npm tarball bundlesjieba-wasmandyamlfor offline installation.Session retention and redaction. Synced session entries remain readable after a host program deletes its own log, and known secret-token patterns are redacted on retention.
Versioned sources. Re-ingesting an edited file or passing
--doc <id>writes a new version of that document, andread --version <hash>pins the exact version returned by a search.Read-time passage filtering. Setting
AGENT_WHISKER_RERANK_URLandAGENT_WHISKER_RERANK_MODEL(append#choicefor localllama-servergroup comparison) scoresopen-tier library candidates at read time; onconfident: false,hitsis[]and weak candidates appear only as locators inmore.On-demand field extraction. Setting
AGENT_WHISKER_EXTRACT_URLenablesagent-whisker extractand MCPlibrary_extractover 1–4 selected PDF pages or images (opendocuments for remote endpoints;personalallowed on loopback).
The architecture guide states where each of these mechanisms stops.
How it works
Runtime data flow across a coding agent, ~/.agent-whisker, optional read-time HTTP endpoints, and standalone taskstate. See the architecture guide.
Supported agents
agent-whisker install --apply all sets up every installed program listed in AGENT_WHISKER_AGENTS, registering the MCP server, session collection, context pointers, and taskstate integration (any other MCP client can run agent-whisker mcp over stdio):
Program | Install steps | Hooks, skills, and subagents |
Claude Code |
|
|
Codex |
|
|
|
| System-prompt guidance and start pointer, |
Antigravity |
| Always-on rule, |
DeepSeek Harness |
| Root-session start pointer and |
Optional host integrations route MCP entries through Magpie (install --apply mcp --via magpie) and connect Herdr (install --apply herdr-plugin,herdr-mod; see Herdr guide).
Task verification
taskstate is an append-only task ledger under ~/.local/state/agent-whisker-task injected into main sessions and subagents by the host hooks. It keeps four record types separate: user outcomes (expect), observed command runs (run, capturing exit code, git commit, dirty-tree status, and optional --target file hashes), agent handoffs (claim), and post-merge audit verdicts (conclude and gap).
taskstate open "Fix upload retry cap" # opens T1 and attaches this session
taskstate expect "Cap upload retries at 3" --core # records E1 before implementation
taskstate run --for E1 --expect-fail -- pnpm test # records failing baseline check (red)
# ... implement the fix ...
taskstate run --for E1 -- pnpm test # records passing check on clean commit (green)
taskstate claim "Retry cap enforced; see run log" --for E1
taskstate facts # summarizes runs and verification statusUse taskstate hold to carry an active task across directories or taskstate park to set an umbrella task aside. After changes merge, invoke the review subagent (preferably on a different model than the implementer) to inspect recorded logs and diffs before running taskstate close <T>. See Task state and review.
Examples
Import documents, search passages, and trace decisions across agent sessions:
agent-whisker ingest ./runbooks
agent-whisker search "upload retry budget"
agent-whisker grep -F "UPLOAD_RETRY_LIMIT"
agent-whisker sessions sync
agent-whisker sessions search "upload retry budget" --project --group sessionBrowse tasks, the library, sessions, agent setup and doctor in one terminal screen (an interactive terminal is required; every write asks first and shows the exact command it runs, see Terminal interface):
agent-whisker tui
agent-whisker tui --page sessionsQuery the read-only MCP server (tools/call payloads):
{"name":"library_search","arguments":{"queries":["upload retry budget","UPLOAD_RETRY_LIMIT"]}}{"name":"session_search","arguments":{"queries":["upload retry budget"],"project":true}}Optional read-time filtering (System One: Decide) and 1–4 page extraction (Clairic-Flash):
export AGENT_WHISKER_RERANK_URL='http://127.0.0.1:8788/v1/systemone#choice'
export AGENT_WHISKER_RERANK_MODEL='vllm-d3-lite'
agent-whisker search "upload retry budget"
export AGENT_WHISKER_EXTRACT_URL='http://127.0.0.1:18093/v1/systemone'
agent-whisker extract "$DOC_ID" --pages 1,2 --fields '{"invoice_total":{"type":"number"}}' --source-onlyEvaluation and boundaries
Retrieval benchmarks ran on Apple Silicon with Node 26.13.1 and SQLite FTS5 (tokenizer revision t3), scoring retrieved evidence directly. On LongMemEval-S (500 questions, ~50 sessions per isolated store, 470 questions with ground-truth evidence), strict@5 requires all evidence sessions in the top five results and hit@5 requires at least one.
Benchmark | Read path | Result |
LongMemEval-S | Lexical session search ( | 82.3% |
ADEBENCH | Lexical only ( | 38.7 / 55 Core |
ADEBENCH | Lexical + System One: Decide on read | 42.1 / 55 Core |
ADEBENCH | Lexical + System One: Decide on read | 43.5 / 55 Core |
On ADEBENCH v0.2.17, the external adapter imported fixtures via the CLI and queried agent-whisker mcp over stdio (9,234 bytes for the seven default tools in tools/list; median lookup 5 ms on sessions and 16 ms on documents).
Scope boundaries: MCP is read-only (imports and maintenance run through the CLI or background sync service); importing a separate file with a newer value keeps both documents searchable as written (ADEBENCH updates: 3.3/10); PDF import reads existing text layers up to 256 MiB per PDF (64 MiB for non-PDF sources and extracted text) without automatic OCR.
Packages
Nine workspace packages live under packages/:
Runtime DAG (
cli→{mcp, service, core},{mcp, service}→core).coreowns storage, FTS5 indexing,jieba-wasmtokenization, reranking, and page extraction;mcpserves the read-only stdio server;serviceruns background indexing and session sync;cliprovides theagent-whiskercommand and installer.Host plugins (
claude-plugin,pi-extension,antigravity-plugin,dsh-plugin,herdr-plugin). None depends on a workspace package; each invokesagent-whiskerand standalonetaskstateas subprocesses. See the package topology.
By role
Connecting agent programs: CLI guide, then Agent programs
Importing folders and excluding paths: Ingest, then Core guide
Registering an MCP client manually: MCP guide
Recording checks for post-merge review: Task state and review
Operating and repairing the store: Architecture, then Background service
Contributing changes: Documentation map, Roadmap, and AGENTS.md
Releases
main is the development branch. node scripts/package.ts pack <directory> builds a self-contained npm tarball from tracked files, and v*.*.* release tags publish to npm through GitHub Actions. The first release, 0.1.0 (tag v0.1.0), is on npm as agent-whisker.
License
agent-whisker is licensed under the MIT License. The npm package bundles jieba-wasm (MIT) and yaml (ISC) and retains their upstream license notices.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
- ORANO MCP ServerDeprecatedio.github.infotik
Read-only MCP server exposing a user ORANO library to their own AI agent.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Your personal library, readable by AI agents: durable snapshots, hybrid search, 46 MCP tools.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceLocal-first Markdown vault retrieval for agents. Read-only MCP stdio server exposing search, get, status, and doctor over Obsidian-compatible Markdown with hybrid BM25/vector/wikilink/title retrieval and first-class CJK support.11MIT
- AlicenseNot gradedqualityCmaintenanceRead-only local-first MCP server enabling AI assistants to semantically search private Markdown, PDF, and Tika-backed knowledge bases without data upload.44MIT
- FlicenseNot gradedqualityDmaintenanceA fully local MCP server that imports Markdown, PDF, and web pages into a running knowledge base, providing hybrid search and document retrieval via authenticated Streamable HTTP for Codex and DeepSeek agents.-
- FlicenseNot gradedqualityDmaintenanceLocal MCP server that extracts text and structure from PDF, DOCX, PPTX, SVG, and PNG files, along with directory and metadata listing, for read-only document analysis by LLM hosts.-