logoalt Hacker News

andrewstuart2last Monday at 7:29 PM2 repliesview on HN

Claudhd

It's a user daemon that runs on my machine and exposes a unix socket, and then a bunch of hooks in claude, zsh, vim, etc, that report directory and commands I've run and all that, pipes it to claude Haiku for summary, and then stores context in sqlite. It also exposes that data as MCP so I can use claude to say "hey what was I doing yesterday," or any arbitrary time range.

I find that in the age of using AI agents, "Wtf was I working on yesterday" is an even harder thing to remember for me, so this helps me kind of track everything with a database that a) has AI summaries already and b) can be accessed by AI as well as a CLI.


Replies

gitaariklast Tuesday at 6:59 AM

What does it matter if it was yesterday or last week, and why would git log not suffice?

show 1 reply
zigapotocniklast Tuesday at 11:35 AM

The "expose it as MCP so AI can query it" pattern is one I keep seeing work really well in practice. We did something similar for business metrics in Databox - the interesting design question was whether to expose raw data or pre-aggregated metrics. We ended up with metrics (with dimension breakdowns) because agents hallucinate less when they don't have to decide how to aggregate themselves. Curious if you ran into anything similar with the sqlite summaries - do you find the AI-generated summaries more useful than raw command history?