What problem does it solve?
The self-improving-agent captures experiences and automated signals from the Shamrock Trading Bot codebase to continuously extract lessons, correct recurring errors, and evolve operational patterns so regressions and repeated mistakes are prevented over time.
Core Features & Use Cases
- Multi-Memory Architecture: Maintains semantic memory (memory/semantic-patterns.json), episodic memory (memory/episodic/), and working memory (memory/working/) to separate abstract patterns, past episodes, and current session context.
- Automated Experience Extraction & Pattern Abstraction: Hooks capture tool outputs, errors, and session summaries, convert recurring incidents into reusable patterns with confidence scores, and record evolution/correction markers for traceability.
- Self-Correction & Guardrails: Detects when applied guidance causes failures, records last_error.json, applies correction markers, and updates semantic patterns to prevent repeat failures.
- Integration Points: Session hooks (hooks/pre-tool.sh, hooks/post-bash.sh, hooks/session-end.sh) support automatic activation after deployments, bug fixes, scoring regressions, or on user commands like self-improve or learn from this.
- Use Case: After a scoring regression or deployment, run the session-end hook to extract the episode, update semantic patterns, and produce evolution markers so the bot avoids repeating the same failure.
Quick Start
Ask the self-improving-agent to self-improve by summarizing recent experiences, extracting patterns, and updating semantic memory.