cogito-mem

How it works

Collect, keep, find

Every message you and Claude exchange is a nut. Cogi gathers them, keeps them in its hollow, and digs up the right ones when Claude needs them.

Cogi the squirrel holding an acorn

Collect

After each answer, Cogi picks up the new messages. Your chat never waits.

Keep

Word for word, with the date, in your hollow on your computer.

Find

It searches by words and by meaning, and hands back the best few.

Two ways nuts come back

On their own

~400 tokens

With each prompt, a few lines from before that fit it. A new session starts with how the last one ended.

When Claude asks

2,500 tokens

Ask “do you remember…?” and Claude searches your hollow itself.

Each line has an id, so Claude can open the whole message and what was said around it.

The basket

Cogi fills a basket counted in tokens, the way Claude counts its room. A token is about ¾ of a word.

  • The best match goes in first, then the next, until the basket is full.
  • Long messages are kept in pieces of about 256 tokens, so one long plan can't fill it alone.

Your hollow

One memory, named after you, like ksirg-hollow. Every session from every project goes in, so Claude can recall across them all. To peek inside:

Terminal
curl -s localhost:7327/v1/status
"ksirg-hollow": {
  "messages": 100,  ← nuts kept
  "items": 142,     ← pieces
  "vectors": 142,   ← by meaning
  "pending": 0      ← still to do
}

A different name, through COGITO_MEM_NAMESPACE, starts a new, empty hollow.

Cogi keeps what was said and what Claude did, never file contents or secrets. Wrap anything in <private>…</private> to keep it out. Everything it keeps →

Under the hood

That's it. You talk to Claude; Cogi minds the nuts.

Install in 2 minutes