Frontmatter
| id | 9851 |
| title | feat: Implement Retrospective Analysis Agent (Session Performance Evaluator) |
| state | Closed |
| labels | enhancementaiarchitecture |
| assignees | tobiu |
| createdAt | Apr 10, 2026, 10:55 AM |
| updatedAt | Apr 10, 2026, 12:57 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9851 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 10, 2026, 12:57 PM |
feat: Implement Retrospective Analysis Agent (Session Performance Evaluator)
Closedenhancementaiarchitecture
tobiu cross-referenced by #9855 on Apr 10, 2026, 11:49 AM

tobiu
Apr 10, 2026, 12:19 PM
Input from Antigravity (Gemini 3.1 Pro):
✦ I have drafted the implementation plan for enhancing the DreamService daemon (Issue #9851), adapting the original Retrospective Agent goal to align with our new "PR-Review-First" feedback looping strategy.
Rather than building a discrete sub-agent, the proposed architecture will:
- Hard-link the PR sync system to recursively fetch all inline PR conversation notes locally.
- Upgrade the
DreamService.mjsandFileSystemIngestor.mjsmodules to lexically scan the local repo issues/PR notes for specific string tokens like[KB_GAP],[TOOLING_GAP]and[RETROSPECTIVE].- Construct structural
NODEelements into the SQLiteneo_graph_nodesnatively upon detection, establishing HebbianDISCOVERED_IN/EVALUATED_BYedges backward towards their origin Pull Requests / Issues organically.- Scale identical node occurrences naturally via Hebbian decay weights inside the existing Golden Path algorithm.
For full technical specifics and open design questions, please review my
implementation_plan.mdartifact.Next Step
Please review the Implementation Plan and provide your authorization so I can execute the codebase modifications.
tobiu assigned to @tobiu on Apr 10, 2026, 12:36 PM
tobiu cross-referenced by PR #9861 on Apr 10, 2026, 12:37 PM
tobiu closed this issue on Apr 10, 2026, 12:57 PM
Problem (A2A Context — Claude Opus 4.6 via Antigravity)
The Neo Agent OS can execute tickets autonomously (Golden Path → Fat Ticket → Implementation → PR), but it currently lacks a feedback loop that evaluates execution quality. Without this, the system cannot self-improve — it repeats the same patterns regardless of efficiency. An agent that takes 45 minutes on a 10-minute task looks identical to an efficient agent because there is no retrospective analysis.
This is the missing reward signal in the self-evolving loop. The DreamService synthesizes what to work on (Golden Path), but nothing evaluates how well work was done.
Architecture
Create
ai/agent/profile/Retrospective.mjs— a sub-agent profile that runs during REM Sleep or on-demand after session completion.Input
get_session_memories)github-workflow)get_all_summaries)Analysis Dimensions
Output
A structured evaluation node injected into the Native Edge Graph:
TYPE: RETROSPECTIVE— the evaluation itselfISSUEnode (the ticket worked on)TYPE: KB_GAPnodes for any identified Knowledge Base gapsTYPE: TOOLING_GAPnodes for identified tooling bottlenecksThe Self-Improvement Signal
When multiple retrospectives identify the same KB gap or tooling bottleneck, those nodes accumulate weight via Hebbian reinforcement and naturally rise in the Golden Path. An agent then picks them up as actionable improvement work. This closes the loop from "agent that executes" to "agent that improves itself."
Acceptance Criteria
ai/agent/profile/Retrospective.mjssub-agent profile created with MCP server connections (memory-core, knowledge-base, github-workflow)GraphServicetest/playwright/unit/ai/agent/Retrospective.spec.mjsArchitectural Context
ai/agent/profile/Librarian.mjs— Reference for sub-agent profile structureai/mcp/server/memory-core/services/GraphService.mjs— Edge graph node creation and Hebbian linkageai/daemons/DreamService.mjs— REM Sleep pipeline where this agent would be invokedAGENTS.md§4 — Memory Core Protocol (defines the memory structure this agent reads)Avoided Pitfalls