Core Swarm Capability
Self-Evolving Agents & Personas
Memento runtime agent evolution factory and ReasoningBank process memory engines.
User & Researcher Perspective
Self-Evolving Agents & Personas introduces specialized agent personas (Cleo, Sentinel, Pixel, Sage, Echo) acting as active collaborators. Rather than static entities, these agents dynamically learn from process memory and human feedback. Researchers can inspect an agent's active memory graph, direct its expertise focus, or authorize the creation of custom role personas on the fly.
Operational Workflows & Intent
- Collaborative Research Swarms: Swarms run parallel tasks, delegating transcripts reading to Echo, design audits to Pixel, and security-compliance to Sentinel.
- Expertise Evolution: Researchers review skill proposals and steering adjustments proposed by agents based on prior task success.
Engineering & Architecture Perspective
Agents are dynamically instantiated via the Memento Agent Factory at backend/app/core/agent_factory.py. Process memory and execution loops are governed by the Meta-Hyperagent at backend/app/core/meta_hyperagent.py and logged in the ReasoningBank.
Granular Technical Data Flow
- Orchestration Dispatch: The agent factory reads task context and spins up a specific agent model with scoped permissions and custom system prompts.
- Trajectory Log: The agent's reasoning chain, tool actions, and intermediate results are streamed directly into the
ReasoningBankmemory bank. - Capability Gap Detection: The Meta-Hyperagent parses the trajectory log; if failures persist, it drafts a Memento skill patch or specialized subagent outline.
- Regulated Promotion: Updated prompts are verified against local policy constraints before deployment.
Technical Documentation Approach
Agent autonomy is strictly restricted under the Self-Improvement Governance Contract (docs/architecture/self-improvement-governance-contract.md). Agents are structurally blocked from executing shell commands or database mutations outside of their scoped workspace.
Compliance & Quality Invariants
- Workspace Scoping: Every subagent is spawned in a project-scoped sandbox with inherited or branched storage limits.
- Prompt Safety Checks: Prompt modifications must pass regression tests to ensure no degradation in security standards or operational safety limits.
Scientific Foundations & Bibliography
The self-evolution engine is backed by foundational research in multi-agent orchestration and reasoning memories:
- Metacognitive Skill Evolution: Zhou et al. (2026) — "Memento-Skills: Let Agents Design Agents" arXiv:2603.18743. Distills the foundational pattern of agents identifying capability gaps.
- Recursive Self-Modification: Zhang et al. (2026) — "Hyperagents: DGM-H Metacognitive Self-Modification for Cross-Domain Transfer and Recursive Improvement" arXiv:2603.19461.
- Reasoning Memory Scale: Ouyang et al. (2026) — "ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memory" arXiv:2509.25140. Tracks failed and successful loops.
Source Code Reference
backend/app/core/agent_factory.pybackend/app/core/meta_hyperagent.py