# Hegelion

> Dialectical reasoning and autocoding via Hegelion MCP tools. Use when this capability is needed.

- Skill: `tomevault-io/hegelion` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/hegelion`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/hegelion/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/hegelion

---


# Hegelion Skill

## Routing

| Task type | MCP call |
|-----------|----------|
| Analysis/decision | `mcp__hegelion__dialectic(query, mode="single_shot", response_style="synthesis_only")` |
| Implementation | `mcp__hegelion__autocode(requirements, mode="init")` |

Tip: If execution is configured, set `execute=true` and `backend="auto"` on `dialectic` mode=single_shot to return the final answer in one call.

## Autocoding Loop

```
mcp__hegelion__autocode(requirements, mode="init")
    -> autocode_turn(role="player") -> [implement]
    -> autocode_turn(role="coach", execute=true, backend="auto", cwd="<workspace>") -> [independent verify]
    -> autocode_turn(role="advance", coach_feedback=..., approved=false)
           ^                                                            |
           |________________ loop until APPROVED or max_turns __________|
```

## Codex Role Rules

- The current Codex session is always the PLAYER.
- The coach step should be executed through Hegelion, not answered directly in the current session.
- Prefer a separate Codex backend for the coach by using `backend="auto"`.
- If `backend="auto"` falls back to prompt-only output, surface that independent coach execution is unavailable. Do not turn the current session into the coach.
- COACH is authoritative. Run tests. Never self-approve.

---
> Source: [Hmbown/Hegelion](https://github.com/Hmbown/Hegelion) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-20 -->

