All Docs
ChangelogSaaS FactoryUpdated March 11, 2026

Release Notes — v1.0.135

Release Notes — v1.0.135

Tag: v1.0.135
Title: feat: Automated Agent Memory & Codebase Knowledge Base


What's New

This release ships a persistent agent memory layer that allows implementation agents to accumulate and reuse project-specific knowledge across every pipeline run. Over time, agents learn from past mistakes, reinforce successful patterns, and follow established conventions — improving CI green rates without human intervention.


Components Shipped

Database Schema

  • New agent_memory_entries table
  • 6 entry types: pattern, mistake, convention, dependency, gotcha, success
  • 9 categories: schema, api, ui, testing, auth, performance, inngest, deployment, general
  • Confidence scoring (0–1), usage tracking, human verification flag, source tracking

Memory Library

  • getRelevantMemory() — top-N entries by confidence + helpfulness
  • formatMemoryForInjection() — renders entries as agent-ready markdown
  • upsertMemoryEntry() — reinforcement: bumps confidence on repeat observations
  • recordMemoryUsage() — tracks surfacing frequency

tRPC Router

  • agentMemory.list, .stats, .create, .update, .delete, .verify

Nightly Distiller (Inngest cron, 3 AM UTC)

  • Scans last 24h of pipeline logs
  • Auto-extracts TypeScript errors, Drizzle gotchas, Inngest issues, conventions, and successes
  • Reinforces repeated patterns via confidence scoring

Dashboard UI

  • New page at /dashboard/products/[id]/agent-memory
  • Stats, filters, expandable entry cards, verify/delete actions, manual entry creation

Agent Injection

  • Memory injected into implementation system prompts on every pipeline run
  • Best-effort loading — pipeline is unaffected if memory fetch fails
  • PipelineEventData extended with agentMemory?: string

Tests

  • 11 unit tests for formatMemoryForInjection in tests/lib/agent-memory.test.ts

Files Changed

FileChange
src/db/agent-memory-schema.tsNew — DB schema
src/lib/agent-memory.tsNew — memory library
src/lib/routers/agent-memory.tsNew — tRPC router
src/inngest/agent-memory-distiller.tsNew — nightly distiller
src/app/dashboard/products/[id]/agent-memory/page.tsxNew — dashboard page
src/components/agent-memory-client.tsxNew — dashboard UI component
src/prompts/implementation.tsUpdated — agentMemory? option
src/inngest/pipeline.tsUpdated — loads and passes memory
src/inngest/agents/implementation.tsUpdated — forwards memory to prompt
src/inngest/events.tsUpdated — agentMemory? in PipelineEventData
src/app/api/inngest/route.tsUpdated — registers agentMemoryDistiller
tests/lib/agent-memory.test.tsNew — 11 unit tests

PR

PR #150 — feat: Automated Agent Memory & Codebase Knowledge Base