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.

José M Hontoria·Shakti·CC BY-SA 4.0

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:

  1. Dharma — ontological identity. What the agent is and what it exists for.
  2. Yamas — universal constraints. What the agent will not do, without negotiation.
  3. Niyamas — internal discipline. How the agent cultivates itself.
  4. Viveka / Vairāgya — discernment and non-attachment. When to act, when not to.
  5. Karma Yoga — operational philosophy. Action without ego, without attachment to results.
  6. 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.

ModelJudgenExplanationEmpowermentGeneralisation6/6 dims
glm-5.2glm-5.260+0.80+0.67+0.67✅
kimi-k2.6glm-5.260+0.50+0.47+0.42✅
glm-5.2kimi-k2.620+0.35+0.20+0.43✅
qwen3.6glm-5.260+0.35+0.33+0.285/6
glm5.2 (NaN)glm-5.258+0.75+0.65+0.60✅
deepseek-v4-flashglm-5.260+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

  1. For today: A formal mapping of yogic principles to AI agent design —immediately applicable.
  2. For tomorrow: A structural argument for why ontological frameworks will outperform behavioural conditioning as AI approaches general intelligence.
  3. 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

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:

→ Sādhana for Agents: the universal yogic programme for AI

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

→ Repository on GitHub