
wirecat
dev.wirecat/wirecat
Local context for AI agents from messengers, mail and notes, in a local store. Set up wcat first.
Documentation
wcat
Local knowledge for your AI agents.
Your notes, documents, mail and messages in one local store — linked to people, tagged, and searchable
with a reference to every source.
Docs · Install · Usage · Discord
wcat is a command-line tool. It reads the notes and documents that files imports from a folder such
as an Obsidian vault, the mail that mail syncs, and the messages that tg-cli and
max-cli keep. Then you, or your AI agent, ask: what do I know
about this person, where did we discuss this, what did I promise. Every answer points back to its source.
Example — search two invented notes in a notes folder:
$ wcat search notes budget Friday
Searched by words only: embeddinggemma is not downloaded — install it with a WireCat CLI that has `models download` (tg, max or wa); they share the model folder
Projects/Harbour budget.md
Review the Harbour budget by Friday.
people/Alice Example.md
Asked for the revised budget by Friday.
Each hit names its file and shows a matching excerpt. The diagnostic line goes to stderr: the local model
is missing, so this search used words only. --json returns structured results for an agent or script.
Quick start
You need Node.js 22.16+ or 24+ (not 23). wcat is tested on Linux; macOS and Windows are not tested yet.
pnpm add -g @wirecat/wirecat @wirecat/files-cli # files brings in notes and documents
wcat-wirecat skill install --for all # the agent skill; this first start also adds `wcat`
files folders add /path/to/notes # your notes folder; Obsidian format when it is a vault
wcat sync # runs files sync, embeds stored mail, links people; run again after edits
wcat search notes "budget"
pnpm keeps one copy of each package for all WireCat tools. npm works too:
npm install -g @wirecat/wirecat @wirecat/files-cli. A global install does not install the agent skill, and pnpm
does not run wcat's install script, so the second line does both. On Windows, open a new terminal if wcat is not
found.
That is all notes need. wcat runs wcat-files sync itself when the files CLI is installed. Then add more context:
- Messages: install tg-cli or max-cli; wcat reads the same local store.
- Search by meaning: needs a local model of about 220 MB, downloaded once with:
wcat models download embeddinggemma. Without it, wcat searches by words. - Mail: install mail, run
mail <profile> session start --address <address>andmail <profile> sync; wcat then searches that mail (wcat search mail 'invoice'). - Stay current:
wcat jobs startrunswcat syncevery five minutes (Linux, systemd). - Your agent:
wcat skill install --for allputs wcat's skill where Claude Code, Codex and Gemini CLI read it;wcat skill showprints it.
Or ask your agent: "Help me install wcat with pnpm add -g @wirecat/wirecat @wirecat/files-cli and
wcat-wirecat skill install --for all, read wcat --help, then help me connect a notes folder I choose with the files CLI."
More: installation · install wcat on wirecat.dev
What can you do?
"What do I need to know about Alice before the call?"
wcat context telegram:"Alice Example" --json
Every identity linked to her, the last message each way, chats in common, linked mail, the notes about her and the open tasks — each with a link to its source.
"Where did we discuss the Harbour budget?"
wcat search all 'harbour budget' --json
Messages, imported mail and notes, ranked together. When you know the kind, search notes,
search mail and search messages read every field.
"What did I promise people this week?"
wcat answers create 'What did I promise this week?' 'promised OR "by Friday"' --all --json
An evidence bundle for your agent: the matching sources with their references, what was searched, and the instruction to cite them. Your agent writes the answer; wcat calls a model only when you ask it to.
More: search · ask for the context you need
Built for AI agents
- Any agent with a terminal — Claude Code, Codex, Gemini CLI and others run
wcatcommands;--jsongives them structured output. - Evidence, not guesses —
wcat answers createhands over sources with references, and says what it could not search. - MCP —
wcat mcp servelets MCP apps such as Claude Desktop or Cursor read your messages, mail and notes, and propose memories, directly recorded facts and outbound actions. Project proposals can also be decided by the agent when allowed; you can require owner decisions instead. Apps on the web or phone use authenticated HTTP MCP through your HTTPS tunnel, with the same saved permissions.
More: connect your AI agent · memories and facts · the MCP server
Why wcat?
- Local first. Everything lives in a local store; search by meaning uses a local model.
- Every answer has a source. Hits carry a reference you or your agent can open: a note, a file page, an email, a message.
- Links, not guesses. Notes link to people and records; identities are never merged because a name matches.
- wcat leaves your sources untouched. wcat never changes a mailbox or a notes folder; Gmail cleanup
is a command of the separate
mailprogram, and notes are the files CLI's. Tags live in the store. - Review and delegation are recorded. Memories and outbound actions an agent suggests wait for your confirmation. Project decisions can be delegated or left to the owner. wcat never sends anything.
Status: early. Context, search over the notes the files CLI stores and the mail the mail CLI stores,
tasks, manual relationships, evidence bundles and local reminders work. A task in a project cannot have a reminder yet.
More: security · security on wirecat.dev
What it reads
- Notes and documents: what the files CLI stored from your folders, with their links and tags.
- Mail: Gmail or another IMAP account, synced by the mail CLI, text and headers only.
- Messages: the tg, max and wa store, with the people linked across messengers and mail.
You add tags, tasks and reminders, organizations and projects.
More: notes on wirecat.dev
Commands by task
| Task | Commands |
|---|---|
| Sync what changed | wcat sync · sync --only notes · sync --only mail · jobs start / stop / status |
| Search | wcat search all · search notes · search mail · search messages |
| Hand evidence to an agent | wcat answers create |
| Know a person | wcat context |
| Prepare and review archived meetings | wcat meetings prepare · search meetings · meetings passage · meetings actions add |
| Organizations and projects | wcat organizations add / list / context · projects add / list / context · projects key-documents add / remove / list · projects meetings list / link |
| Project and topic aliases | wcat vocabulary list / show / check / inspect · vocabulary aliases add / remove · vocabulary create |
| Relationships | wcat relationships add / list / remove / confirm / suggest |
| Labels | wcat tags add · tags remove · tags list |
| Open work | wcat tasks add · tasks list · tasks counts · tasks agenda · tasks show · tasks update · tasks move · tasks assign · tasks history · tasks close · stats tasks show · people list |
| Task dependencies | wcat tasks link / unlink / links · tasks status · tasks list project:HRB ready:true |
| Reminders | wcat reminders add / list / poll / ack / update / cancel |
| Agents | wcat memories … · facts … · actions … · agents list · wcat mcp serve |
Every command takes --help; most take --json. wcat guide lists scenarios — the commands for a common task, in
order — and wcat guide person-brief gathers one person across every WireCat tool.
More: technical docs · wcat on wirecat.dev
Notes
Notes and documents belong to the files CLI: files folders add, files sync, files notes add and the
rest. wcat reads what it stored: wcat search notes, wcat context, wcat tags and wcat tasks see those notes,
and wcat show note:<id> gives a note's text, the first 2000 characters unless --max-chars asks for more. wcat sync runs wcat-files sync
when the files CLI is on PATH.
More: notes on wirecat.dev
Search and evidence
Notes are searched by words and word stems in the query language messages use — phrases, AND/OR/NOT,
tag:, date: — and by meaning once the local model is downloaded (wcat models download embeddinggemma); both are ranked together. search all
reads messages, imported mail, notes and the calendar events gcal stored together, and nothing else. When you know the kind, its own search
reads every field: search mail takes from:, to:, cc:, bcc:, subject: and mailbox:.
wcat search notes '"budget review" AND NOT cancelled' --limit 20
wcat search mail 'from:alice@example.com subject:budget'
wcat show note:NOTE_ID --json
wcat answers create needs a scope (--all, or --source, such as --source telegram:1,notes) and returns evidence by default. To
call a model instead, set WCAT_MODELS_ANALYSIS_PROVIDER and WCAT_MODELS_ANALYSIS_MODEL and pass
--analyze; a remote model also needs --allow-remote.
More: search · searching on wirecat.dev
People, organizations and projects
wcat context answers from the shared store: every identity linked to the person, the last message each
way, recent messages, chats in common, linked mail, their calendar events, the notes about them and the open tasks. Who is who is
decided in messaging — tg personal contacts link <person> email:<address> — and a same name is never enough.
Organizations and projects are yours, not one account's. Relationships (member-of, related-to) are
manual statements; relationships scan only proposes a project's likely chats and people, or shared-domain links,
for you to confirm. A project can hold meetings (projects meetings link), and wcat vocabulary gives projects and
topics reviewed aliases, so one name always means one project.
Before adding a new tag or topic, run wcat vocabulary check <name> --json. Reuse a
canonical label or add an alias if it means the same thing. For a deliberately distinct label,
run wcat vocabulary create <name> --fingerprint <creation_fingerprint> --json; select --kind topic
on both commands when creating a topic. The owner accepts this review; MCP has vocabulary_check
but no tool that creates a label. An intervening label or alias change requires a fresh review.
wcat vocabulary check --json finds likely synonyms already in the catalog. Its complete
flag reports whether the bounded comparison finished; candidates require review and are never
merged automatically. Use --kind tag, --kind topic or --kind project to narrow the review.
wcat organizations add 'Synthetic Studio' --kind company
wcat projects add 'Synthetic Harbour' --organization organization:ORGANIZATION_ID
wcat projects key-documents add PROJECT_ID document:DOCUMENT_ID --reason 'read this first'
wcat projects context PROJECT_ID --json # start project work here: key documents come first
More: people and projects · people on wirecat.dev
The separate mail CLI brings mail in: mail <profile> session start --address me@example.com, then mail <profile> sync, fill the shared store, and wcat searches and shows that mail.
mail keeps text and headers, not attachments. mail can also file, delete and send mail in your mailbox; wcat never
changes it.
wcat search mail 'mailbox:important budget'
wcat messages show <ref>
wcat never opens a mailbox. Looking at a mailbox before a sync (mail <profile> account inspect), a Google Takeout
archive (mail <profile> messages import), rules and cleanup are commands of mail; wcat sync and its timer only
prepare the stored mail for search by meaning. To see how far a mailbox synced, run mail <profile> status.
More: mail · mail on wirecat.dev
Tags, tasks and reminders
Tags are your labels on a note, an email, a message, a chat, a person, an organization, a project, a task,
a meeting, or every note under a folder. They live in the store; files, Gmail labels and mailbox flags are
never changed. A task points at the message or note it came from, or is your own in a
project (--project RES --title …), and can be blocked by another until it is done. wcat tasks agenda
says what needs a look today in the account you name; a notes folder is one (--source notes). Reminders are local:
a caller you choose polls for them, and nothing is delivered to a messenger or mailbox.
wcat tags add follow-up --note note:NOTE_ID
wcat tasks add 'msg:telegram/1/77/42' --type request
wcat reminders add TASK_ID --at-time 2026-10-09T09:00:00+02:00 --account telegram:1
More: tags · tasks and reminders · tag your sources
Agents and MCP
An agent with a terminal runs wcat with --json. An MCP app starts wcat mcp serve on stdin and stdout. Through it
the app can use wcat's commands, including writes, limited by the saved permissions and read lock.
It can open search references with show and messages show through wcat_read:
{ "mcpServers": { "wirecat": { "command": "wcat", "args": ["mcp", "serve"] } } }
An agent's new memories, directly recorded facts and outbound action proposals start as proposed.
Permission keys limit reading, editing and decisions; writes without a saved level use ask, which runs over MCP
without a terminal question. Group, digest and schedule changes need mcp.authority, off by default.
Project proposals have a separate flow: by default only you decide them. Set agent_decisions: true to let an agent
decide them with a recorded reason, creating accepted facts and numbered tasks or confirming a key document. Meeting decisions and annotation restore require explicit permissions. wcat never sends a message
or email. wcat agents list lists each call, its result and time, without its arguments.
More: memories and facts · the MCP server · MCP on wirecat.dev
Keeping it current
wcat sync brings notes (through the files CLI) and mail up to date and reads only what changed. wcat jobs start --every 5m runs
it on a systemd user timer; jobs status shows the next and last run, and while timer runs fail every wcat
command says so in one stderr line. A lock keeps two syncs apart: a
timer run that finds a sync still running skips and exits 0. One failing source does not stop the others.
More: keep your notes current · add a notes folder on wirecat.dev
Configuration
wcat jobs start and wcat config write ~/.config/wcat/config.json for you. Notes folders are set in the files
CLI's own config.
More: configuration · configuration on wirecat.dev
Security
- wcat never opens a mailbox or a notes folder, sends mail or changes one; mail is the
mailCLI's, notes the files CLI's. - What wcat adds — links, tags, tasks, memories — stays in the local store.
- Evidence reaches a model only with
--analyze, and a remote one only with--allow-remote. - Agents propose; only you confirm memories and approve actions.
More: security · security on wirecat.dev
Limits
- Search by meaning embeds at most 600 chunks a run; the next run continues.
wcat sync --only mailreads 200 new messages per account a run by default (--limit) and keeps up to 1,000,000 characters of a body and 200,000 of an attachment's text (mail.max_body_chars,mail.max_attachment_chars).- Searches return at most 100 results;
tags listshows 100 labels unless--limitsays more. - Tags are 1–32 letters a–z, digits or hyphens.
More: search
When something is missing
-
Searched by words only: the local meaning model is not downloaded. Install it through tg, max or wa; they share the model folder. Without it, word search still works (search by meaning).
-
wcat sync --only notesfails withfiles.not-installed: install the files CLI,pnpm add -g @wirecat/files-cli. -
A name is refused: two people share it; use one of the ids it lists.
-
wcat answers createasks for a scope: add--all, or--source. -
An empty search: the store holds nothing that matches — not proof that it never happened. Try the kind's own search, looser words, or sync that source first.
-
A command failed and you want to see why:
wcat runs list status:failed, thenwcat runs show <run-id>. Failed runs are kept for 30 days, runs that worked for 7 (runs).
More: if something is missing · search
Part of WireCat
WireCat is an open-source, local-first context layer for AI agents: tg for Telegram, max for MAX, wa for WhatsApp, zm for archived Zoom recordings, drive for Google Drive and Docs, files for your notes and documents, and wcat over all of them. Their context is searchable locally. Start with your notes and add the sources you need.
Questions and setup help: join the WireCat Discord. Bugs go to this repository's issues.
Technical docs
| Page | What it covers |
|---|---|
| Overview | What wcat does and how it works, in short |
| Installation | Requirements, install, where files go, update |
| Using wcat | A normal day: sync, search, context, review |
| How wcat works | The local store, links, references, review |
| Tags | Labels on any source |
| Search | Search words, search all, answers create |
| People and projects | Person context, linking, organizations, relationships |
Bring mail in with mail, search it in wcat, an agent that proposes tasks from new mail | |
| Tasks and reminders | Tasks, dependencies and local reminders |
| Memories and facts | What agents and you record, and proposed actions |
| The MCP server | Apps without a terminal, the agent log |
| Remote connection | Browser and phone apps, access-code login and revocation |
| Keep your notes current | wcat sync and the timer |
| Recipes | Whole tasks to hand to your agent |
| All commands | Every command and option, generated |
| Configuration | Every setting and variable |
| Troubleshooting | What the screen says, and what to do |
| Security | What is read, written and sent |
| Compared with other tools · web | How does wcat compare with Hindsight, mem0, Graphiti, Cognee, basic-memory, Obsidian and Screenpipe? |
| Changelog | Every release |
The reader guides live on wirecat.dev.
Development
pnpm install
pnpm lint && pnpm typecheck && pnpm test
Pull requests are welcome; examples and tests use invented people only.
More: installation
License
@wirecat/wirecatnpm install @wirecat/wirecat