How Codmir converts events into compounding intelligence through observe, interpret, act, evaluate, distill, and reapply.
Intelligence Loop
The intelligence loop is Codmir's mechanism for turning execution events into reusable knowledge.
The Six Stages
- Observe: capture high-signal events from project workflows.
- Interpret: infer intent, action, urgency, confidence, and outcome.
- Act: apply promotion rules to decide what deserves memory.
- Evaluate: classify outcome quality (
success,failure,partial,unknown). - Distill: extract reusable patterns from terminal events.
- Reapply: publish recommendations for future work.
Why It Matters
Without a loop, context resets after every task.
With a loop, every major event can contribute to:
- explicit intent memory
- outcome memory
- reusable pattern memory
- verified project-level (or global) knowledge promotions
Persistence Targets
ProjectMemorywith sourceintelligence_loopKnowledgePromotionfor promoted patternsDistillationJobandDistillationMetricsfor loop telemetry
Event Integration
The loop is integrated into the canonical emit() pipeline and emits lifecycle signals:
intelligence.loop.observedintelligence.loop.interpretedintelligence.loop.evaluatedintelligence.pattern.promotedintelligence.reapply.recommendedintelligence.loop.completedintelligence.loop.failed
Promotion Philosophy
Codmir does not store everything.
Promotion rules deliberately prefer meaning over raw activity, so memory quality stays high and reapplication remains useful.