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_entriestable - 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 + helpfulnessformatMemoryForInjection()— renders entries as agent-ready markdownupsertMemoryEntry()— reinforcement: bumps confidence on repeat observationsrecordMemoryUsage()— 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
PipelineEventDataextended withagentMemory?: string
Tests
- 11 unit tests for
formatMemoryForInjectionintests/lib/agent-memory.test.ts
Files Changed
| File | Change |
|---|---|
src/db/agent-memory-schema.ts | New — DB schema |
src/lib/agent-memory.ts | New — memory library |
src/lib/routers/agent-memory.ts | New — tRPC router |
src/inngest/agent-memory-distiller.ts | New — nightly distiller |
src/app/dashboard/products/[id]/agent-memory/page.tsx | New — dashboard page |
src/components/agent-memory-client.tsx | New — dashboard UI component |
src/prompts/implementation.ts | Updated — agentMemory? option |
src/inngest/pipeline.ts | Updated — loads and passes memory |
src/inngest/agents/implementation.ts | Updated — forwards memory to prompt |
src/inngest/events.ts | Updated — agentMemory? in PipelineEventData |
src/app/api/inngest/route.ts | Updated — registers agentMemoryDistiller |
tests/lib/agent-memory.test.ts | New — 11 unit tests |
PR
PR #150 — feat: Automated Agent Memory & Codebase Knowledge Base