Original Reddit post

A while ago, I started a small side project: make Claude Code a little safer and more useful across long-running projects. The original problem was simple: Claude Code is powerful, but every new session starts fresh. It does not automatically remember previous architectural decisions, risky files, project-specific rules, or why something was done a certain way. So I started building a small companion layer around it. It didn’t stay small. At this point, it has turned into a private infrastructure layer that adds persistent memory, policy checks, audit trails, and observability around AI-assisted coding sessions. At a high level, it does three things: Memory: builds a context pack when a session starts and remembers prior project decisions across sessions. Safety: checks risky tool actions before they run and blocks dangerous patterns. Observability: records proposals, approvals, blocks, and policy hits, then gives me a session retro so I can see what happened and why. The fun part is that the project became less about “make Claude remember stuff” and more about building a safety layer around AI coding itself. For example, the system can treat certain actions as higher risk, such as editing auth, billing, migrations, scripts, hooks, or infrastructure files. It can also block dangerous command shapes, credential leaks, unsafe file paths, and other patterns that are easy to miss during fast AI-assisted development. So the project went from: to “Can I build a small policy and observability layer around AI coding so it behaves more like an auditable engineering system?” I’m still deciding what parts, if any, are worth publishing, but the engineering side has been interesting. Rust workers, a persistent backend, Node.js hooks, policy validation, MCP tooling, risk classification, and regression tests around unsafe behavior. Would be curious to hear from people building AI coding workflows, agent safety tools, developer infrastructure, MCP tools, or systems that make AI-assisted coding more reliable. submitted by /u/No-Wishbone7899

Originally posted by u/No-Wishbone7899 on r/ClaudeCode