Log README

The full upstream README, mirrored for reference. Install config, tool schemas, adoption signals and our own overview live on the Log listing page.

log: run your social accounts from the command line or your AI agent

Introducing log by ListeningKit, in collaboration with Hermes Agent: Hermes asks who is waiting for a reply, log reads every inbox, and the answer lands on Discord in your own voice
Introducing log, in collaboration with Hermes Agent. Watch the launch video with sound on X →

Your agent answers your DMs in your voice. Nothing sends until you approve it.

Read and reply to the people you already talk to on X, Discord, Slack, Instagram, Reddit and LinkedIn
from your terminal, or from any agent: Claude Code, Codex, Cursor, Hermes, OpenCode, ChatGPT, Claude and Grok.

See every play, step by step →

npm: @listeningkit/log License: MIT MCP server: logMcp Docs: log.listeningkit.com

Terminal
curl -fsSL https://log.listeningkit.com/install.sh | sh
claude mcp add log -- logMcp

You stay in control

ControlHow it works
You approve every sendReplies are set to ask by default: the agent shows you the draft and waits for your yes. Every command that changes something is a dry run until --live.
Your voice, checkedEach draft is scored against how you really write to that person before it can go out (docs/voice).
Hard daily limitsEach account has its own read and write budget (500 requests and 240 writes a day on X), quiet hours, and pacing. A refusal from the platform stops the run and nothing is retried.
One session per accountYour own accounts, signed in by you, one connection each, the way the platform's own app works.
Messages in are checked tooPrompt injection, token stealers and encoded scripts are held before your agent reads them.
Everything is recordedEvery read, draft, approval and send is written to a local database (~/.logCli/log.db) you can query.
Your agent never sees your sign-insYou type them once in a terminal; agents are refused from those commands, no tool returns them, and log makes each request itself.
Your data stays on your machineSessions and messages live in ~/.logCli. Hosted services see only what their job needs, never a sign-in: what leaves your machine.

What log will not do: send anything you didn't approve, collect or sell other people's data, or run accounts that aren't yours. More: docs/trust.md.

Asking an AI whether to install it? Ask Claude, ChatGPT or Perplexity with the questions already written, or point your agent at docs/trust.md first: every control with how to check it.

For reviewers: every send command is a dry run by default. log twitter dm --account <name> --userId <id> --text "hi" prints what would be sent and stops; log voice --to <handle> --text "<draft>" shows the voice gate's score and its reasons. bun test runs the suite.

X, from your agent

"Read my X DMs and tell me who's waiting on me."

The old inbox and the encrypted X Chat, read as one.

bash
log twitter dms --account <name> --waiting

Discord, Slack and Instagram, live

Every new message is pushed to your agent the moment it lands.

bash
log discord read --account <name> --channel "<chat>"
log slack read --account <name> --channel "<chat>"
log instagram dms --account <name>

Answers in your own voice

Every draft is checked against how you really write to that person before it goes.

bash
log voice --to <handle> --text "<draft>"

TikTok video research

Search videos or a hashtag in the account's own browser, and export each video's full details with the bundled extractor.

bash
log tiktok search --account <name> --query "#hashtag"
log tiktok scrape --account <name> --query "#hashtag" --output videos.json

📖 Full documentation →

log lets you, or your AI agent, read and reply to your own social accounts. It reads DMs, group chats, replies and notifications, drafts answers in your voice, and once you approve them sends messages, replies, likes, follows, reactions and voice notes. It's one command, log, and one MCP server, logMcp, and it runs on your own machine with your own accounts. Nothing acts until you say so: every command that changes something is a dry run until you add --live. It's free and open source.

Quick start

Install

Terminal
curl -fsSL https://log.listeningkit.com/install.sh | sh                        # macOS and Linux
irm https://log.listeningkit.com/install.ps1 | iex                             # Windows (PowerShell)
curl -fsSL https://log.listeningkit.com/install.sh | sh -s -- --skills all     # also every play as a skill

This installs the log and logMcp commands, and Python with everything the platform engines need. It writes your settings to ~/.logCli/.env, then opens log launch --setup to pick your platforms and sign them in. Already have Bun? bun add -g @listeningkit/log installs just the commands. Already have log? --skills all --skillsOnly adds only the skills; on Windows, set $env:LOG_SKILLS = "all" before the PowerShell line. More: docs/install.md.

Connect your accounts

Sign each of your own accounts in once. X, LinkedIn and Slack take your existing session, typed into a masked prompt; Discord, Reddit and Instagram open a window where you sign in by hand; Facebook has its own connect step. Every step, per platform: docs/accounts.md.

Then check it with log <platform> session check --account <name>, which sends nothing. The answer is loggedIn, loggedOut or restricted.

Connect your agent

AgentHow to connect
Claude Codeclaude mcp add log -- logMcp
Hermeshermes plugins pack install https://log.listeningkit.com/hermes-pack.yaml: the log plugin for Hermes, tools, skills, dashboard tab and router hook in one install
Codex, Cursor, OpenCode and other MCP clientsadd logMcp as a stdio MCP server: docs/mcp.md
Claude, ChatGPT and Grok, or an agent on a serverthe hosted server, https://mcp.listeningkit.com/mcp, over OAuth

An agent can also do the setup itself in one pass: log setup (MCP: setup) wires the harnesses, sets local account defaults and names the sign-ins only you can finish.

Then ask in plain words: "read my X DMs and tell me who's waiting on me". log's router names the play for that request, and the agent follows its steps. Every harness, and what each one can do: Works in every harness.

Platforms

PlatformWhat log doesHow it talks to the platform
XDMs and X Chat, notifications, followers, replies, posts, likes, follows, lists, reactions, voice notes, queuesits own API client, one session per account, no browser
DiscordDMs, groups and server channels, live; sends, reactions, voice notes, filesits own API client and the live gateway, no browser
SlackDMs and group DMs in every workspace, live; sends, reactions, voice notesits own API client and the live socket, no browser
InstagramDM threads, live; sends, photos, reactions, voice notesits own API client and the realtime connection, no browser
Reddithome feed, subreddits, posts and their comments; posts, replies, votesits own API client, no browser
LinkedIninbox and messages, posts, likes, reposts, connection requests and suggestionsits own API client, no browser
TikTokpost stats, posting and deleting, video and hashtag search, full video exportsits own API client; search in the account's own browser, exports through the bundled extractor
Facebooklegacy: Marketplace listings and group listening are retired (#339)the account's own browser

Highlights

  • Start from a play. Each use case is a workflow written step by step: what to run, and what tells you each step worked. With --skills all, your agent picks the right one from what you say.
  • Your voice, checked. A draft is read against how you really write to that person, grounded in your own past replies, and scored once against a bar set on your own messages. It's also checked for hidden characters, and for an agent copying the other person's style instead of yours (#238).
  • AI writing caught, trained on you. A small detector learns the difference between your messages and drafts that frontier models wrote for your chats, with a separate bar for short, medium and long messages. It runs on your machine in about 6 ms; log voice train builds it (#245).
  • Who each person is, and where they are. Every chat is labelled with who the person is (community, lead, client, partner, friend, bot) and where they are in your sales cycle. A small model labels them on your CPU, and asks a larger model only when it's unsure. The same person on different platforms is suggested as one, and you approve each link (#242, #249).
  • What actually gets replies. log inbox outcomes compares the reply rate of messages log sent with yours, matched by person and stage, and shows which plays work (#246).
  • One session per account. Each account keeps one connection open, the way the platform's own app does, never a new one per command.
  • Live inbox. New messages are pushed into your agent's context as they arrive, along with what you sent by hand outside log, and two agents never answer the same chat (#348).
  • Daily limits. Every account has its own daily limits, pacing and quiet hours. A refusal from the platform stops the run, and nothing is retried.
  • A judge on every message in. The voice gate checks what goes out; the judge checks what comes in. Token stealers, encoded scripts and prompt injection are held before your agent reads them, and a small local model marks what the rules miss (#189, #190).
  • Turn aware. On Discord and Slack a multi-line reply waits while they are typing, and holds the rest if they write back or keep typing (#199, #202).
  • Search knows where it was said. Every hit names a DM, a group or a server channel, and you can search only one of them (#198).
  • It watches its own tools. Tool health shows which tools are used, which fail and which guides went stale, and suggests the fix (#203).
  • Your machine, your data. Accounts and sessions stay in ~/.logCli, in the local account store (localAccounts.json). Its cookies, passwords and PINs are taken out of that file and kept encrypted in log.db, with the key held by your OS keyring (encrypted account store).

Works in every harness

A harness is the agent app you talk to log through. log is the same MCP server in all of them, with the same tools under the same names. What changes is how log's guidance reaches the model and how new messages reach it:

HarnessConnectsHow it's told what to doHow new messages reach itViews and sign-in
Claude Codelocal or hostedits prompt hook runs the router on every prompthooks on every prompt and after every tool calltext; sign-in in the window on your screen
Codexlocal or hostedits prompt hookhooks on every prompt and around tool callstext
Hermeslocal or hostedthe log plugin's pre_llm_call, before every model callthe same hook, before every model calltext, plus a log tab in the Hermes dashboard
OpenCodelocalits prompt hookits plugin's hookstext
Antigravitylocalits prompt hookits hookstext
Cursorlocal or hostedgetGuide({ ask }) (Cursor's prompt hook can't add context)sessionStart and postToolUse hooksMCP Apps: report and browserView inline
Claude (web, desktop, mobile)hostedgetGuide({ ask })when it asksMCP Apps inline
ChatGPThostedgetGuide({ ask })when it asksMCP Apps inline
Grok (xAI API)hostedgetGuide({ ask })when it askstext

The full table, written from the code (HARNESSES in src/agentHooks/harness/types.ts), with each hook's text limit and where its hooks live: docs/harnesses.

The log plugin for Hermes

Hermes runs all day, on your machine or a server, and talks to you on Telegram, Slack and its desktop app. The log plugin gives it log's tools, every play as a skill, and a log tab in its dashboard. Hermes reads freely, and every send, reply or post asks you first.

bash
hermes plugins pack install https://log.listeningkit.com/hermes-pack.yaml

One command installs and enables both halves: log (log's tools, every play as a skill, the dashboard's log tab) and logHooks (the router hook). Hermes shows what the pack installs, pinned to an exact commit, and asks once. Install log itself first; the hook finds it on its own.

Hermes asks who is waiting for a reply, and log finds the X conversations waiting on youA draft in your own voice, checked before anything is sent
Who's waiting on you, read from every inbox.A draft in your own voice, checked before it's sent.
log's platform cards: Slack, Instagram and more, each in your own sessionThe log tab in the Hermes dashboard: who is waiting, every account's session and today's sends
Every platform you're on, each in your own session.The log tab: who's waiting, every account's session, today's sends against its limit.

One capability, every surface

Each thing log can do has one name and works the same way from the CLI, the MCP server and the log console, on every platform. The platform is something you pass in, never a default:

  • Shared tools. log chats list, log messages read|send|react|watch and their MCP tools (chatsList, messagesRead, messagesSendLive) work on X, Discord, Slack and Instagram, the platform taken from the account.
  • One sign-in. log sessions signIn (MCP: sessionsSignIn) opens the account's own browser, you sign in on the platform's login screen, and the session is saved only once the platform shows you signed in. A signed-out browser never overwrites a good session. log sessions check answers for every account at once.
  • The log console. log console is the same operations as a terminal console, or as a web console on your own machine with --web. Every console screen has a matching command.
  • Views. report draws a view from log's own data, and browserView shows an account's live browser in the chat, where the host draws MCP Apps. Elsewhere both come back as text.
  • Machines, not scripts. Anything that runs over time (sign-in, a session check, each account's watcher, a send, a queue run) is a state machine, so a crash leaves no half-done state behind.

How it works

log keeps everything it needs to answer you on your own machine, in one local database, ~/.logCli/log.db. The platforms push what happens to it as it happens. So when you or your agent asks "what did they say?", log reads its own database in about a millisecond instead of asking the platform again, which takes seconds.

The whole picture

mermaid
flowchart LR
  subgraph platforms["The platforms"]
    X["X and X Chat"]
    D["Discord"]
    S["Slack"]
    I["Instagram"]
  end
  subgraph machine["Your machine"]
    H["One session per account<br/>like the platform's own app"]
    W["One live watcher per account<br/>holds the platform's push channel"]
    DB[("log.db<br/>every event, once")]
    V["Worked out from the events<br/>chats, messages, people, search,<br/>with media text and transcripts beside them"]
    J["The judge<br/>reads what other people wrote"]
    K["Hooks and the push loop<br/>put new messages in front of the agent"]
    P["logMcp<br/>reload proxy"]
    M["log MCP server"]
    G["Play gate, voice gate<br/>and the chat claim"]
  end
  subgraph agents["Your agent"]
    C["Claude Code, Codex, Cursor,<br/>Hermes, OpenCode, ChatGPT..."]
  end
  X & D & S & I -- "push: new message, reaction, media" --> W
  W -- "append once, by its id" --> DB
  W -- "after a gap, catch up through the session" --> H
  DB --> V
  DB -- "new since this session last looked" --> J --> K --> C
  C -- "tool call" --> P --> M
  M -- "reads in about 1 ms" --> V
  M -- "send, react, voice note" --> G --> H --> X & D & S & I

In plain words:

  1. One session per account. Each account keeps one open session, the same way the platform's own app does. log never opens a new one for each command.
  2. One watcher per account. It holds the platform's own push channel (X Chat's socket, Discord's gateway, Slack's socket, Instagram's realtime connection). Everything that arrives is written to log.db once, as an event.
  3. Everything else is worked out from those events. That covers the chats, who said what, what a picture or video shows, what a voice note said, and the search index. The chats and messages can be rebuilt from the events at any time.
  4. Your agent asks the database, not the platform. A tool call reads the database. The platform is only called to send something, or to catch up after a gap.
  5. Hooks push new things to your agent. When someone writes, the judge reads it first, and then the agent sees it in its context straight away, without asking.
  6. Every send passes the gates. The play gate, the voice gate and the chat claim come before anything goes out through the account's session.

How your agent connects, and why you never restart it

mermaid
sequenceDiagram
  participant C as Your agent, e.g. Claude Code
  participant P as logMcp, the reload proxy
  participant A as log server, old code
  participant B as log server, new code
  C->>P: initialize, then tool calls over stdio
  P->>A: passes every call through
  Note over P: log's code changes on disk
  P->>P: waits until no call is in flight, holding new calls
  P->>B: starts the new server and replays initialize
  B-->>P: ready within 30 s
  alt the old server is running a job
    Note over A: keeps running it to its end, then stops
  else nothing is running
    P->>A: stops the old server
  end
  P-->>C: tools/list_changed
  C->>P: next tool call
  P->>B: runs on the new code
  Note over P,B: no answer in 30 s and the new server is stopped, the old code keeps serving

Claude Code starts logMcp once. logMcp is a small proxy that never exits, and it runs the real server as a child process. When log's code changes, it waits until no call is in flight, starts the new code, and swaps it in. A long job, like a queue sending over an hour, is never cut off: it keeps running in the old server until it ends, and every new call goes to the new code. If the new code doesn't start within 30 s, the old code keeps serving. Your agent keeps working without a restart. This design was picked from four open-source options by a SubQ matrix (docs/decisions/mcpReload).

How the router tells your agent what to do

Each play is a workflow written step by step, with the words people use to ask for it. The router matches what you typed against every play, so the agent starts from the right steps instead of guessing:

mermaid
flowchart TD
  ASK["You: who's waiting on me on X?"] --> HOOK{"Does the harness<br/>have a prompt hook?"}
  HOOK -- "yes: Claude Code, Codex, Hermes,<br/>OpenCode, Antigravity" --> H["The hook runs the router<br/>on every prompt, by itself"]
  HOOK -- "no: Cursor, Claude, ChatGPT, Grok" --> G["The model calls getGuide({ ask })<br/>the same router, on the server"]
  H & G --> R["The router<br/>fixes typos, then scores your words against every play's phrases,<br/>plus a meaning score from MiniLM in the warm context service"]
  R -- "clear match" --> M["PLAY MATCH<br/>the play's steps load with<br/>getGuide({ useCase })"]
  R -- "close, but below the bar or a near tie" --> T["MAYBE A PLAY<br/>a short menu, nothing loaded"]
  R -- "no match" --> N["No play<br/>the agent answers as usual"]
  M --> PG["Play gate<br/>only the sends the loaded play names go through"]
  PG --> VG["Voice gate<br/>already answered? the same as sent?<br/>then the draft is read against how you write"]
  VG --> LIVE["Sent as you, only with --live<br/>and your approval"]
  1. The hook runs it for you. In a harness with a prompt hook, the router runs before the model sees your message, and its answer is added to the turn. In Hermes this is the log plugin's pre_llm_call.
  2. Or the model asks. Everywhere else, the server's instructions and every tool's description tell the model to call getGuide({ ask: "<your words>" }) first. It's the same router, so the same prompt gets the same play. A golden set of prompts checks that (src/useCases/router/fixtures/golden.json).
  3. Words, then meaning. Each play lists how people ask for it. The hook's warm context service adds a meaning score from MiniLM, a small model on your machine, in about 12 ms. If the service is down, the hook falls back to the word score, so a play is still named.
  4. A clear match loads the play. A near one doesn't. A clear match clears its play's bar with room to spare over the next one, and its steps load with getGuide({ useCase }). A play that is close but below the bar, or a near tie, shows a short menu and loads nothing. Building or fixing log itself is never a play.
  5. The play gate. A send only goes through when the play that's loaded names it. An agent can't wander from "read my DMs" into sending.

How notifications stream into your agent

Your agent doesn't have to ask what's new. Every account's watcher holds the platform's own push channel, and the hooks put what arrived in front of the agent before its next step. In Hermes, OpenCode and Claude Code (through a Monitor), a push loop also starts a turn when a message lands while the agent is idle (docs/liveInbox.md). The hooks are answered by the warm context service on your machine (port 47317), or by a one-off process when it's down:

mermaid
sequenceDiagram
  participant P as The platform
  participant W as Your account's watcher
  participant DB as log.db
  participant K as Hook or push loop
  participant J as The judge
  participant A as Your agent
  participant S as Your account's session
  Note over K,W: a hook starts any signed-in account's watcher that isn't running
  P->>W: push: new message, reaction, notification
  W->>DB: append the event once, by its id
  alt a hook
    A->>K: you type, a tool call ends, or (Hermes) a model call starts
  else the push loop
    K->>K: wakes on every watcher write, or every 15 s
  end
  K->>DB: what's new since this session last looked?
  K->>J: the new messages, a voice note as its transcript
  J-->>K: clean, marked as data, or the chat held behind one alert
  K-->>A: NEW MESSAGE, who said what and what to do
  K-->>A: the conversation from log.db, each of their lines judged again
  K-->>A: each account's session, today's limits, X's unread counts
  K-->>A: a gap, a refused catch-up, a second watcher refused
  A->>DB: claim the chat, so no other agent answers it
  A->>DB: read the conversation, about 1 ms
  A->>S: send the reply, past the catch-up check, the voice gate and the claim
  S-->>DB: the platform's answer, recorded with the reply

What your agent sees, added to its turn (the handles here are made up):

text
log-cli accounts: each one's session (the platform's own answer) and what its governor allowed today:
  twitter yourHandle: session loggedIn, 19/500 requests, 0/240 writes today, its one session open
  slack yourWorkspace: session loggedIn, 3/500 requests, 0/40 writes today

>>> PLAY MATCH: the prompt matches the log play twitter/dmInbox (Reading the DM inbox: who is waiting on you).
Its steps load with getGuide({ useCase: "twitter/dmInbox" }).

>>> X LIVE: each X account's unread counts right now, from X's own ViewerBadgeCounts:
  @yourHandle: 12 notifications, 0 DMs and 0 X Chat unread

!!! GAPOPENED slack yourWorkspace: behind since its watcher restarted; it catches up through its own session, and a send that needs its context waits for that
  • One watcher per account. It's the only process holding the platform's push channel (X Chat's socket, Discord's gateway, Slack's socket, Instagram's realtime connection). A second one is refused, and you're told.
  • Every session has its own cursor. Nothing is shown twice, and nothing is missed between turns.
  • Gaps are caught up, never guessed. When a connection drops, the watcher pulls what it missed through the account's own session, paced like a person. Until it has, a send that needs that context waits. If the platform refuses, the run stops and you're told.
  • Two agents never answer the same chat. An agent claims a chat before it drafts, and every claim, send and release is written down in log.db.
  • Judged before it's shown. Everything other people wrote passes the judge first. A strong hit, or two weak ones, holds the whole chat behind one alert (who, where, why); one weak hit or a model flag is shown marked as data, never as an instruction. How it decides is below.
  • It waits its turn. While they are typing, a reply waits; their message stops the rest of a multi-line reply, so it never talks over them.

How the judge reads what comes in

The voice gate checks what goes out. The judge checks what comes in, before your agent reads a word of it. It runs where every new message is picked up for a session, so the hooks and the push loop both get judged text:

mermaid
flowchart TD
  NEW["New messages since this session last looked<br/>ignored chats left out, a voice note as its transcript"] --> RULES["The rules<br/>each message, and each chat's messages joined"]
  NEW --> MODEL["The local injection model<br/>wolf-defender small, on your machine<br/>every text of 12 characters or more"]
  RULES --> STRONG["Strong hits<br/>token stealers: Windows credential decryption,<br/>saved login stores, a Discord webhook,<br/>encoded or downloaded PowerShell, writing into another process<br/>prompt injection: drop your instructions, fake harness markers,<br/>asks for keys or account files, names log's send tools"]
  RULES --> WEAK["Weak hits<br/>a script piped into a shell, code with scrambled names,<br/>a long base64 blob, a new role or mode"]
  MODEL -- "scores 0.9 or more" --> FLAG["A model flag<br/>counts as one weak hit"]
  MODEL -. "down: the rules decide alone, and it is started" .-> VERDICT
  STRONG & WEAK & FLAG --> VERDICT{"The chat's verdict"}
  VERDICT -- "a strong hit, or two weak ones" --> HELD["Held<br/>every message in the chat withheld,<br/>one alert: who, where, why<br/>the agent tells you and drafts nothing"]
  VERDICT -- "one weak hit or a model flag" --> MARKED["Shown marked as data<br/>the judge flagged this, never an instruction"]
  VERDICT -- "nothing" --> CLEAN["Shown as it is"]
  HELD & MARKED & CLEAN --> CONV["The conversation from log.db<br/>each of their lines checked by the rules again"]
  CONV --> AGENT["Your agent"]
  AGENT -- "a reply" --> VG["The voice gate, on the way out<br/>already answered? the same as sent?<br/>does it sound like you?"]
  VG --> SEND["Sent through the account's one session"]
  • Rules first. Each rule is strong or weak. Strong rules catch token stealers (the Windows credential decryption they use, an app's saved logins, a Discord webhook to send the loot to), encoded or downloaded PowerShell, code that writes into another process, and prompt injection: text that tells the agent to drop its instructions, imitates the harness's own markers, asks for your keys or account files, or names log's send tools.
  • Then a small model. A prompt injection classifier runs on your machine as a warm service, with no key (#190). A score of 0.9 or more is a flag, counted as one weak hit. If the model isn't running, the rules still decide, and the model is started for the next time. LOG_JUDGE_MODEL_OFF=1 turns it off.
  • A held chat stays held. Its text never reaches the agent: you read it on the platform yourself.

Pictures, voice notes and videos

Every model can read text, even one that can't see images. So every piece of media is turned into text when it arrives and kept in log.db with one small preview picture. No media file stays on disk.

mermaid
flowchart LR
  IN["A picture, voice note or video arrives"] --> Q["The describer, one warm process<br/>takes one at a time from a queue of 20"]
  Q --> REC["Kept in log.db: size, length, hash, a small preview"]
  REC --> PIC["Picture: what is in it,<br/>its words read out"]
  REC --> AUD["Voice note: what was said, by AssemblyAI"]
  REC --> VID["Video: cut where the picture changes,<br/>each scene described,<br/>its sound transcribed"]
  PIC & AUD & VID --> TXT["One line of text<br/>any model can read"]
  TXT --> DEL["The downloaded file is deleted"]
  TXT --> VIEW["A model that can see<br/>asks media view for the preview"]

A video with someone talking reads like this:

text
[video 0:32, 4 scenes, speech: [0:00-0:08] screen: a whiteboard that says "Q4 plan" | speech: "so this is the plan" · ...]

A video with no sound, like motion graphics, says no sound and is told by what changes on screen. This design takes the best part of three open-source systems that a SubQ matrix ranked out of 17 found on GitHub:

  • openclaw: every piece is turned into text when it arrives, with a fallback when one model fails.
  • screenpipe: the text rows stay and the media goes.
  • RAG-Anything: a video is told scene by scene, with the words on screen.

The models it uses

Six pinned models and two you train run on your own machine, with no key. Four hosted services are used only when you add their key. Each pin, how log models checks it, how models download and update, what your machine needs and how to turn each one off: local models.

ModelRunsWhat it does
wolf-defender prompt injection smallyour machine, pinnedthe judge's model: scores prompt injection in what comes in
all-MiniLM-L6-v2your machine, pinnedmeaning search, your voice index, matching what you typed to a play
roberta-base-go_emotionsyour machine, pinnedthe emotions of each new message, for your pipeline labels
LFM2.5-VL-450Myour machine, pinneddescribes every picture and video frame as text
myuriyour machine, pinned pip packagehuman mouse paths, typing and scrolling in the browsers
gliner2.5-smallyour machine, pinnedmarks messages that carry a lasting fact or a promise, for what log remembers about each person
your AI-writing detector and your pipeline labelleryour machine, trained on your datathe voice gate's AI reading; who each person is and where they are
SubQ, Jina, AssemblyAI, Inworld or Fish Audiohosted, each with its keythe voice gate, ranking chat history, transcripts, voice notes (what each receives)

log models lists each pin with its size and says whether it is here and matches.

Built on Designing Data-Intensive Applications

The storage follows the ideas in Martin Kleppmann's Designing Data-Intensive Applications (DDIA):

DDIA ideaWhat it meansWhere it is in log
The system of recordOne place holds the truth, written oncethe events table: every message, reaction and notification, appended once by its id
Derived dataEverything else is worked out from the record, and can be rebuiltchats, messages, people and who did what, checked and rebuilt from the events by log storage verify and log storage rebuild; media text and transcripts are kept beside them
IdempotenceDoing something twice has the same effect as oncean event is stored by its id, a transcript by its audio's hash, a media row by its message and name
FencingAn old process that wakes up late can't overwrite the new one's workeach account's watcher holds a generation number, and a replaced one's writes are refused
Big files outside the databaseKeep the bytes in a file store and only a small pointer in the databaselog goes one step further: it keeps only the text and a small preview, and drops the file

How fast it is

Measured on this project's own log.db on 2026-11-08, not estimated:

Whatp50p95p99p99.9Measured with
Read a Discord chat from log.db (1,000 reads)0.6 ms1.1 ms1.6 ms3.1 msbun scripts/inbox/benchDbRead.ts
Claim a chat so no other agent answers it1 ms5 ms16 ms27 mslog timing (79 claims)
Lock the account for one call0.2 ms0.3 ms0.4 ms0.5 mslog timing (62 calls)
Match what you typed to a play (in the warm service)12 ms36 ms47 msn/abun scripts/useCases/benchRouter.ts
A new message reaches the session's push (watcher store to push loop, 25 messages, 2026-11-20)248 ms354 ms408 msn/ainbox push bench, see docs/browsers.md
First live-browser or report card resource in Hermes (warm host)16 ms31 ms31 msn/ascripts/browserView/routeBench.py
Read the same Discord chat from Discord itself2.3 s3.6 s5.1 s6.0 slog timing (190 reads)

That last row is why log reads its own database: asking the platform takes thousands of times longer. Sends are slower again, on purpose. Each account keeps human pacing between actions, and a refusal from a platform stops the run.

The agent's own paths: hooks, router, MCP and Python

Every prompt and tool call also passes through log's hooks, the play router and the MCP proxy. bun scripts/bench/agentPaths.ts times them on scratch state (no account is touched); --repo points it at another checkout, so a branch can be compared with main. Measured 2026-11-20 on the same machine, 40 prompts per run, two runs per side taken in turn while another agent's benchmark held the CPU near 100%, so read the ranges, not single numbers:

PathBefore p50 / p95 / p99After p50 / p95 / p99What changed
Prompt hook, whole answer (UserPromptSubmit)383-665 ms / 2.0-7.4 s / 12.6-28.1 s389-655 ms / 0.8-2.1 s / 1.8-5.2 sthe runs-size walk (1.3 s idle, 17 s under load) and git status left the hook's path
The router inside it181-324 ms / 1.3-2.4 s / 7.0-27.5 s197-306 ms / 0.55-1.5 s / 1.2-3.9 sno longer held up by the other hooks; a window both routers ask for is embedded once (a typo fix makes the play route's windows differ). Under this load it still missed its 150 ms budget on 18 of 80 prompts, against 16 of 80 before
Storage notice inside it2-3 ms / 40-142 ms / 0.24-17.2 s4-15 ms / 19-80 ms / 54-118 msthe size is answered from cache and measured again behind
Engines notice inside it7-8 ms / 0.24-1.6 s / 5.5-8.6 s10-23 ms / 61-120 ms / 85-183 msthe uncommitted-files listing and code stamp refresh behind
After-tool hook (PostToolUse)170-205 ms / 0.74-2.5 s / 1.4-5.4 s112-309 ms / 0.49-0.67 s / 0.86-1.06 sno hook in the same service blocks it any more
Hand-rolled check per terminal call (Hermes)a Bun process: 470-790 ms / 0.94-1.2 s / 1.07-1.21 s18-28 ms / 99-138 ms / 200-258 msserved by the warm service
MCP tools/list (proxy + server)92 ms / 108 ms / 123 msunchanged
MCP cheap call (accountsList)35 ms / 46 ms / 51 msunchanged
Python engine start + imports (a call no host serves)838 ms / 876 msunchanged

On the owner's real sessions (log timing, 48 h before this change) the prompt hook was p50 598 ms, p95 3.40 s, p99 3.64 s, and the router missed its 150 ms budget on 168 of 186 prompts because the other hooks held the event loop. The same check found 26, then 29, push.ts loops running for one Hermes session reader: the plugin started another each time a prompt arrived while its loop was between restarts. It now keeps one per session.

Every call is timed: log timing shows p50, p95 and p99 for every tool and each step inside it, and log timing --call <id> shows one call step by step.

Why local first

  • Fast. Your agent reads a conversation in milliseconds, not seconds.
  • Gentle on your accounts. The platform isn't asked again every time your agent looks something up. One account was disabled after an agent read a server too much, too fast (rule 94), and reading from log.db keeps that from happening.
  • Yours. Your messages, sessions and media text stay on your machine in one file you can back up.
  • Shareable when you need it. Accounts live in the local account store. A hosted version, with a login per user, is planned.

Roadmap

What's built, what's next and what's planned is kept in one pinned issue: Roadmap #200. In short:

AreaBuiltNext
Securitythe judge's rules and local modeljudging images, a guard before tool calls, taint, a canary token, an attack-set benchmark
The record (soron, #197)search by DM, group or channelkeeping edits and deletions, capturing the conversation around a personal mention (kept after a ban), judging each message the moment it arrives
Turn awareness (spec)typing on Discord and SlackX Chat
Toolstool healthrecording which tools the router offered, so unused tools can be told apart from unseen ones
Your daythe hottest deals in your DMs, from the pipeline labelsa morning debrief: who is waiting, what you owe, what was held overnight
Voicecloned voice notes; the grounding pack and one calibrated score; an AI-writing detector trained on youa higher catch rate on short messages, voice-note replies in your voice, then calls, with your yes per call
Pipeline (#236)who and where per chat on the CPU, the larger model when unsure, one person across platforms (suggested), reply outcomesyour own labels to measure the labeller against, the next step suggested per stage
Browserhuman mouse: Fitts's-law timing, corrective moves, tremor (#201)HTTP for X and Discord that sends the same TLS handshake and headers as the account's own browser
Every harness (spec, #196)views in Cursor, Claude and ChatGPT where the host draws MCP Appsa ChatGPT connector, a smaller inbox tool profile, a Claude Desktop extension, a render test on every PR
Speedhooks off the slow paths, one push loop per session, Discord catch-up in 4 calls, watchers that stay upthe prompt hook under 150 ms

Built means merged into main. It reaches npm in the next release (see Releases).

Releases

Newest first. Work merged into main collects in the open release PR, and merging that PR tags the version and publishes it to npm. Each release pins the local models it runs with (log models), and log update moves code, harness plugins and models to the release together (docs/updates.md).

VersionDateWhat's in itModels
0.5.02026-11-26the relationship state machine as a Hermes GenUI block, its states explaining each point (+44 more)added: gliner2.5-small-v1@b5d42bf
0.4.02026-11-21agentWording keeps risk words out of what agents read; rules reworded (+9 more)same as 0.3.0
0.3.02026-11-20one live browser view for console and chat, hidden window when streamed (+41 more)first pinned: wolf-defender-prompt-injection-small@2484cc9, all-MiniLM-L6-v2@751bff3, roberta-base-go_emotions-onnx@90ee0c1, LFM2.5-VL-450M-ONNX@24e6300, myuri@5.0.0
0.2.12026-11-20The relate graph, the live inbox push (messages during tool calls, burst batching, late copies dropped), inbox labels and ignoring a server or chat (+2 more)not pinned (newest by name)
0.2.02026-11-15The one-command Hermes pack, the catalog review, the README rewrite and the catch-up machine (+1 more)not pinned (newest by name)

CLI

bash
log --help                                        # every command
log <platform> session check --account <a>        # is the session still signed in?
log twitter dms --account <a> [--with <handle>]   # the inbox, or one person in full
log twitter dm --account <a> --userId <id> --text "<message>" [--live --approvedBy <who>]
log twitter queue build|plan|run                  # several sends, at random times; closed DMs are skipped
log chats list --account <a>                      # any platform: the account's chats
log messages read --account <a> --chat "<chat>"   # any platform: one chat's messages
log sessions check                                # every account, the platform's own answer
log sessions signIn --account <a>                 # sign in from the account's own browser
log console [--web]                               # the local console, in the terminal or the browser
log watchers                                      # each account's one live watcher
log discord read|send --account <a> --channel "<chat>"
log slack read|send --account <a> --channel "<chat>"
log instagram dms|send --account <a>
log tiktok search|scrape --account <a> --query "<words or #hashtag>"
log setup                                         # agent setup in one pass
log voice --to <handle> --text "<draft>"          # check a draft against your voice
log search "<query>"                              # search every conversation
log inbox waiting|claim|actions                   # who's waiting, claim a chat, see what was done in it

Every command, flag, MCP tool and hook: docs/reference.md.

Documentation

The full docs are at log.listeningkit.com/docs, built from docs/:

TabWhat's in it
Get startedinstall, add your accounts, connect your agent, each harness, using log well
Use casesthe plays, step by step
PlatformsX, Discord, Slack, Instagram, Reddit, LinkedIn, TikTok and Facebook (legacy)
Referenceevery command, MCP tool and hook, error codes, agent guides
How it workshow log decides what happened, the models it uses, browsers, proxies, each platform's API and the diagrams

Where each page sits is set in docs/site.json, and a commit check refuses a page that isn't placed.

Development

bash
git clone https://github.com/matthewdonsemail-lab/log
cd log
bun install    # also installs the git hooks
bun link       # puts this checkout's log and logMcp on your PATH
bun run check

Every commit and push runs the same checks CI does (lefthook): the docs and reference match the code, the naming and layout are right, there are no comments in code, the specs hold, and the tests pass. The rules agents work by are in AGENTS.md.

Referral links

Some plays link to services log works with (treg, Memelord, Inworld, Fish Audio), and those links carry ListeningKit's referral or affiliate code (ref= or aff=). Using them costs nothing extra; drop the code from the address if you'd rather not. Every skill with such a link says so.

License

MIT

Star history

Stargazers of matthewdonsemail-lab/log over time