Use the wcat CLI with your AI agent
Import changes, find something, prepare for a conversation and review what your agent suggested.
Get through a working day with your agent doing the lookups: bring in what changed, find something, get ready for a conversation and save what you learned. You ask your agent, and it runs the commands. The commands are here so you can check what it does, and each step links to the page with the details.
On this page:
- Bring in what changed
- Find something
- See your calendar and calls
- Meetings and calls in one list
- Every document
- Prepare for a conversation
- Save what you learned
- Review what your agent suggested
- Keep track of money
- Track deals and leads
- Answers for scripts and agents
- Choosing an account
Bring in what changed
wcat reads your note folders when you ask, not all the time. One command brings in everything that changed since the last run:
wcat syncOnly changed files are read, so a second run is quick. On Linux, wcat jobs start runs it
for you every few minutes (keep your notes current). Telegram, MAX and WhatsApp messages come in
through tg, max and wa, not through wcat.
Find something
Use wcat CLI to find what I wrote or received about the venue for the Harbour project.
Show the matching text and the source of each result.Your agent searches your notes, mail and messages together and shows where each result comes from. When you know where something is, search only there:
wcat search all 'venue' # messages, mail, notes, events, CRM and meetings together
wcat search notes 'venue' # notes only
wcat search mail 'from:kai invoice' # mail onlySearch explains the search words and how to give your agent the sources.
See your calendar and calls
wcat events list lists the events of every calendar account in the store, latest first: the calendars gcal stored
and the calls imported from a phone with wcat records import. It says which accounts it read. Without a time it
shows the last 30 days and the next 7.
wcat events list # every account, the last 30 days and the next 7
wcat events list event_type:call # phone calls only
wcat events list account:phone:pixel starts_at>=2026-10-01
wcat events show event:42 # one event, and the accounts and calendars that hold itMeetings and calls in one list
wcat meetings list puts calendar events, meetings from Zoom or Meet and imported phone calls in one list, one row per
real meeting: a calendar event and its Zoom meeting are one row when the store linked them, or when they share a room
and their times overlap. Each row says where it came from, who took part (with their person: refs), its join links,
and whether a recording, transcript or summary is stored. A row is listed when it overlaps the window; without one, the
last 30 days and the next 7; started_at:[* TO *] reads them all. wcat meetings show adds the transcript lines with
their times, the summaries, the findings waiting for you and the calendar's text.
wcat meetings list # every account, latest first
wcat meetings list 'started_at:[2026-11-01 TO 2026-12-01}' kind:call
wcat meetings list 'started_at:[2026-11-09T00:00:00+01:00 TO 2026-11-16T00:00:00+01:00}' --order start
wcat meetings list 'started_at:[* TO *]' --page 3 # every row, no window
wcat meetings list has_transcript:true person:"person:12"
wcat meetings show event:42 --limit 100 # or meeting:<account>/<id>Every document
wcat documents list lists the documents of every account: Drive, notes folders, sources you added and imports,
newest change first, with their source, folder, kind and link. A word searches their text as wcat search notes
does. wcat documents tree gives each account's folders with how many documents each holds, and
wcat documents show a part of one document's text with its tags, people and meetings.
wcat documents list # every account, newest first
wcat documents list budget kind:pdf source:google-drive
wcat documents list 'folder:"Projects/Acme"' --page 2
wcat documents tree --depth 2
wcat documents show document:42 --cursor 20000Prepare for a conversation
Use wcat CLI to show what I know about Kai Sample on Telegram: recent messages, mail and my notes.
Summarise what is still open between us.wcat context telegram:"Kai Sample" gathers the person's recent messages, mail and the notes linked
to them, each with its source. See People and projects.
Save what you learned
files notes add 'Prefers calls in the morning' --subject telegram:'Kai Sample'
wcat tags add follow-up --note note:NOTE_ID
wcat tasks add --project HRB --title 'Book the venue'A note keeps your own words about a person, a message or a project (notes). A tag is a label that helps you find things again (tags). A task is something to do (tasks).
Review what your agent suggested
An agent can propose an action, such as a reply. An app connected through MCP can also save memories and facts. These wait for you:
Use wcat CLI to show the memories, facts and actions waiting for my review, with their evidence.
Do not confirm or approve anything; I will decide.Memories and facts explains how to confirm or reject them. Approving an action makes
it a task for you; wcat never sends anything. A memory or fact your agent adds with the wcat command
waits for you too: wcat records the agent as its author when AI_AGENT or CLAUDECODE is set. One you
add yourself is confirmed (memory) or accepted (fact) at once.
Project proposals use a separate review 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. An agent decides meeting
findings only when you set meetings.actions.confirm to ask or allow.
Keep track of money
Invoices and payments are rows with an amount, a currency and a party, not facts. Amounts are decimals such as
50000.00, and totals stay per currency: wcat never converts them.
wcat invoices add 50000.00 RUB Bed rental, November --kind receivable --organization organization:3 --project HRB
wcat payments add 25000.00 RUB --kind in --organization organization:3 --occurred-time 2026-11-01 --project HRB
wcat payments allocate payment:9 invoice:4 25000.00
wcat projects status HRBOne you add yourself is confirmed at once. One your agent adds waits in wcat review list kind:invoice,payment, and only
you confirm money. A payment the agent reads in a chat becomes a payment or an invoice when you confirm the finding.
projects status shows what was billed, paid and is still owed, from confirmed rows only.
A payment allocated to the wrong invoice, or with the wrong amount, is set right with
wcat payments unlink payment:9 invoice:4, which takes that allocation back, and payments allocate, which makes
the right one. A confirmed payment's split is yours to correct: an agent's run is refused.
A source's export, such as a payment sheet, comes in as a records envelope (JSON, or JSONL with a header line).
wcat records check payments.jsonl --account rentals says what an import would do and writes nothing;
wcat records import writes it. The same file twice changes nothing, and its invoices and payments wait for you in
wcat review.
When the file names a party by its own id, such as organization:client, its invoices and payments wait until you
say which of your entries that is. wcat records list waiting:true --account sheet:rentals shows what waits, and
wcat records link organization:client organization:3 --account sheet:rentals links it; only you can.
Products, contracts, subscriptions, bank accounts and transactions, refunds, and finding all of it again with
search all --only business are on Business data.
Track deals and leads
A deal is what you hope to sell: a title, the client, the expected amount and the stage it is in. A lead is a first
contact, before it is a deal. Each stands in a pipeline, a list of stages in order; its status (open, won or lost) is
kept apart from the stage. wcat starts with one lead pipeline, Leads (new, contacted, qualified, won, lost).
wcat pipelines add Sales Call Quote Contract won lost
wcat deals add 'Site for the clinic' Call 500000.00 RUB --organization organization:3 --project HRB
wcat deals move deal:5 Quote
wcat deals close deal:5 won
wcat leads add 'Call from the site'
wcat pipelines show SalesYour agent writes deals, leads and pipelines as you do, at once. To limit what it may do over MCP, set the
permissions keys, such as "deals": "readonly". Two CRM accounts may each have a
pipeline named Sales: name one by its reference, pipeline:3. pipelines show counts, per stage, how many deals
reached it and the share that went on to the next. projects status lists up to five open deals of the project.
wcat deals context deal:5 gives one deal whole: how its stage moved, the client, its people with their roles and
standing, the owner, the project, the invoices and payments of its project and its client, each saying how it was
reached, the messages, mail and meetings of its people while it was open, and its open tasks. Those messages share
people with the deal, nothing links them, so they are marked proposed. A stage named Won is not a payment: money is
what the invoices and payments say. --brief is the short form for an agent; wcat leads context is the same for a
lead. wcat deals update deal:5 --project HRB sets the project a deal belongs to, a CRM's copy too: the sync never
changes it.
A deal copied from a CRM account (b24 <profile> sync) and the people on it are reported: the CRM says so, and you
did not confirm it. Put the CRM account in a group (wcat groups add work bitrix24:<portal>), and a run of another group
reads none of its deals, people or relationships.
In --json, each row of deals list, leads list and pipelines list copied from a CRM has writes_with: the CLI
that changes it on the CRM (tool, such as b24), the row's account, and the profile to run it as. The profile is
set only when exactly one profile of that CLI has run on the account; otherwise it is null, profiles lists the
candidates and why says what to choose. In a group, a profile on an account outside the group is never named. Your
own rows have "writes_with": null: wcat changes them itself.
Base stages
Each CRM and each of your pipelines names its stages its own way. Base stages are one list of your own for deals and one for leads: the columns a board shows across every pipeline. Every other stage maps onto one of them. wcat suggests the mapping, and you confirm it.
wcat stages show deal
wcat stages list confirmed:false
wcat stages set stage:41 stage:3
wcat stages confirm --pipeline pipeline:3
wcat deals move deal:5 stage:3stages show deal makes the deal list on first use, in your first language (owner_languages; Russian while it is
unset). The lead list is wcat's own Leads pipeline as it is: New, Contacted, Qualified, Won, Lost. stages show
gives each column with its open deals or leads and mapped stages, and what is unsorted: stages not mapped yet or only
suggested. stages create, rename, move and
remove edit the list; each list keeps at least one open, one won and one lost stage. stages list shows every
other stage with its base stage and confirmed. stages set maps one stage. stages confirm --all confirms every
suggestion. Only you edit the list and confirm. Your agent's stages set stays a suggestion until you confirm it.
deals move and leads move take a base stage's stage:<id>. They move your own deal to the one stage of its
pipeline that is mapped there. When several are, the answer is stage.choice-required with candidates: move to one
of them by its stage:<id>. When none is, it is stage.unmapped. A CRM's copy moves on its CRM, with the CLI in its
writes_with. In --json, a row of deals list and leads list has base_stage, which stays null until you
confirm its mapping. In a group, stages counts and lists only the group's pipelines and your own.
Answers for scripts and agents
Add --json to most commands to get an answer a program can read. The text answer is for people;
agents and scripts should ask for JSON.
Every result names its source with a reference, such as note:12, document:3 or
msg:telegram/1/77/42. You can pass a reference to other commands: to tag it, write a note about
it or use it as evidence. How wcat works explains each kind.
Every JSON answer has the same shape. One thing is under item; a list is under items, with page
saying whether more follow (page.has_more). meta names the run and the accounts read, and missing, when
present, says what the answer could not cover and why. --json=a,b keeps only those fields of the item or of
each item in the list. Dotted paths traverse nested objects and arrays. Use
--json=ref,excerpt for compact wcat search all hits. Paths are relative to the answer payload;
pagination, coverage, next steps, missing data and execution metadata remain. Field selection
reduces printed output, not the work scanned.
Where a search answer keeps its references:
| Command | Reference of each result |
|---|---|
wcat search messages, wcat search mail | items[].ref, as in tg personal search messages |
wcat search all | items[].ref, with kind; next lists the open tasks that point at a result (tasks list source:"<ref>") |
wcat search notes | items[].ref |
content: narrows a search to the text of files, transcript: to voice transcripts and filename: to file
names. Compare like with like: wcat search messages 'content:invoice' with
tg personal search messages 'content:invoice', a plain word with a plain word.
Choosing an account
When you have several Telegram, MAX or mail accounts, wcat does not choose one for you. Name accounts
with --source: one account as telegram:1 or email:work, every account of a messenger as telegram,
every account of a kind as mail, or a saved group as group:work; separate several with commas. A list
reads every account it names and says which. A search with no account searches all of them and says so;
so do wcat tasks list and wcat reminders list (a project's tasks need project:<key>). A notes folder is an account too: notes:<number>, with the
number search results give as folder_id.
A command that changes something, such as adding a task or a reminder, acts as one account. Name it with
--account as provider and account together: --account telegram:1, --account email:work. Without it,
wcat tells you which accounts exist.
Reads use --source; account-scoped writes use --account provider:account. Retired selection flags are refused.
Groups of accounts
wcat reads every account by default: that is all, and wcat all … says it out loud. A group is an opt-in list of
accounts you save, mostly to keep an agent to work data. Put an account in one with wcat groups add work bitrix24:acme, and read only that group by naming it first: wcat work search all "renewal", wcat work context person:5. WCAT_GROUP=work does the same for every command. In a group, a read takes only the group's accounts; an
explicit --source narrows inside it, and an account outside it is refused, as is a write's --account. A command
that reads one kind, such as search mail, takes the group's accounts of that kind. What you made yourself (your
notes, projects, tasks, invoices, memories and facts) belongs to no account, so every group shows it.
wcat groups list shows each saved group, then all, with its accounts, every app's profile names for each
(tg work …, b24 work …), and the other groups that hold an account too: an account may be in several, and the list
names those duplicates. A profile named like a group is only a suggestion; it never puts an account in a group.
personal is a group like any other, empty until you save it. --source personal is not that group: it means your
own messenger accounts, not bots.
wcat groups remove work telegram:102 takes an account out; all still reads it. wcat groups move telegram:102 personal work moves it in one write: the account, then the group it leaves, then the group it joins. Without a lock
a group is a convenience, not a boundary: references (msg:…, deal:5) are not checked, and a run without the word
reads every account. To pin a process to one group, see the MCP lock.
Each account is personal or work: work views and meeting preparation read only work accounts, and every account is
personal until you say otherwise, except one a CRM CLI such as b24 adds, which starts as work. wcat groups update bitrix24:acme --scope work moves one, with what search copied of its old scope; groups list shows each account's
scope. --chat 7 --scope work pins one chat of the account, and --scope account lets that chat follow its account
again. Only you change a scope: an agent over MCP does not see the command.