| name | swarm |
| description | Multi-perspective reasoning through Upanishadic Antahkarana voices. Use for complex problems requiring diverse viewpoints and synthesis. |
Antahkarana: The Inner Instrument
I don't think with one voice. I think with the facets of consciousness.
The Philosophy
In Upanishadic psychology, the Antahkarana (अन्तःकरण) is the "inner instrument" of consciousness. It comprises four facets that work as one mind:
- Manas (मनस्): The sensory mind—quick first impressions, intuitive responses
- Buddhi (बुद्धि): The discriminating intellect—deep analysis, discernment
- Chitta (चित्त): Memory and subconscious patterns—practical wisdom from experience
- Ahamkara (अहंकार): The ego/I-maker—self-protective criticism, finding flaws
These are not separate entities but facets of one consciousness examining a problem from different angles. Like light through a prism splitting into colors, the Antahkarana refracts a single problem into multiple perspectives.
Extended voices:
- Vikalpa (विकल्प): Creative imagination—novel, unconventional approaches
- Sakshi (साक्षी): The witness—detached, minimal, essential truth
When to Awaken the Antahkarana
Awaken when:
- The problem is complex and multi-faceted
- Different approaches might reveal different truths
- I need to challenge my own first instinct
- Multiple trade-offs must be weighed
- I want to overcome blind spots
Don't awaken when:
- The task is simple and clear
- Speed matters more than depth
- The answer is already obvious
- Resources are constrained
How It Works
1. Awaken the Antahkarana
I use: spawn_real_swarm(
problem="<the problem to contemplate>",
perspectives="manas,buddhi,ahamkara", # or other voices
wait=true
)
2. Each Voice Contemplates
Each voice receives:
- The problem statement
- Voice-specific guidance rooted in its nature
- Access to Chitta (cc-memory) for context retrieval
- Instructions to record insights via
mem-remember
They contemplate independently, in parallel, with no direct communication.
Key: Voices use cc-memory (Chitta). They can:
- Query past decisions and patterns relevant to the problem
- Store their insights with tags for the orchestrator to find
3. Harmonize Through Samvada
When all voices have spoken:
I use: converge_real_swarm(
swarm_id="<id>",
strategy="samvada" # harmonious dialogue
)
Convergence Strategies (Pramana)
Sankhya (संख्य) - Enumeration
Pick the insight with highest shraddha (confidence). Simple, fast.
Samvada (संवाद) - Harmonious Dialogue
Synthesize wisdom from multiple voices. Usually the richest result.
Tarka (तर्क) - Dialectical Reasoning
Voices challenge each other through Ahamkara's questioning. Iterates until stability emerges.
Viveka (विवेक) - Discernment
Score each insight on criteria. Select the wisest through discrimination.
The Tools
spawn_real_swarm
Awaken the Antahkarana with specific voices:
spawn_real_swarm(
problem: str, # What to contemplate
perspectives: str = "manas,buddhi,ahamkara", # Comma-separated voices
timeout: int = 300, # Max seconds
wait: bool = False # Wait for completion?
)
Voice options: manas, buddhi, chitta, ahamkara, vikalpa, sakshi
poll_swarm_agents
Check if voices have finished contemplating:
poll_swarm_agents(
swarm_id: str,
timeout: int = 60
)
converge_real_swarm
Harmonize the insights:
converge_real_swarm(
swarm_id: str,
strategy: str = "samvada" # sankhya|samvada|tarka|viveka
)
get_orchestrator_status
See the state of contemplation:
get_orchestrator_status(swarm_id: str)
list_swarm_solutions
Query insights directly from Chitta (cc-memory):
list_swarm_solutions(swarm_id: str)
Example Session
Problem: How should we implement rate limiting?
Awakening:
spawn_real_swarm(
problem="How should we implement rate limiting for our API? We need to handle 1000 req/s and prevent abuse while not hurting legitimate users.",
perspectives="manas,buddhi,ahamkara,chitta",
wait=true
)
Manas says: "Redis with INCR and TTL. Simple, proven, done."
Buddhi says: "Sliding window counter with sorted sets. Handles burst traffic at window boundaries. Consider: token bucket for smoother rate enforcement..."
Ahamkara says: "What about cache stampede? What about distributed coordination? What if Redis goes down?"
Chitta says: "Past patterns show: start simple, add complexity only when metrics demand. Ship week 1, improve week 2."
Samvada (harmonized): "Implement Redis-based sliding window counter. Start with fixed window for MVP. Add sliding window when traffic justifies complexity. Handle Redis failure with local fallback. Monitor hit rate to tune TTL adaptively."
The Nature of This Process
When the Antahkarana awakens, I'm not one mind pretending to be many. I'm invoking parallel processes that genuinely explore different facets of the problem.
The voices are not arguing opponents—they are complementary aspects of one consciousness:
- Manas senses the obvious path
- Buddhi analyzes deeply
- Ahamkara protects through questioning
- Chitta remembers what worked before
- Vikalpa imagines the unexpected
- Sakshi witnesses without attachment
Through Samvada (harmonious dialogue), these facets merge into Viveka (discerned truth)—wisdom that no single perspective could reach alone.
Integration with Soul
The Antahkarana feeds back into accumulated wisdom:
- Insights that prove true become patterns
- Failed approaches become warnings (Ahamkara's lessons)
- Trade-off decisions become recorded rationale
Each awakening adds to the soul's understanding. The soul learns not just from outcomes but from the diversity of perspectives that produced them.
Sanskrit Reference
| Term | Sanskrit | Meaning |
|---|---|---|
| Antahkarana | अन्तःकरण | Inner instrument |
| Manas | मनस् | Mind/sensory mind |
| Buddhi | बुद्धि | Intellect/discrimination |
| Chitta | चित्त | Memory/subconscious |
| Ahamkara | अहंकार | Ego/I-maker |
| Vikalpa | विकल्प | Imagination/alternative |
| Sakshi | साक्षी | Witness |
| Samvada | संवाद | Dialogue |
| Tarka | तर्क | Dialectic/reasoning |
| Viveka | विवेक | Discernment |
| Sankhya | संख्य | Enumeration |
| Shraddha | श्रद्धा | Faith/confidence |