jothe

ಜೊತೆ · with you

jothe

An always-on assistant that remembers you.

Chat assistants forget you between tabs. Jothe is one long conversation with one person. It runs on your own machine, talks to you over Telegram, keeps its memory in plain markdown, and tidies that memory while you sleep.

● built on Claude Code  ·  python stdlib + sqlite  ·  no pip install

jothe
online · always
remind me in 20 min to call Asha21:20
Done. I'll ping you at 21:40.21:20
· · · 20 minutes · · ·
Time to call Asha.21:40
from now on keep replies short21:52
Got it.21:52
saved as a standing order, quietly

a day with jothe

It keeps time, so you don't have to.

Example entries from one day. Every message is a row in SQLite, every reply goes out through an outbox, and Claude does the thinking in between.

A schedule fires

You once said "every weekday at 8, send me a plan". That became a cron job through a small MCP server Jothe gives to Claude. Each morning it wakes up and writes to you first.

create_schedule("0 8 * * 1-5", "plan my day")

Three messages, one thought

You send a burst of texts. Messages already waiting when a run starts are joined into one prompt, so Jothe answers the whole thought, not each fragment.

you ▸ book a table friday you ▸ somewhere near indiranagar you ▸ for 4

Change your mind mid-task

Claude runs with stdin left open. About once a second, new messages are written into the running agent, and it picks them up at its next step instead of finishing the wrong job.

you ▸ draft the email to the landlord jothe working… you ▸ actually keep it polite, not formal jothe adjusting…

It writes things down

Standing orders go into instructions.md. Everything else becomes a note in nodes/ with one line in the index. These are plain markdown files that Claude edits with its normal tools. There's no vector database and no retrieval step.

03:00 · dreaming

While you sleep, it tidies up.

Inspired by Anthropic's research on agent memory: like the brain consolidating the day during sleep, a fresh session goes back over the logs and writes better notes.

  1. At 03:00 a system schedule queues /dream. Jothe can see it but can't cancel it. If the machine was asleep, it runs once on wake.

  2. A fresh session, outside the main conversation, reads everything handled since the last dream. It knows which lines you said and which a timer triggered.

  3. It makes small edits only: keep a line, fix a line, remove a line, add to a note. When two things conflict, the newer one wins.

  4. If a file goes over its size limit, the harness sends it back to merge and shorten. Every hour, changes are committed to git, so each one can be undone.

memory

Three kinds of remembering.

The harness never stores, embeds or retrieves anything itself. It creates the files, loads them, checks their size, keeps the index honest and versions them.

instructions.md · index.md

Always in mind

Standing orders, plus a one-line index of every note. Added to the system prompt on every run.

≤ 2000 · ≤ 3000 chars

nodes/<slug>.md

Looked up when needed

The details: people, plans, preferences. Opened only when the index points to them.

read & write

history/YYYY-MM-DD.md

The full record

Every exchange, one file per day, with secrets masked. Jothe can grep it but never edit it.

read-only, enforced by docker

sandboxed

Each part holds only what it needs.

Three Docker containers. Only the runner has the Claude login, and it has no database and no Telegram token. The worker has no internet. Your own ~/.claude is never touched.

containerclaude logintelegram tokenjothe.dbinternethistory/
telegram–✓✓✓–
worker––✓nonerw
runner✓––✓read-only
0dependencies
1sqlite file
3containers
~400line MCP server

quick start

Five steps to a companion.

You need Docker (OrbStack on a Mac) and a Telegram account.

  1. Make a long-lived Claude token

    The agent has its own HOME, so it can't see your normal login. An ANTHROPIC_API_KEY works too.

    claude setup-token
    printf 'export CLAUDE_CODE_OAUTH_TOKEN=%s\n' "$(pbpaste | tr -d '[:space:]')" > .envrc
  2. Create a Telegram bot

    In Telegram, open @BotFather, send /newbot and copy the token.

    printf 'export TELEGRAM_BOT_TOKEN=%s\n' "$(pbpaste | tr -d '[:space:]')" >> .envrc
    ln -s .envrc .env
  3. Start it

    docker compose up -d --build
    docker compose logs -f
  4. Lock it to you

    Message your bot. The log prints Ignored message from unauthorized chat 123456789. Use that id, because anyone can find a bot by its username.

    echo 'export TELEGRAM_ALLOWED_CHAT_ID=123456789' >> .envrc
    docker compose up -d
  5. Say hi

    You'll get 👀 when it picks up your message, "typing…" while it works, and the reply threaded under your message.

No Docker? Run worker.py and telegram.py directly with Python 3.10+. Details are in the README.

Not another chat tab. Someone who stays.