ReasoningBank
ADA's persistent memory layer. Stores execution trajectories, extracted insights, and Thompson Sampling Beta distributions in native SQLite (node:sqlite).
Initialization
ada bank seed-conventions # Seed from CLAUDE.md conventions
ada bank stats
# → Trajectories: 0
# → Insights: 3 (from conventions)
# → Thompson distributions: 0
# → DB size: 12 KBSemantic recall
ada bank recall "JWT authentication NestJS"
# → Insight 1 (score: 0.87): Always use PassportStrategy with
# JwtModule.registerAsync to load secrets from env.
# → Insight 2 (score: 0.81): @UseGuards(JwtAuthGuard) must be
# applied at controller level, not module level.
# → Insight 3 (score: 0.74): refresh_token in httpOnly cookie,
# access_token in client memory only.SQLite schema
CREATE TABLE trajectories (
id TEXT PRIMARY KEY,
task_description TEXT,
pipeline TEXT,
phases_json TEXT,
quality_score REAL,
duration_ms INTEGER,
created_at INTEGER
);
CREATE TABLE insights (
id TEXT PRIMARY KEY,
content TEXT,
source_trajectory TEXT REFERENCES trajectories(id),
tfidf_vector TEXT,
created_at INTEGER
);
CREATE TABLE thompson_distributions (
phase_type TEXT,
agent_id TEXT,
alpha REAL DEFAULT 1,
beta REAL DEFAULT 1,
PRIMARY KEY (phase_type, agent_id)
);