Skip to main content
Manowar uses a dynamic system block built per turn in framework.ts. The block is small on cold starts and grows only when memory or session context has useful data.

Prompt Sections

Memory Budget

The runtime retrieves all six layers but injects only compact results: The broader memory summary formatter supports a larger 1,800 character budget for non-turn uses. The agent turn path uses the tighter 900 character budget.

Compacting Rules

Memory is deduped by fingerprint, ranked by layer priority, semantic score, query overlap, confidence, recency, and access count, then packed by score-per-character. This keeps the injected context short without throwing away the layer signal.

Comparison