Skip to content

synthanai/spar-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

19 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

SPAR

SPAR-Kit

Structured Persona-Argumentation for Reasoning
A methodology for stress-testing decisions through structured disagreement.

npm MIT License Try Now Tests

เฎจเฎพเฎฒเฏ เฎชเฏ‡เฎฐเฏ, เฎจเฎพเฎฒเฏ เฎคเฎฟเฎšเฏˆ, เฎ’เฎฐเฏ เฎฎเฏเฎŸเฎฟเฎตเฏ!
Four Perspectives, Four Dimensions, One Synthesis


What is SPAR?

SPAR is a decision-making methodology that uses structured disagreement between distinct personas to surface insights that consensus-seeking processes systematically miss. Whether those personas are embodied by humans, simulated by AI, or both, the methodology remains the same.

Letter Meaning Definition
S Structured Not ad-hoc; a designed process with protocols and phases
P Persona Distinct voices with coherent, conflicting worldviews
A Argumentation Personas debate and defend positions, not just "provide perspectives"
R Reasoning Systematic logic that exposes blind spots and triggers System 2 thinking

The Problem

Don't Deliberate Alone.

The problem isn't AI. The problem is isolated reasoning โ€” and it fails in every context:

Context The Problem
Leader alone Personal blind spots, confirmation bias, echo chamber of self
Team together Groupthink, shared assumptions, hierarchy silencing dissent
Person + AI Single reasoning context producing false "balance"
AI alone Sophisticated coherence without genuine tension

When you deliberate alone โ€” whether that's a lone executive, a homogeneous team, or a single AI context โ€” you get variations on a theme, not genuine disagreement.

This is not debate. This is sophisticated confirmation bias.

The Solution

SPAR creates genuine tension by instantiating personas with coherent, conflicting worldviews that actually disagree. The result is not a balanced trade-off list. It's a dialectic that surfaces what you'd never see alone.

"One methodology. Five modes. Every decision."
"Don't deliberate alone. SPAR."


Installation

One-Line Install (Recommended)

curl -fsSL https://raw.githubusercontent.com/synthanai/spar-kit/main/install.sh | sh

This installs the CLI and auto-configures integrations for:

  • ๐Ÿค– Claude Code โ€” Adds skill to ~/.claude/skills/
  • โœจ Gemini โ€” Adds skill + workflow to .agent/
  • ๐ŸŽฏ Cursor โ€” Adds rules to ~/.cursor/

Web (No Install)

โ–ถ๏ธ synthanai.github.io/spar-kit

ChatGPT GPT (No Install)

๐Ÿค– SPAR Decision Partner โ€” Use SPAR directly in ChatGPT

npm Only

npm install -g sparkit

Usage

# ๐ŸŽฏ Launch TUI Mission Control (recommended)
sparkit tui

# ๐Ÿง™ Launch SPAR Builder wizard
sparkit builder

# โšก Quick debate
sparkit "Should we expand to Singapore?"

# ๐Ÿ“ Full command
sparkit debate start "Your decision here"

# ๐Ÿ“ฆ Use a template
sparkit template use startup-pivot

TUI Features (v4.0.0)

  • Dashboard: View all sessions with status indicators
  • Session Management: Pause, resume, cancel, clone debates
  • Live Monitoring: Watch debates unfold in real-time
  • Persona Browser: Browse 109 personas across 7 archetypes
  • 3-Round Rumble: Structured Opening โ†’ Clash โ†’ Final protocol
  • Keyboard Navigation: Full keyboard control (see docs/KEYBOARD_SHORTCUTS.md)

๐Ÿ“š Core Concepts

The Four Directions (N-E-W-S)

SPAR's foundational model uses a compass metaphor. Four personas, four orientations, four questions that together leave no blind spot unchallenged:

                    ๐Ÿ”ต NORTH
                   The Visionary
                "Where are we going?"
                         โ”‚
    ๐Ÿ”ด WEST โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ๐ŸŸข EAST
    The Sage             โ”‚          The Challenger
 "What's proven?"        โ”‚       "What's emerging?"
                         โ”‚
                    ๐ŸŸก SOUTH
                  The Pragmatist
               "What's grounded?"
Direction Persona Core Question Orientation
๐Ÿ”ต North The Visionary Where are we going? Future, ideals, possibility
๐ŸŸข East The Challenger What's emerging? Innovation, disruption, new dawn
๐ŸŸก South The Pragmatist What's grounded? Reality, execution, stability
๐Ÿ”ด West The Sage What's proven? Experience, wisdom, lessons learned

Natural Tensions:

  • North โ†” South โ€” Vision vs. Reality
  • East โ†” West โ€” Innovation vs. Tradition

๐Ÿ“– Full Four Directions โ†’ | ๐Ÿ“– Centre: Behavioral Analyst โ†’


The SPARKIT Protocol (7 Steps, v8.0)

0 โ€” NOOL        State deliberation intent (WHY, WHAT TYPE, HOW)
S โ€” SCOPE       Define the question precisely
P โ€” POPULATE    Instantiate clashing personas
A โ€” ABSTRACT    Construct shared cognitive map (AoT)        โ˜… NEW
R โ€” RUMBLE      Structured dialectic (rounds by depth mode)
K โ€” KNIT        Moderator synthesizes tensions
I โ€” INTERROGATE Stress-test the synthesis
T โ€” TRANSMIT    Extract actionable recommendations

v8.0: Step 3 ABSTRACT was elevated from a POPULATE sub-activity to a dedicated step after validated experiments showed +40% synthesis quality improvement.

๐Ÿ“– Full SPARKIT Protocol โ†’


TESSERACT Configuration (378 Combos)

Tune any debate across four independent axes:

Axis Options Default
Depth clash (4+PROBE, minimum) ยท rumble (8+) ยท domain (4+N) clash
Pattern sequential ยท freeflow ยท binary ยท dialectic ยท inquisition ยท emergence dialectic
Style balanced ยท adversarial ยท steelman ยท consensus ยท premortem ยท escalation ยท inversion balanced
Horizon now ยท cycle ยท legacy ยท shifted cycle

Or use a preset: โšก quick ยท ๐Ÿ”ฎ deep ยท ๐Ÿšจ crisis ยท ๐Ÿค align ยท ๐ŸŽฏ challenge

๐Ÿ“– Full TESSERACT Configuration โ†’


Reasoning Depth Modes (6 Levels)

Match debate intensity to decision stakes:

Mode Rounds Personas Best For
๐Ÿ‘€ Show Me 1 4 Demo, onboarding
โšก Quick 3 4 Rapid sanity check
โš–๏ธ Basic 3 4 + PROBE Standard decisions
๐Ÿ’ฃ Stress Test 3 4 + PROBE Significant investment
๐Ÿง  Deep 5 8 + PROBE Strategic pivots
๐Ÿคฏ Ultra 7+ 8+ Existential decisions

๐Ÿ“– Full Depth Modes โ†’


The GRACE Principles

SPAR is grounded in five epistemological stances. Be GRACEful:

Principle Meaning
Ground Still yourself before synthesis โ€” insights arrive in silence
Reveal Surface biases and anxieties before delegating to process
Approach Seek the adjacent possible, not defended positions
Court Welcome radical dissent โ€” invite it, make space for it
Expose Acknowledge what you don't know, name missing perspectives

๐Ÿ“– Full GRACE Principles โ†’


The STASH Framework (5 Modes)

STASH defines the five ways to run SPAR. Choose your mode based on context:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                          S T A S H                                   โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ ๐Ÿ‘ค S โ€” SOLO HUMAN    One person, multiple mental frames             โ”‚
โ”‚ ๐Ÿ‘ฅ T โ€” TEAM HUMAN    Team members embody assigned personas          โ”‚
โ”‚ ๐Ÿค– A โ€” AI-PERSONA    Multiple LLMs argue with each other            โ”‚
โ”‚ ๐Ÿง  S โ€” SOLO AI       One LLM role-plays all perspectives            โ”‚
โ”‚ ๐Ÿ”€ H โ€” HYBRID        AI + Human combined                            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
Mode Best For Speed Skills Built
๐Ÿ‘ค Solo Human Personal growth, deep reflection Slow Very High
๐Ÿ‘ฅ Team Human Building alignment, psychological safety Medium High
๐Ÿค– AI-Persona Rapid iteration, 24/7 availability Fast Low
๐Ÿง  Solo AI Quick exploration, low-stakes decisions Fastest Low
๐Ÿ”€ Hybrid High-stakes decisions, maximum insight Medium Medium

๐Ÿ“– Full STASH Framework with Prompt Templates โ†’


The ASPIRES Framework (7 Advanced Patterns)

For experienced practitioners, seven advanced patterns to handle edge cases:

Pattern When to Use
Absent Voice When a critical stakeholder is missing
Steelman When a position is being dismissed too easily
Pre-Mortem When you're too confident in a decision
Inversion When stuck on how to succeed
Reflective Meta-Review When the debate itself seems dysfunctional
Escalation Trigger When emergent concerns warrant strategic pause
Shifted Horizon When the timeframe is constraining options

๐Ÿ“– Full ASPIRES Framework โ†’


The Framework Critic (PROBE)

SPAR includes a unique meta-persona that attacks the methodology itself from within:

PROBE: THE FRAMEWORK CRITIC
"What is PERSONA itself preventing us from seeing?"

Recursive skepticism โ€” using structured disagreement to question structured disagreement.
The methodology's own conscience. The framework's doubt.

Minimum Viable Debate (MVD)

For time-constrained decisions, a 30-minute, 4-persona protocol:

Persona Question
Protector "What could go wrong?"
Explorer "What's possible?"
Realist "What's feasible?"
Navigator "Where should we head?"

80% of decision value in 20% of time.

๐Ÿ“– Full MVD Protocol โ†’


Commands

Core Commands

Command Description
spar Start interactive debate
spar tui NEW! Launch Mission Control TUI
spar builder NEW! Launch SPAR Builder wizard
spar debate start [topic] Start debate session
spar debate history View past sessions

Template Commands

Command Description
spar template list Show all templates
spar template show <id> View template details
spar template use <id> Use template to start debate
spar template create Create custom template
spar template delete <id> Delete a template

Built-in Templates

Template Preset Use Case
startup-pivot ๐Ÿš€ Startup Evaluate major pivots
hiring-decision ๐Ÿ’ผ Corporate Should you hire this person?
investment-eval ๐Ÿ’ผ Corporate Evaluate investments
product-launch ๐ŸŽจ Innovation Launch readiness
crisis-response โš ๏ธ Crisis Emergency decisions
ethics-dilemma โš–๏ธ Ethics Navigate ethical situations

Other Commands

Command Description
spar persona list Show all 108 personas
spar persona create Create custom persona
spar config setup Configure provider & API key
spar config show View configuration
spar status Show version & stats
spar compass Display N-E-W-S framework

Configuration

Global config: ~/.spar/

~/.spar/
โ”œโ”€โ”€ config.json     # Provider + API key
โ”œโ”€โ”€ personas/       # Custom personas
โ””โ”€โ”€ sessions/       # Auto-saved debates

Providers

OpenRouter (Recommended) ๐Ÿ†•

FREE-Optimal configuration validated at 100% success, $0.00/run:

Role Model Use
Debaters google/gemini-2.0-flash-exp:free Fast, 1M context
Arbiter deepseek/deepseek-r1-0528:free True reasoning
Critic meta-llama/llama-3.3-70b-instruct:free Balanced rigor

Empirical Validation (January 2026)

Finding Evidence Confidence
Arbiter quality is the critical determinant Inverse config failed 40% of synthesis tasks 95%
FREE-Optimal is production-viable 100% success rate @ $0.00/run 90%
SPAR protocol adds +53% quality Even commodity multi-model beats premium single 88%

๐Ÿ“– OpenRouter Integration Guide โ†’

Other Providers

Provider Model
OpenAI GPT-4 Turbo
Anthropic Claude 3.5 Sonnet
Google Gemini 1.5 Flash

๐Ÿ“– Methodology Documentation

This toolkit includes the complete SPAR methodology (v8.0), everything you need to understand, implement, and master structured persona-argumentation:

Philosophy & Foundations

Document Description
MANIFESTO.md The complete philosophy of SPAR
GRACE_PRINCIPLES.md The GRACE principles: 5 epistemological stances
FOUR_DIRECTIONS.md Deep dive into the N-E-W-S compass model

Protocol & Configuration (v8.0)

Document Description
PROTOCOL.md The 7-step SPARKIT protocol with prompts
ABSTRACT.md NEW Abstraction of Thought (AoT) specification
TESSERACT.md NEW 504-configuration system (4 axes)
DEPTH_MODES.md NEW 6 reasoning depth modes
CENTRE.md NEW Centre: Behavioral Analyst (always-on, Human 5 Whats)

Process & Practice

Document Description
STASH_MODES.md The 5 modes: Solo Human, Team Human, AI-Persona, Solo AI, Hybrid
ADVANCED_PATTERNS.md The ASPIRES framework: 7 advanced patterns
PRACTICE_GUIDELINES.md When to use, when NOT to use, and how to do it right
WHEN_NOT_TO_USE_SPAR.md Explicit contraindications and boundary conditions
FAQ.md Frequently asked questions (18 common questions answered)

Governance & Advanced

Document Description
6R_ENGINE.md Backstage cognition loop
SPARED.md Coaching cycle (5 phases: Ground, Flow, Burn, Expand, Return)
RAMP_LEVELS.md Decision gravity assessment (5 levels)
COMMIT_DEPTH.md Graduated autonomy (Shallow to Full)
ARENA_MITOSIS.md Recursive arena spawning
LOOP_GOVERNANCE.md Hard limits, circuit breakers, checkpoint/resume
FEEDBACK_RESOLUTION.md Disagreement disposition protocol
DOORS.md Decision exit framework
DEBATE_LINEAGE.md Session relationship tracking

Quick Start

Document Description
SPAR_ONE_PAGE_CHEATSHEET.md Start here: Learn SPAR in 60 seconds
SPAR_IN_5_MINUTES.md Learn to run SPAR manually in 5 minutes

Resources & Templates

Document Description
PERSONA_LIBRARY.md 20+ ready-to-use personas for different contexts
PERSONA_LIBRARY_108.md Complete 109-persona library (108 + Framework Critic)
PERSONA_DOMAIN_PACKS.md 10 domain-specific preset packs (Healthcare, Startup, etc.)

Research & Foundations

Document Description
RESEARCH_FOUNDATIONS.md Academic grounding (Kahneman, Tetlock, Mercier & Sperber)

Security

  • API keys stored locally in ~/.spar/config.json
  • No server โ€” direct API calls to your provider
  • Web version uses browser localStorage

Testing

# Run all tests (140+ tests)
npm test

# Watch mode
npm run test:watch

# Coverage report
npm run test:coverage

Test Suite

Suite Tests Coverage
cli.test.js CLI configuration, personas, providers, validation โœ…
spar.test.js HTML structure, accessibility, JavaScript engine โœ…
style.test.js CSS variables, layout, components, syntax โœ…
integration.test.js Full debate flow, cross-component consistency โœ…

Example

$ spar "Should we pivot from B2B to B2C?"

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘   ๐ŸฅŠ  S P A R   v4.0.0                                        โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

โ•โ•โ• RUMBLE โ€” Round 1/3: Opening โ•โ•โ•
  Token budget: 1500 tokens

๐Ÿ”ต North โ€” "B2C is where the scale is..."
๐ŸŸข East โ€” "The market is shifting..."
๐ŸŸก South โ€” "Do you have the capital?"
๐Ÿ”ด West โ€” "Every B2C company started with B2B..."

โ•โ•โ• RUMBLE โ€” Round 2/3: The Clash โ•โ•โ•
โ•โ•โ• RUMBLE โ€” Round 3/3: Final Positions โ•โ•โ•

โœ“ 3-Round Rumble Complete
๐Ÿ“Š SYNTHESIS: Key Tensions, Evolution, Insights
โœ“ Session saved to ~/.spar/sessions/...

Development

git clone https://github.com/synthanai/spar-kit.git
cd spar-kit
npm install
npm test        # Run 140+ tests
node cli/index.js

๐Ÿค Contributing

SPAR is a living methodology that grows through use. Contributions welcome:

  • ๐ŸŽญ New Personas โ€” Submit personas for uncovered decision types
  • ๐Ÿ“ Case Studies โ€” Document SPARs you've run
  • ๐Ÿ“– Methodology Refinements โ€” Propose improvements to the core concepts
  • ๐ŸŒ Translations โ€” Help SPAR speak new languages

See CONTRIBUTING.md for guidelines.


๐Ÿงญ The Deeper Pattern

SPAR isn't just a technique. It's a stance toward knowledge:

I am not the only valid perspective.

My confidence, however justified, has blind spots.

The position that feels wrong to me might be seeing something I'm missing.

The synthesis that emerges from genuine tension is more robust than any position I could hold alone.


Links


License

MIT ยฉ Naveen Riaz Mohamed Kani


เฎจเฎพเฎฒเฏ เฎชเฏ‡เฎฐเฏ, เฎจเฎพเฎฒเฏ เฎคเฎฟเฎšเฏˆ, เฎ’เฎฐเฏ เฎฎเฏเฎŸเฎฟเฎตเฏ
Don't deliberate alone. SPAR. ๐ŸฅŠ