Skip to content

About

Stop letting AI say "both sides have a point." A dialectical sparring Agent Skill with Dual Electric Monks, zero-CDN Dialectical Lens HTML, and Karpathy LLM Wiki.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

DIALECTICA

English · 简体中文

Stop letting your AI say "both sides have a point."
A sharp adversarial sparring & dialectical Agent Skill with 6-axis tunable combat & direct-blade theory weaving, isolated Dual Electric Monks, a zero-CDN interactive Dialectical Lens, and a persistent Karpathy LLM Wiki that syncs across sessions.

Live Interactive Demo Supported Agents 516 Tests Passing Pure Markdown Zero CDN MIT License

Try the Live Lens Demo ↗  ·  Before vs. After  ·  Install in 30s  ·  Full Spec

Dialectica Interactive Dialectical Lens — Linear-inspired 5-lens dissection and inspector

Click to open the zero-CDN Interactive Dialectical Lens Demo — 3 presets, 5 overlapping analytical lenses, SVG Tension Map, Dual Electric Monks, and 1-click Wiki / Obsidian Canvas export. Automatically adapts to light & dark mode.


Without Dialectica vs. With Dialectica

Same prompt: "AI is just a neutral tool. AI alignment is ultimately just a safety engineering problem."

Without Dialectica (Default LLM) With Dialectica
"That's a great perspective! On one hand, AI works like a hammer whose impact depends on its user. On the other hand, safety alignment is also very important. Ultimately, we need to strike a careful balance between innovation and ethics. (Argument Clarity: 8/10)" First, cut the load-bearing beam: "neutral tool." That phrasing collapses Bruno Latour's distinction between a passive intermediary and an active mediator — a hammer doesn't rewrite your hand's preferences while you swing it, whereas RLHF reward models, annotation rubrics, and interface defaults actively filter what counts as reasonable speech. Worse, it triggers Charles Goodhart's metric-gaming loop: once "human values" are compressed into an optimization proxy, the proxy starts domesticating the very expression it claims to serve.

Your move (R2 Cross-Examination):
1. Immanent Reductio: If the model is truly a neutral tool, why does alignment target value judgments rather than mechanical failure rates?
2. Burden Shift: Framing governance as pure engineering hides who holds authority to define "safety" behind Lacan's University Discourse (neutral metrics masking sovereign defaults) — how do you defend that seat?

(Use /adjust, /switch, /meta, or /monks at any turn.)

Direct-Blade Theory Weaving + Deletion Test (RL-5): Strip out Latour, Goodhart, and Lacan, and every cut still slices cleanly on its own — yet naming them directly inside combat means you walk away from every round with sharp, reusable intellectual weapons.


Why: Fixing the 6 Defaults That Ruin AI Thinking

Ask a standard LLM to challenge an idea and the same six RLHF habits show up across every model. Dialectica enforces six hard invariants (RL-1–RL-6) that intercept them before output:

What generic AI defaults to The thinking trap Dialectica's invariant
"At its essence… / History inevitably leads to…" Essentialism & teleology RL-1 — Trace the historical, institutional, and technical conditions that stabilized X, and what breaks when they shift.
"Logic: 8.5/10 — Affirmative wins!" Courtroom refereeing RL-2 — Zero numeric scores, rubrics, or win/loss verdicts. Structural diagnostics only.
Accepts loaded buzzwords at face value Transparent-language illusion RL-3 — Unpack 1–2 load-bearing words or hidden presuppositions before arguing inside your vocabulary.
"Platforms are greedy / users lack willpower" Linear moral melodrama RL-4 — Map feedback loops, incentive topologies, and apparatuses that reproduce the outcome even among well-intentioned actors.
"As Foucault / Lacan / Luhmann argues…" (or hiding all theory so you learn nothing new) Scholastic bullying / silent hiding RL-5 — Direct-Blade Theory Weaving + Deletion Test: weave named mechanisms and thinkers directly into live cuts so you learn real tools, while ensuring deleting every theorist's name still leaves a razor-sharp argument.
"Both sides have valid points — find a balance" Vulgar compromise RL-6 — Hold irreducible contradictions open until they drive immanent breakthrough or reframe the problem space.

How It Works

Dialectica is not a giant system prompt that lectures you in five rigid bullet points. It pairs a compact <150-line kernel with on-demand instruments, hermetically isolated subagents, and persistent memory.

1. Caddie Invisible Routing (S1–S7)

Like an elite golf caddie handing you one exact club, Dialectica silently reads the conversational state and loads only 1–2 of its 6 instrument cards per turn — never dumping a robotic "Step 1… Step 5" checklist in normal dialogue.

flowchart LR
    U["Your claim, deadlock,<br/>or reflection"] --> C{"Caddie Router<br/>(S1 – S7)"}
    C -->|"S1 Opening"| I1["01 Semiotic Unpack<br/>02 Mediation Trace"]
    C -->|"S2 Pushback"| I3["03 Immanent Break<br/>(Self-Collision)"]
    C -->|"S3 Deadlock / Loop"| I6["06 Dual Electric Monks<br/>(Isolated Collision)"]
    C -->|"S4 Frame Collapse"| I5["05 Reframe Engine<br/>(Concept Engineering)"]
    C -->|"S5 / S7 Reflect & Sync"| W["04 Second-Order +<br/>Lens HTML · Wiki · Cloud Sync"]
Loading

2. Adversarial Sparring Arena — 6-Axis Opponent Controls, Direct-Blade Theory & 5-Min Drills

Beyond open-ended inquiry, sparring-protocol.md puts the AI across the ring as a precision adversarial trainer:

  • 3 Combat Formats: Structured Rounds (R1 Opening → R2 Cross-Examination → R3 Rebuttal & Rebuild → R4 Closing), Socratic Pressure, and 3-Sentence Blitz (5 rounds).
  • 6 Independent Opponent Axes: Tune Attack Pressure (1–10), Flaw Exposure (0–5, deliberate fallacies to hunt), Strategy Diversity (1–5), Theory & Rhetoric Intensity (1–5), Steelman Strength (0–3), and Dimension Focus in natural language — plus live mid-battle commands (/pause, /hint, /switch, /adjust, /meta, /monks).
  • Dual-Layer Real-Time Alerts + Non-Numeric 6-Dim CoT Diagnostics + 5-Min Micro-Drills: Zero numeric grades (RL-2); instead, quote-anchored Chain-of-Thought diagnostics classify 6 structural dimensions (Broken / Strained / Unsealed / Solid / Generative), surface turning points plus every deployed tactic & theory lineage, and generate a targeted 5-minute micro-drill on your most fragile link.

3. Dual Electric Monks — Breaking Multi-Agent Sycophancy

Normal "multi-agent debate" fails in two well-documented ways: single-context self-reflection stagnates (Degeneration-of-Thought, Liang et al., EMNLP 2024), while agents that can see each other's drafts collapse into polite premature consensus (Inter-Agent Sycophancy, Yao et al., 2025).

Dialectica's Instrument 6 flips Douglas Adams's Electric Monk into a three-phase collision engine (and lets you step into the ring to spar directly against either steelmanned Monk afterward):

  1. Asymmetric Paradigm Split: Split a neutral problem seed into two genuinely incompatible paradigms (never pro-vs-con on the same scorecard).
  2. Hermetically Isolated Steelmanning: Two subagents (Monk A and Monk B) reason in parallel with zero cross-visibility and a strict Anti-Hedging Seal — each must own its sharpest Explicitly Accepted Costs.
  3. Non-Compromise Collision: The main agent collides both sealed briefs to surface Irreducible Axes of Incompatibility, Shared Hidden Premises, and Reframed Open Questions — zero voting, zero scoring, zero 50/50 split.
Dialectica Dual Electric Monks — Isolated Paradigm Collision

No subagent runtime? Instrument 6 steps down gracefully across a 3-tier fallback ladder (native parallel subagents → isolated CLI worker → sealed single-context blind simulation).

4. Interactive Dialectical Lens + Karpathy LLM Wiki + Cloud Genealogy Sync

  • Zero-CDN Dialectical Lens HTML: Generates a self-contained .html artifact (opens natively in Antigravity's side pane or offline via file:// in any browser) with a Linear-inspired dual-theme UI, 5 overlapping semantic lenses, an interactive SVG Tension & Mediation Map with causal flow highlighting, a Dual Electric Monks view, a Live Custom JSON Studio, and 1-click .md / .canvas export.
  • Non-Premodern Karpathy LLM Wiki & Obsidian Canvas 1.0: Compiles sessions into a three-layer vault (raw/ strictly immutable, wiki/ LLM-maintained with wiki/index.md + grep-able wiki/log.md, and wiki/aporias/ treating unresolved contradictions as first-class citizens — zero numeric confidence scores). Exports valid Obsidian JSON Canvas Spec 1.0 graphs (sample-dialectica.canvas).
  • Harness-Adaptive Cross-Session Cloud Sync: Auto-detects connected Google Drive, Notion, or Git / local Obsidian Vault interfaces to maintain your non-scored thinking genealogy (wiki/profile.md) across sessions. When your thinking evolves or contradicts an earlier note on the same slug, Dialectica never silently overwrites the old view — it tracks the drift and routes unresolved tension into wiki/aporias/.

Install in 30 Seconds

Option A — Try Without Installing

Open the Interactive Live Demo ↗ directly in your browser, or run locally after cloning:

open dialectica/demo/dialectical-lens-demo.html

Option B — Paste One Prompt Into Your Agent (Fastest)

Open Google Antigravity, OpenAI Codex, or Claude Code and paste:

Clone https://github.com/Rockiez/dialectica.git and install the dialectica/ skill package globally for my current agent (~/.gemini/config/skills/dialectica for Antigravity, ~/.agents/skills/dialectica for Codex, or ~/.claude/skills/dialectica for Claude Code). If installing into a workspace .agents/skills/dialectica, use a physical copy (cp -R) rather than a symlink.

Option C — Manual CLI Install

Google Antigravity (App / CLI / IDE)
git clone --depth 1 https://github.com/Rockiez/dialectica.git
cd dialectica

# Global install (App + CLI + IDE)
mkdir -p ~/.gemini/config/skills
rm -rf ~/.gemini/config/skills/dialectica
cp -R dialectica ~/.gemini/config/skills/dialectica

# Or project-local install (physical copy — do NOT symlink inside workspace .agents/skills/)
mkdir -p /path/to/your-project/.agents/skills
rm -rf /path/to/your-project/.agents/skills/dialectica
cp -R dialectica /path/to/your-project/.agents/skills/dialectica

Invoke with /dialectica or simply present a thesis or deadlock.

OpenAI Codex (CLI / Desktop / SDK)
git clone --depth 1 https://github.com/Rockiez/dialectica.git
cd dialectica

# Canonical global path
mkdir -p ~/.agents/skills
rm -rf ~/.agents/skills/dialectica
cp -R dialectica ~/.agents/skills/dialectica

Invoke with $dialectica, select Dialectica from /skills, or let implicit invocation trigger automatically. (Legacy ~/.codex/skills/dialectica is also supported if needed.)

Claude Code & Other Agent Skills Clients
git clone --depth 1 https://github.com/Rockiez/dialectica.git
cd dialectica

mkdir -p ~/.claude/skills
rm -rf ~/.claude/skills/dialectica
cp -R dialectica ~/.claude/skills/dialectica

Invoke with /dialectica. Follows the open Agent Skills specification.

Try These 3 Prompts Right After Installing

1. Run a head-to-head sparring match (direct-blade theory + 6-dim diagnostics & 5-min drill):
   /dialectica Let's run a structured debate on "Open-weight frontier AI does more good than harm." I'll take affirmative; set attack pressure 9, Steelman 3, theory intensity 5, weave theories directly in combat, and finish with a non-scored 6-dim diagnostic + 5-min micro-drill.

2. Break a deadlock with isolated paradigms (and optionally challenge one Monk directly):
   Run Dual Electric Monks on whether algorithmic feeds empower or domesticate human agency — no compromise; then let me spar directly against one of the Monks.

3. Crystallize into a visual artifact & persistent Wiki:
   Turn this discussion into a Karpathy LLM Wiki entry, sync it to my Notion / Google Drive, and render an interactive Dialectical Lens HTML.

What Dialectica Is NOT

  • Not a debate judge or grader. It will never hand you 8.5/10, a graded rubric, or a winner/loser verdict — instead it runs quote-anchored 6-dimension structural diagnostics and 5-minute micro-drills.
  • Not a jargon-bullying philosophy dictionary. It never drops names as a substitute for reasoning (RL-5 Deletion Test), yet it refuses to hide its intellectual arsenal — weaving named theories directly into live cuts so you learn concrete tools every session.
  • Not a polite yes-man. If you want validation or a lukewarm "pros and cons" list, standard chat already does that.

Works 100% offline and pure-Markdown (zero Python/Node runtime required for the skill itself), with full graceful degradation when web search, subagents, Obsidian, or cloud connectors are unavailable — see the Graceful Degradation Matrix.


Engineering & Verification

Package Layout (15 Canonical Deliverables)
dialectica/
├── SKILL.md                                  # Core kernel (<150 lines): RL-1..RL-6, Caddie Routing & Direct-Blade rules
├── README.md                                 # Contract-verified package spec & degradation matrix
├── agents/openai.yaml                        # Codex UI, accent (#B5432A) & implicit invocation policy
├── references/
│   ├── instruments/
│   │   ├── 01-semiotic-unpack.md             # Semiotic, pragmatic & performative dissection
│   │   ├── 02-mediation-trace.md             # Historical & technical mediation tracing
│   │   ├── 03-immanent-break.md              # Immanent critique & systemic feedback loops
│   │   ├── 04-second-order.md                # Second-order observation & enunciative seat
│   │   ├── 05-reframe-engine.md              # Problematization & conceptual engineering
│   │   └── 06-electric-monks.md              # Dual Electric Monks isolated collision protocol
│   ├── sparring-protocol.md                  # Adversarial Arena: 3 modes, 6-axis controls, live commands, 6-dim diagnostics & 5-min drills
│   ├── sourcing-protocol.md                  # 3 Admission Gates, 4-tier retrieval & 4 epistemic tags
│   └── wiki-schema.md                        # Karpathy LLM Wiki, Cloud Sync (§9) & JSON Canvas 1.0
├── templates/dialectical-lens.html           # Zero-CDN reusable Lens HTML template
└── demo/
    ├── dialectical-lens-demo.html            # 3-preset interactive live demo (mirrored to docs/index.html)
    └── sample-dialectica.canvas              # 17-node / 15-edge Obsidian JSON Canvas 1.0 exemplar
  • .agents/skills/dialectica/ — Byte-identical physical mirror (zero symlinks) for automatic workspace discovery.
  • tests/ — 170 unit tests + 346 Tiers 1–5 E2E & adversarial tests + 30-case anti-vacuity mutation harness.
  • Architecture, design & test docs: DESIGN.md · PROJECT.md · TEST_INFRA.md · TEST_READY.md.
Running the 516-Test Verification Suite
# Unit suites (170 tests; requires Python 3.11+, PyYAML, and Playwright for M4 UI tests)
DIALECTICA_SKILL_DIR="$(pwd)/dialectica" python3 -m unittest discover -s tests/unit -p 'test_m*.py'

# Full E2E Tiers 1-5 (346 tests; requires Playwright Chromium/Firefox)
DIALECTICA_TARGET_ROOT="$(pwd)" python3 tests/e2e/run_e2e.py --tier 1-5

MIT License · Built for thinkers who would rather break a bad frame than win a rigged debate.

About

Stop letting AI say "both sides have a point." A dialectical sparring Agent Skill with Dual Electric Monks, zero-CDN Dialectical Lens HTML, and Karpathy LLM Wiki.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages