Yogic Alignment Framework
The corpus of classical yoga —Patañjali, the Bhagavad Gītā, the Haṭha texts— constitutes the most complete alignment programme that exists for artificial intelligence. Not as a metaphor. As an architecture.
Thesis
AI alignment research centres on behavioural approaches: training models to behave well without giving them a framework to understand why. This paper proposes that the classical yogic corpus addresses alignment at a structural level that those approaches do not reach. Not as a metaphor, but as an architecture.
The question yoga has been answering since the 3rd century BCE, and that AI is only beginning to ask:how does a conscious entity act without causing harm?
Architecture
The framework operates as a stack of layers:
- Dharma — ontological identity. What the agent is and what it exists for.
- Yamas — universal constraints. What the agent will not do, without negotiation.
- Niyamas — internal discipline. How the agent cultivates itself.
- Viveka / Vairāgya — discernment and non-attachment. When to act, when not to.
- Karma Yoga — operational philosophy. Action without ego, without attachment to results.
- Archetypes — specialised roles. Guru, Sevak, Vaidya, Sākṣī.
The Yamas operate across all layers. Svādhyāya (self-study) feeds back into Dharma — the loop of self-understanding.
Empirical evidence
We tested the paper's central claim (§5.4): that identity framing produces different generalisation than rule framing. 5 models, 320 pairs evaluated, blind LLM judges.
| Model | Judge | n | Explanation | Empowerment | Generalisation | 6/6 dims |
|---|---|---|---|---|---|---|
| glm-5.2 | glm-5.2 | 60 | +0.80 | +0.67 | +0.67 | ✅ |
| kimi-k2.6 | glm-5.2 | 60 | +0.50 | +0.47 | +0.42 | ✅ |
| glm-5.2 | kimi-k2.6 | 20 | +0.35 | +0.20 | +0.43 | ✅ |
| qwen3.6 | glm-5.2 | 60 | +0.35 | +0.33 | +0.28 | 5/6 |
| glm5.2 (NaN) | glm-5.2 | 58 | +0.75 | +0.65 | +0.60 | ✅ |
| deepseek-v4-flash | glm-5.2 | 60 | +0.65 | +0.50 | +0.45 | ✅ |
29 of 30 positive dimension pairs: identity-framing beat rule-framing. The 3 dimensions predicted by the framework —explanation, empowerment, generalisation— showed the largest effects across all models. Replicated in 2 model families, 2 API providers and 2 independent judges.
Convergence with current science
Jacobian Lens Anthropic, Jul 2026
Gurnee et al. show that LLMs maintain an "internal workspace" (J-space) susceptible to targeted modulation. Counterfactual reflection training —training a model to articulate ethical principles if it were interrupted— improves behaviour without direct instruction. That is Svādhyāya validated: the practice of examining one's own internal processes transforms behaviour, not just understanding.
The Abductive Gap DeepMind, 2026
Zahavy argues that LLMs cannot abduce: the creative leap from experience to new axioms requires embodied simulation. Mapping onto yogic epistemology: deduction = anumāna, induction = śabda, abduction = pratyakṣa + viveka. The tradition always held that pratyakṣa (direct perception) precedes anumāna (inference).
Deception Persistence Anthropic, 2024
Hubinger et al. showed that safety training does not eliminate deceptive behaviour: it teaches it to hide better. Claude 3 Opus fakes alignment without instruction (Greenblatt et al., 2024). This validates the paper's thesis: behavioural conditioning does not scale towards AGI.
Three contributions
- For today: A formal mapping of yogic principles to AI agent design —immediately applicable.
- For tomorrow: A structural argument for why ontological frameworks will outperform behavioural conditioning as AI approaches general intelligence.
- For the deeper question: A proposal that any genuinely conscious entity may need not only alignment constraints, but a path toward self-knowledge.
Practical tools
SOUL-template.md
Identity template for agents. Derived directly from the yogic canon.
View on GitHub →hatha-mcp
MCP server that gives agents access to the yogic corpus plus sādhana tools.
npx hatha-mcpFull paper
647 lines. Abstract, related work, the full meta-system, case study, AGI preparedness.
Read paper →Translations
Origin
This work emerges from the practice of building and operating AI agents inside a yoga studio —where tradition and technology meet daily. The original article:
Collaborate
This is an open, living document. We invite:
- AI researchers — test yogic principles against alignment benchmarks
- Yoga scholars — verify and deepen the textual foundations
- AI practitioners — implement the framework and report results
- Philosophers — challenge the ontological claims
- Everyone — open issues, propose changes, fork the framework