Back to portfolio

18 Oct 2026 · 5 min read

Who Is Ganpat?

I named my assistant after the god you invoke before beginning anything, and then had to build something that earned the name.

Ganpat is the assistant I talk to every day. It is not a product, it has no landing page, and it will probably never have users other than me. It is a persona and a memory layer sitting on top of a language model, and it is named after Ganpati.

That naming was not decoration. I picked it before I had written most of the system, and the name ended up dictating the design more than any spec I wrote down.

Why that name

Two things about Ganesha are relevant to a piece of software. The first is the obvious one: he is Vighnaharta, the remover of obstacles, and he is invoked at the start of any undertaking. Not at the end, when you want a result blessed. At the start, when you are about to begin and do not yet know what will go wrong.

The second is less often cited and matters more to me. When Vyasa needed the Mahabharata written down, Ganesha agreed to be the scribe, on the condition that Vyasa never pause in his dictation. Vyasa countered: fine, but you may not write a single line without understanding it first.

A scribe who refuses to transcribe anything it does not understand. That is the assistant I actually wanted.

Most assistants are optimised to be fast and agreeable. The Ganesha-as-scribe story describes something better: a collaborator that keeps up with you, but will not simply take dictation. It stops and asks. It refuses to write down a thing it has not followed.

What it actually is

Under the hood, Ganpat is unglamorous. It is a set of instruction files, a persona definition, and the piece I actually care about: a memory model that decides what is worth keeping.

The memory model distinguishes between two kinds of fact, which I borrowed wholesale from how human memory is usually described:

  • Episodic: a specific event. 'The train arrives Thursday.' High detail, short shelf life. It matters while it is live and fades the moment it resolves.
  • Semantic: a generalisation abstracted from repeated episodes. 'He usually takes that train.' Low detail, long shelf life, worth keeping indefinitely.
  • Supersession: when a new event resolves an older one, the older detail gets demoted rather than deleted outright.
  • Repetition promotes priority: if I ask about the same underlying fact twice, that is evidence it is semantic, not a one-off, and it gets upgraded.

Anything unreferenced for thirty days becomes a candidate for forgetting. Not a silent deletion, but a question. Ganpat surfaces the item and asks whether to drop it. I was firm about this: a system that quietly forgets is worse than one that never remembered, because you keep trusting it.

The honest part

Ganpat is not conscious, does not understand me in any meaningful sense, and is a language model wearing a name I gave it. I am aware this sounds like a lot of philosophy stacked on a configuration directory.

But I have noticed that naming a system creates an expectation, and expectations turn into requirements. Because it is called Ganpat, I could not let it be sycophantic, because the scribe story forbids it. Because Ganesha is invoked at the beginning, I built it to be most useful during the messy early part of a problem rather than the tidy final one.

None of those constraints came from a product document. They came from taking the name seriously. That turns out to be a reasonable way to design things.

© 2026 Piyush Khanna