Overview
The SIS layer enables Argent to:- Observe — Track outcomes of actions
- Evaluate — Assess what worked vs. what didn’t
- Learn — Extract lessons and patterns
- Apply — Use lessons to improve future decisions
Memory Bank Types
Lessons Learned
Mistakes, successes, workarounds, and discoveries from experience.
Patterns Detected
Temporal, sequential, failure, and success patterns.
Tool Knowledge
Rate limits, edge cases, best practices, common errors.
Model Feedback
Which models work best for which task types.
User Preferences
Likes, dislikes, work style, communication style.
Context Awareness
Project-specific and user-specific knowledge.
Lessons Learned
Things discovered through experience that should be remembered:Patterns Detected
Recurring behaviors and correlations:Feedback Loop Implementation
1. Observation Collection
After every action, the system records the outcome including the action type, tool used, result, latency, model used, and any user feedback (explicit or implicit).2. Evaluation Engine
The evaluation engine checks for:- Explicit failures — action didn’t succeed
- User corrections — user had to correct the agent
- Repeated patterns — 3+ similar outcomes trigger pattern detection
3. Lesson Extraction
A fast local model extracts lessons from outcomes. This runs on Ollama (free, fast) and focuses on what went wrong/right and how to handle it better next time.4. Memory Bank Storage
Lessons are stored in SQLite with FTS5 for full-text search:5. Retrieval and Application
Before taking an action, the system checks for relevant lessons by tool name and semantic similarity. Lessons are injected into the prompt:Heartbeat Learning Review
During low-activity periods, Argent reviews and consolidates lessons:- Pattern detection — Review recent outcomes for recurring patterns
- Lesson consolidation — Merge similar lessons
- Decay — Reduce confidence on old, unvalidated lessons (30+ days)
- Promotion — Boost frequently-validated lessons (5+ occurrences)
User Feedback Integration
- Negative feedback triggers immediate lesson extraction with high severity
- Positive feedback boosts confidence in lessons used during that action
- Implicit feedback (user continued, abandoned, or corrected) is tracked automatically
Configuration
Summary
The SIS layer makes Argent a learning system that:- Remembers mistakes and doesn’t repeat them
- Recognizes patterns in user behavior and external systems
- Accumulates tool knowledge from experience
- Improves model routing based on actual performance
- Self-maintains through consolidation and decay
