What is Cyclical Mode?
Cyclical mode implements temporal loops and repeating patterns: the simulation generates cycles where events echo, escalate, or causally connect across iterations. Think Groundhog Day, generational sagas, seasonal migrations, or bootstrap paradoxes. The key innovation: The LLM interprets what “cyclical” means for your scenario—repeating, spiral, causal loop, oscillating, or composite.Core concept: Cyclical mode doesn’t just repeat events. It tracks prophecy fulfillment, causal loop closure, and escalation trajectories across cycles.
When to Use Cyclical Mode
Use Cyclical mode when:- Repeating patterns - Seasonal cycles, generational succession, recurring conflicts
- Time loop narratives - Groundhog Day scenarios where awareness accumulates
- Causal loops - Later events cause earlier events (bootstrap paradoxes)
- Prophecy systems - Predictions made in cycle N are fulfilled in cycle N+M
- Escalating spirals - Same structure, increasing stakes
Perfect for
- Wildlife seasonal migration patterns
- Generational family sagas
- Time loop narratives (Groundhog Day)
- Cyclical economic patterns (boom/bust)
- Prophecy/fate storylines
Not ideal for
- Linear timelines (use Forward)
- Root cause analysis (use Portal)
- One-time decisions (use Branching)
- Dramatic arcs (use Directorial)
How Cyclical Mode Works
Interpret Cycle Semantics
The LLM decides what ‘cyclical’ means for your scenario:
- Repeating: Same events with minor mutations (Groundhog Day)
- Spiral: Same structure, escalating stakes (generational saga)
- Causal loop: Later cycles cause earlier ones (bootstrap paradox)
- Oscillating: Alternating between two poles (boom/bust)
- Composite: LLM-directed combination
Generate Archetype Cycle
The system generates the first cycle as a template:
- This becomes the pattern that subsequent cycles vary from
- Captures recurring elements (migration route, conflict type, ritual structure)
Generate Subsequent Cycles
For cycles 2-N, generate variations based on cycle semantics:
- Mutation: Small random changes accumulate
- Amplification: Same pattern at higher intensity
- Retroactive: Later knowledge affects earlier events
- Inversion: Each cycle inverts the previous
Resolve Prophecies
At cycle boundaries, generate prophecies based on mechanism:
- Deja vu: Characters feel they’ve lived this before
- Oracle: An oracle figure delivers predictions
- Pattern recognition: Characters notice the pattern
- Fate: Prophecies emerge from narrative destiny
Close Causal Loops
For
causal_loop type, the LLM:- Detects opportunities where cycle N can cause cycle M
- Rewrites states to explicitly close the loop
- Validates that loop closure is coherent
Architecture
Cyclical mode is implemented inworkflows/cyclical_strategy.py:
Key Data Structures
Configuration
Cyclical Configuration Parameters
Cyclical Configuration Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | string | required | Must be "cyclical" |
cycle_length | int | 4 | Number of states per cycle |
backward_steps | int | 12 | Total states (divided by cycle_length = loop_count) |
path_count | int | 3 | Number of cyclical paths to generate |
prophecy_accuracy | float | 0.5 | Confidence threshold for prophecy fulfillment (0.0-1.0) |
coherence_threshold | float | 0.7 | Minimum cyclical coherence score |
Template Example: Elk Migration
Frompersona/agent4_elk_migration.json:
Cycle Semantics
The LLM interprets what “cyclical” means via_interpret_cycle_semantics():
Prophecy System
Cyclical mode includes a three-method prophecy system:1. Generate Prophecy
2. Check Fulfillment
3. Resolve Across Path
Causal Loop System
Forcausal_loop cycle types, three methods manage loop closure:
1. Detect Opportunity
2. Enforce Loop Closure
3. Resolve Loops
Validation
Cyclical paths are validated with hybrid scoring:Best Practices
1. Set Cycle Length Appropriately
1. Set Cycle Length Appropriately
Match cycle length to your narrative rhythm:
- 3 states: Seasonal patterns (spring, summer, fall/winter)
- 4 states: Quarterly business cycles
- 6-8 states: Longer narrative arcs
cycle_length * loop_count2. Choose Prophecy Mechanism
2. Choose Prophecy Mechanism
Prophecy mechanism affects how predictions manifest:
- deja_vu: Characters sense familiarity (time loop narratives)
- oracle: Explicit predictions from authoritative source
- pattern_recognition: Characters notice the pattern themselves
- fate: Narrative destiny (tragedy, inevitability)
- none: No prophecy system
3. Define Recurring Elements
3. Define Recurring Elements
The LLM extracts recurring elements, but you can seed them:
4. Track Quantitative State for Escalation
4. Track Quantitative State for Escalation
For spiral/escalating cycles, define quantitative metrics:
5. Use Animistic Entities (M16)
5. Use Animistic Entities (M16)
Cyclical mode pairs beautifully with animistic entities:
- Herd matriarch embodies collective migration memory
- Biosphere as an entity with seasonal rhythms
- Time itself as a character in causal loop stories
Cost Estimates
Quick
0.123-4 entities2 cycles3-5 min
Standard
0.304-6 entities3-4 cycles6-10 min
Comprehensive
0.606-8 entities5-6 cycles12-18 min
Running Cyclical Mode
Output Structure
Cyclical paths include rich metadata:Related Mechanisms
Cyclical mode commonly pairs with:- M7 (Causal Chains) - Validate cycle-to-cycle causality
- M8 (Embodied States) - Physical degradation across cycles
- M11 (Dialog Synthesis) - Conversations reveal pattern awareness
- M13 (Relationship Evolution) - Trust/tension evolves cyclically
- M14 (Circadian Patterns) - Seasonal/diurnal rhythms
- M16 (Animistic Entities) - Non-human cycle participants
Next Steps
- Directorial Mode - Narrative-driven arcs
- Portal Mode - Backward reasoning
- Template Catalog - Browse all templates

