← All projects
Project record1 mention
Originally shared on Hacker News

Postgres-backed codebase memory MCP

This is a codebase knowledge system for the author's internal projects: it snapshots two years of commit history into day-by-day files, uses Claude to enrich each commit message (why, how, where, and output) and generates per-file markdown notes, embeds everything into a PostgreSQL database, and exposes an MCP server to query anything. Git-hook watchdogs create stub files per commit that are enriched and re-indexed into Postgres, and the first rule of the author's CLAUDE.md is to ask the MCP for any information so Claude knows what related projects did and what to adopt.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Postgres-backed codebase memory MCP

    This is a codebase knowledge system for the author's internal projects: it snapshots two years of commit history into day-by-day files, uses Claude to enrich each commit message (why, how, where, and output) and generates per-file markdown notes, embeds everything into a PostgreSQL database, and exposes an MCP server to query anything. Git-hook watchdogs create stub files per commit that are enriched and re-indexed into Postgres, and the first rule of the author's CLAUDE.md is to ask the MCP for any information so Claude knows what related projects did and what to adopt.

    Posted by @sabri_eker · Original source ↗

    Source text · @sabri_eker · · Source ↗

    I implemented a process. - First snapshot. Generated day by day files based on last 2years commit, used Claude to enrich every commit message (why,how,where and output). Also create File.java.md file enriched commit message per file. - I have the history. Next I embedded all of this to Postgresql database. - Implemented an MCP to query anything. - Create whatchdogs to followup projects that I setup, git hook creates stub files per commit. - And then process enriches new stub files. then indexes it to Postgresql. I did for all internal projects. And first rule of CLAUDE.md is ask MCP for any information. Now Claude knows what other related projects did, what should adopt for.