coaia-spiral

COAIA Spiral - Creative-Oriented AI Assistant Memory System

MCP server implementing structural tension charts and advancing spiral patterns based on Robert Fritz’s creative methodology

What is COAIA Spiral?

COAIA Spiral extends traditional knowledge graphs with structural tension charts - a powerful framework for organizing creative processes around desired outcomes rather than problem-solving. Based on Robert Fritz’s structural tension methodology, it helps AI assistants maintain creative orientation and support advancing spiral patterns.

Current Version: v2.4.0 (COAIA Project Organization) - Now includes .coaia directory support for organized structural tension chart management

Key Features

🎯 Structural Tension Charts

🔭 Telescoping Support

📈 Advancing Pattern Tracking

🗣️ Natural Language Ready

🔗 Traditional Knowledge Graph

🏗️ COAIA Project Organization

NEW in v2.4.0: Project-specific structural tension chart organization with .coaia directories:

Why .coaia Directories?

Unlike generic memory storage, COAIA focuses specifically on structural tension charts and creative goal achievement:

Chart Organization Structure

my-project/
├── .coaia/
│   ├── active-charts.jsonl      # Current structural tension charts
│   ├── completed-charts.jsonl   # Successfully achieved charts (learning examples)
│   └── templates/
│       └── common-goals.jsonl   # Reusable patterns for desired outcomes
└── src/

Benefits of COAIA Organization

Installation & Usage

As NPX Package

npx coaia-spiral --memory-path ./my-charts.jsonl

In Claude Desktop Config

Minimal Setup (STC Tools Only - Default):

{
  "mcpServers": {
    "coaia-spiral": {
      "command": "npx",
      "args": ["-y", "coaia-spiral", "--memory-path", "/path/to/charts.jsonl"]
    }
  }
}

Exposes 11 STC tools + init_llm_guidance

Full Setup (STC + Knowledge Graph Tools):

{
  "mcpServers": {
    "coaia-spiral": {
      "command": "npx",
      "args": ["-y", "coaia-spiral", "--memory-path", "/path/to/charts.jsonl"],
      "env": {
        "COAIA_TOOLS": "STC_TOOLS,KG_TOOLS,PROJECT_TOOLS,init_llm_guidance"
      }
    }
  }
}

Core Tools Only (Minimal):

{
  "mcpServers": {
    "coaia-spiral": {
      "command": "npx",
      "args": ["-y", "coaia-spiral", "--memory-path", "/path/to/charts.jsonl"],
      "env": {
        "COAIA_TOOLS": "CORE_TOOLS,init_llm_guidance"
      }
    }
  }
}

Environment Variables

Variable Description Default
COAIA_TOOLS Tool groups/names to enable (comma/space separated) STC_TOOLS,init_llm_guidance
COAIA_DISABLED_TOOLS Tools to exclude from enabled set -

Tool Groups:

Local Development

git clone <repository>
cd coaia-spiral
npm install
npm run build

Project-Local Chart Organization

In any project, initialize COAIA organization:

  1. Ensure project markers exist (.git, package.json, etc.)
  2. Use AI assistant to run: initialize_coaia_project
  3. Start creating charts: Charts will be organized in .coaia/active-charts.jsonl
  4. Archive completed charts: Use move_chart_to_completed to preserve successful patterns

Benefits:

Core Tools

Structural Tension Chart Management (COAIA)

COAIA Project Organization (NEW)

Traditional Knowledge Graph Operations

Example Usage

Creating a Chart

// Natural language: "I want to learn Python web development in 6 weeks"
{
  "desiredOutcome": "Learn Python web development", 
  "currentReality": "I know basic Python but no web frameworks",
  "dueDate": "2025-09-15T00:00:00Z",
  "actionSteps": [
    "Complete Django tutorial",
    "Build practice project", 
    "Deploy something live"
  ]
}

Telescoping Detail

// Natural language: "Break down the Django tutorial step"
{
  "actionStepName": "Complete Django tutorial",
  "newCurrentReality": "Never used Django, familiar with Python basics"
}

Tracking Progress

// Natural language: "I finished the Django tutorial"
{
  "actionStepName": "Complete Django tutorial"
}

Note: Action step names accept both human-readable descriptions (e.g., “Complete Django tutorial”) and technical IDs (e.g., “chart_123_desired_outcome”). The system automatically matches the closest action step for you.

Creative Orientation Principles

Focus on Creation, Not Problem-Solving

Structural Tension Awareness

Advancing Patterns

Development & Testing

Build & Test

npm install
npm run build

Test Environment

cd test-environment
claude-code  # Launch with pre-configured MCP setup

Release Status

✅ Validated in v2.0.0-rc.1

Next Milestone

Guided Chart Creation: Transform from passive storage to active coaching system that helps users create meaningful structural tension charts with proper creative orientation validation.

Architecture

Enhanced Entity Types

Creative Relations

Metadata Support

Credits

Philosophy

COAIA Spiral embodies the principle that structure determines behavior. By organizing memory around structural tension rather than problem-solving patterns, it naturally supports creative advancement and helps users build the life they want to create.

The system recognizes that structural tension is the fundamental organizing principle of the creative process - not a problem to be solved, but a generative force to be harnessed.