wcat: How wcat works
Where wcat keeps your text, what an import changes, how links and references work.
Know why wcat answers the way it does before you point it at something private. Your notes, mail and messages sit in one file on your computer, an import never changes the originals, and an agent proposes while you decide.
Each part covers one rule: where the text is kept, what an import does, how links, people and references work, and what an agent may do.
On this page:
- The local store
- What an import does
- Folders on more than one computer
- Links between notes and people
- One person, several accounts
- References
- Search by words and by meaning
- Agent authorship and review
- What can leave your computer
The local store
wcat keeps everything in one file on your computer, the local store (wirecat.db). tg, max and wa
save your Telegram, MAX and WhatsApp messages in the same file, so wcat can answer about messages, mail and
notes together.
| Where it comes from | Who puts it in the local store |
|---|---|
| Telegram, MAX and WhatsApp messages | tg, max and wa, when they download your chats |
The mail CLI, with mail <profile> sync | |
| Files in your note folders | wcat sync --only notes or wcat sync |
| Your own notes, tags, tasks, memories and facts | wcat, when you or your agent add them |
Imports leave the originals unchanged: your files stay as they are. The local store holds a copy of their text.
wcat never opens a mailbox: reading it, and cleaning it up, are commands of the separate mail program.
What an import does
An import reads your note folders and brings the local store up to date.
- Only what changed is read. A file that has the same size and change time as last time is skipped. A second import is quick.
- Edits keep history. When you edit a note file, the local store keeps the old text as an earlier version.
- Moves keep everything. A file moved inside its folder keeps its links and tags.
- Deletions are respected. When you delete a file, its text leaves the local store on the next import; a
deleted email leaves it on the next
mail <profile> sync. - A safety stop. If an import finds that most of a folder is suddenly missing (for example, a disk that is not connected), it deletes nothing and tells you.
- Search by meaning is prepared. If the search model is on your computer, the import also
prepares the new text for search by meaning, the mail
mailstored included.--no-embedskips this step.
Two wcat imports never run at the same time, and one source that fails does not stop the others.
An import can be stopped at any time with Ctrl-C or kill <pid> (SIGTERM). It stops at the next folder, keeps what it read, and the next wcat sync continues from there. --timeout 10m
stops it the same way after ten minutes; with no --timeout it has no time limit.
Folders on more than one computer
When you add a folder, wcat gives it an ID (a short number) in the local store. Notes and links use
that ID, not the folder's path. If you use the same notes on another computer, files folders update
connects the ID to the folder's path there. Because the ID stays the same, the notes keep their
links and tags.
Links between notes and people
When wcat imports a note, it also reads the links in it:
- A link to another note in the folder becomes a link to that note.
- A link to a name, such as
[[Kai Sample]]in Obsidian, becomes a link to that person as soon as someone with that name, nickname or username is in the local store. If two people have the same name, the link waits until you choose. - A link written as a reference, such as
[Kai](person:7)ormsg:telegram/1/77/42, links straight to that person or message.
A name in ordinary text is not a link. wcat does not guess who a note is about from the words in it.
One person, several accounts
The same person can have a Telegram account, a MAX account and an email address. wcat treats them as one person
when they share an exact email address no third person has, or a phone number nobody else has that one of them has
in Telegram, MAX or WhatsApp, or after you link them with
wcat people link, tg personal contacts link or max personal contacts link. A matching name, username or email
domain is never enough. An agent's link merges at once only on strong evidence wcat finds itself, the same mobile
number or personal address from two sources. A weaker signal, or an agent's guess, waits for you as a match in
wcat people review.
Every merge can be undone (how).
References
Every result names its source with a reference. You can copy a reference into another command to tag it, write a note about it or use it as evidence.
| Reference | What it points to |
|---|---|
note:12 | A note you wrote in wcat |
document:3 | A file from one of your note folders |
msg:telegram/1/77/42 | One message: the messenger, the account, the chat and the message |
chat:…, contact:… | A chat or a contact in one account |
person:… | A person whose accounts you linked |
organization:…, project:…, task:… | Your organizations, projects and tasks |
memory:…, fact:… | A memory or a fact |
meeting:… | A meeting saved in the local store |
A message reference includes the account, so the same message number in another account is a different message.
Search by words and by meaning
wcat always searches by words: it finds notes, mail and messages that contain every word you typed,
including other forms of the word. With the search model on your computer, it also searches by
meaning, so holiday can find a note about a vacation. The model runs on your computer; your text
is not sent anywhere for this. Each result says how it was found.
An empty result means only that the local store has nothing that matches. It does not prove that something never happened: the chat may not be downloaded, or the folder may not be imported.
Agent authorship and review
Your agent can add three kinds of records:
- a memory: something concluded, such as a preference;
- a fact: something that happened, such as a decision;
- a proposed action: something to do, such as a reply. It always waits until you approve or reject it. Approving it makes it a task for you. wcat never sends a message or an email.
Memories and directly recorded facts added through the MCP server start as proposed.
MCP command tools can confirm memories, accept facts or approve actions when their saved permissions allow it.
Each command that reaches wcat’s executor is written to the agent log (wcat agents list), without the details it sent.
Project proposals have a separate flow. By default only you decide them; reading and proposing still work.
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. An agent decides meeting findings
only when you set meetings.actions.confirm to ask or allow.
What an agent writes, a fact, memory or relationship, starts as proposed; yours is confirmed or accepted at once.
Proposed actions always wait for approval. The wcat command tells who runs it:
- An MCP call is the agent's.
- A run in an agent's terminal is the agent's. wcat tells it by
AI_AGENTorCLAUDECODE, the variables agents such as Claude Code set. - With neither, the run is yours only when its input and output are a terminal. A run with no terminal and no agent
named is recorded as the unattended bot
unattended, which proposes and never decides.
Two flags make a run yours. In an agent's terminal, --as-owner does it only after you answer y at the terminal; under
--json or without a terminal it never asks and refuses with exit 7. WireCat Desktop passes --from-app on every
decision you make in the app, and the run is then yours with no question. wcat takes the app at its word and checks
nothing (see Security).
Every confirm, reject and remove path, CLI and MCP alike, checks who decides. An agent decides only with
--reason, never a proposal of its own bot, never a rule's or an unconfirmed link's, and only when
agent_decisions is true. The y/N question is a speed bump, not a
lock: an agent that drives a terminal of its own can still answer it.
What can leave your computer
Sending sources to an AI provider is opt-in. wcat answers create prepares sources for your own agent by default. It sends
text to an AI provider only when you set one up and add --analyze, and to a remote provider only
with --allow-remote as well. What your agent does with the text it reads is up to that agent.
The daily update check can also make a network request; Security
explains what it sends and how to turn it off.