Skip to main content

AURORA: Adaptive Unified Reasoning and Orchestration Architecture with MCP Integration

Project description

   █████╗ ██╗   ██╗██████╗  ██████╗ ██████╗  █████╗
  ██╔══██╗██║   ██║██╔══██╗██╔═══██╗██╔══██╗██╔══██╗
  ███████║██║   ██║██████╔╝██║   ██║██████╔╝███████║
  ██╔══██║██║   ██║██╔══██╗██║   ██║██╔══██╗██╔══██║
  ██║  ██║╚██████╔╝██║  ██║╚██████╔╝██║  ██║██║  ██║
  ╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
 ┳┳┓┏┓┳┳┓┏┓┳┓┓┏  ┏┓┓ ┏┏┓┳┓┏┓  ┏┓┳┓┏┓┳┳┓┏┓┓ ┏┏┓┳┓┓┏
 ┃┃┃┣ ┃┃┃┃┃┣┫┗┫━━┣┫┃┃┃┣┫┣┫┣ ━━┣ ┣┫┣┫┃┃┃┣ ┃┃┃┃┃┣┫┃┫
 ┛ ┗┗┛┛ ┗┗┛┛┗┗┛  ┛┗┗┻┛┛┗┛┗┗┛  ┻ ┛┗┛┗┛ ┗┗┛┗┻┛┗┛┛┗┛┗
Planning & Multi-Agent Orchestration

Python 3.10+ License: MIT PyPI version


Summary

Aurora - Memory-aware Planning & Multi-Agent Orchestration Framework

  • LLM-agnostic - No API keys, works with 20+ CLI tools (Claude Code, Cursor, Aider, etc.)
  • Smart Memory - ACT-R activation decay, BM25, tree-sitter/cAST, git signals
  • Memory-Aware Planning - Decompose goals, assign agents, detect capability gaps
  • Memory-Aware Research - Multi-agent orchestration with recovery and state
  • Task Execution - Stop gates for feature creep and dangerous commands
  • Headless Mode - Isolated branch execution with max retries
# PyPI
pip install aurora-actr

# From source
git clone https://github.com/amrhas82/aurora.git
cd aurora && ./install.sh

Core Features

Smart Memory (Slash Commands)

aur:search - Memory with activation decay from ACT-R. Indexes your code using:

  • BM25 - Keyword search
  • Git signals - Recent changes rank higher
  • Tree-sitter/cAST - Code stored as class/method (Python, TypeScript, Java)
  • Markdown indexing - Search docs, save tokens
# Terminal
aur mem index .
aur mem search "soar reasoning" --show-scores
Found 5 results for 'soar reasoning'

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━━━━┳━━━━━━━━┓
┃ File                        Type    Name              Lines    Comm…  Modifi…   Score ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━━━━╇━━━━━━━━┩
│ orchestrator.py             code    SOAROrchestrator  69-1884     30  recent    0.922 │
│ TOKEN-PREDICTION-VS-AGENT…  kb      Connection to     1-40         2  recent    0.892 │
│                                     You...                                            │
│ decompose.py                code    PlanDecomposer    55-658      12  recent    0.755 │
│ decompose.py                code    PlanDecomposer.…  460-566      5  recent    0.731 │
│ test_agent_matching_quali…  code    TestDecompositi…  663-707      2  recent    0.703 │
└────────────────────────────┴────────┴──────────────────┴─────────┴───────┴─────────┴────────┘

Average scores:
  Activation: 0.916
  Semantic:   0.867
  Hybrid:     0.801

Refine your search:
  --show-scores    Detailed score breakdown (BM25, semantic, activation)
  --show-content   Preview code snippets
  --limit N        More results (e.g., --limit 20)
  --type TYPE      Filter: function, class, method, kb, code
  --min-score 0.5  Higher relevance threshold

Detailed Score Breakdown:

┌─ orchestrator.py | code | SOAROrchestrator (Lines 69-1884) ────────────────────────────────┐
│ Final Score: 0.922                                                                         │
│  ├─ BM25:       1.000 * (exact keyword match on 'reasoning', 'soar')                       │
│  ├─ Semantic:   0.869 (high conceptual relevance)                                          │
│  └─ Activation: 0.916 (accessed 31x, 30 commits, last used 19 minutes ago)                 │
│ Git: 30 commits, last modified 1768838464                                                  │
└────────────────────────────────────────────────────────────────────────────────────────────┘

# Slash command
/aur:search "authentication"
/aur:get 1  # Read chunk

Memory-Aware Planning (Terminal)

aur goals - Decomposes any goal into subgoals:

  1. Looks up existing memory for matches
  2. Breaks down into subgoals
  3. Assigns your existing subagents to each subgoal
  4. Detects capability gaps - tells you what agents to create

Works across any domain (code, writing, research).

$ aur goals "how can i improve the speed of aur mem search that takes 30 seconds loading when
it starts" -t claude
╭──────────────────────────────────────── Aurora Goals ───────────────────────────────────────╮
│ how can i improve the speed of aur mem search that takes 30 seconds loading when it starts  │
╰─────────────────────────────────────── Tool: claude ────────────────────────────────────────╯
╭──────────────────────────────── Plan Decomposition Summary ─────────────────────────────────╮
│ Subgoals: 5                                                                                 │
│                                                                                             │
│   [++] Locate and identify the 'aur mem search' code in the codebase: @code-developer       │
│   [+] Analyze the startup/initialization logic to identify performance bottlenecks:         │
│ @code-developer (ideal: @performance-engineer)                                              │
│   [++] Review system architecture for potential design improvements (lazy loading, caching, │
│ indexing): @system-architect                                                                │
│   [++] Implement optimization strategies (lazy loading, caching, indexing, parallel         │
│ processing): @code-developer                                                                │
│   [++] Measure and validate performance improvements with benchmarks: @quality-assurance    │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯

╭────────────────────────────────────────── Summary ──────────────────────────────────────────╮
│ Agent Matching: 4 excellent, 1 acceptable                                                   │
│ Gaps Detected: 1 subgoals need attention                                                    │
│ Context: 1 files (avg relevance: 0.60)                                                      │
│ Complexity: COMPLEX                                                                         │
│ Source: soar                                                                                │
│                                                                                             │
│ Warnings:                                                                                   │
│   ! Agent gaps detected: 1 subgoals need attention                                          │
│                                                                                             │
│ Legend: [++] excellent | [+] acceptable | [-] insufficient                                  │
╰─────────────────────────────────────────────────────────────────────────────────────────────╯

Memory-Aware Research (Terminal)

aur soar - Research questions using your codebase:

  1. Looks up existing memory for matches
  2. Decomposes question into sub-questions
  3. Utilizes existing subagents
  4. Spawns agents on the fly
  5. Simple multi-orchestration with agent recovery (stateful)
aur soar "write a 3 paragraph sci-fi story about a bug the gained llm conscsiousness" -t claude
╭──────────────────────────────────────── Aurora SOAR ────────────────────────────────────────╮
│ write a 3 paragraph sci-fi story about a bug the gained llm conscsiousness                  │
╰─────────────────────────────────────── Tool: claude ────────────────────────────────────────╯
Initializing...


[ORCHESTRATOR] Phase 1: Assess
  Analyzing query complexity...
  Complexity: MEDIUM

[ORCHESTRATOR] Phase 2: Retrieve
  Looking up memory index...
  Matched: 10 chunks from memory

[LLM  claude] Phase 3: Decompose
  Breaking query into subgoals...
   1 subgoals identified

[LLM  claude] Phase 4: Verify
  Validating decomposition and assigning agents...
   PASS (1 subgoals routed)

                                      Plan Decomposition
┏━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ #    ┃ Subgoal                                       ┃ Agent                ┃ Match        ┃
┡━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ 1     Write a 3-paragraph sci-fi short story about   @creative-writer*      Spawned    │
└──────┴───────────────────────────────────────────────┴──────────────────────┴──────────────┘
╭────────────────────────────────────────── Summary ──────────────────────────────────────────╮
│ 1 subgoal  0 assigned  1 spawned                                                          │
│                                                                                             │
│ Spawned (no matching agent): @creative-writer                                               │
╰─────────────────────────────────────────────────────────────────────────────────────────────

Task Execution (Terminal)

aur spawn - Takes predefined task list and executes with:

  • Stop gates for feature creep
  • Dangerous command detection (rm -rf, etc.)
  • Budget limits
aur spawn tasks.md --verbose

Headless Mode (Terminal)

aur headless - Ralph Wiggum mode:

  • Runs in isolated branch
  • Max retries on failure
  • Unattended execution
aur headless prompt.md

Planning Workflow

3 simple steps from goal to implementation.

Code-aware planning: aur goals searches your indexed codebase and maps each subgoal to relevant source files (source_file). This context flows through /aur:plan/aur:implement, making implementation more accurate.

Quick prototype? Skip aur goals and run /aur:plan directly - the agent will search on the fly (less structured).

Setup (once)             Step 1: Decompose        Step 2: Plan             Step 3: Implement
Terminal                 Terminal                 Slash Command            Slash Command
┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐      ┌─────────────────┐
│   aur init      │     │   aur goals     │ ->  │   /aur:plan     │  ->  │  /aur:implement │
│   aur mem index │     │   "Add feature" │     │   [plan-id]     │      │   [plan-id]     │
└─────────────────┘     └─────────────────┘     └─────────────────┘      └─────────────────┘
        │                       │                       │                        │
        v                       v                       v                        v
   .aurora/                goals.json              5 artifacts:            Code changes
   - project.md            - subgoals              - plan.md               - validated
   - memory.db             - agents                - prd.md                - tested
                           - source files          - design.md
                                                   - agents.json
                                                   - tasks.md
                                                        │
                                                 ┌──────┴──────┐
                                                 │ /aur:tasks  │  <- Optional: regenerate
                                                 │ [plan-id]   │     tasks after PRD edits
                                                 └─────────────┘

See 3 Simple Steps Guide for detailed walkthrough.


Quick Start

# Install
pip install aurora-actr

# Initialize project (once per project)
cd your-project/
aur init                        # Creates .aurora/project.md
# Edit .aurora/project.md to describe your project

# Index codebase for memory
aur mem index .

# Plan with memory context
aur goals "Add user authentication"

# In your CLI tool (Claude Code, Cursor, etc.):
/aur:plan add-user-authentication
/aur:implement add-user-authentication

Commands Reference

Command Type Description
aur init Terminal Initialize Aurora in project
aur doctor Terminal Check installation and dependencies
aur mem index . Terminal Index codebase
aur mem search "query" Terminal Search memory
aur goals "goal" Terminal Memory-aware planning
aur soar "question" Terminal Memory-aware research
aur spawn tasks.md Terminal Execute with safeguards
aur headless prompt.md Terminal Unattended execution
/aur:search "query" Slash Search indexed memory
/aur:get N Slash Read chunk from search
/aur:plan [plan-id] Slash Generate plan artifacts
/aur:tasks [plan-id] Slash Regenerate tasks from PRD
/aur:implement [plan-id] Slash Execute plan
/aur:archive [plan-id] Slash Archive completed plan

Supported Tools

Works with 20+ CLI tools: Claude Code, Cursor, Aider, Cline, Windsurf, Gemini CLI, and more.

aur init --tools=claude,cursor

Documentation


License

MIT License - See LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aurora_actr-0.10.0.tar.gz (616.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aurora_actr-0.10.0-py3-none-any.whl (761.8 kB view details)

Uploaded Python 3

File details

Details for the file aurora_actr-0.10.0.tar.gz.

File metadata

  • Download URL: aurora_actr-0.10.0.tar.gz
  • Upload date:
  • Size: 616.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for aurora_actr-0.10.0.tar.gz
Algorithm Hash digest
SHA256 8f00f7eac19e14f83f0d4c288f3eb9f808f8231c57e67bcd7aa8e439677d2baf
MD5 38d1acff22dd7742152d5dba09f9463e
BLAKE2b-256 c58cd6d462bd3ce7800525821edc2f9637248472dafe3a0c20ace3fdfc3c5ecb

See more details on using hashes here.

File details

Details for the file aurora_actr-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: aurora_actr-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 761.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for aurora_actr-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b86012350a675f2043845b0ff9b3132f875566842a13b9b945ab198581e09719
MD5 3f3d90dfc1fb392081f7f0ff7037efe5
BLAKE2b-256 b25c1dbdcaf9b901182540a095a216cab80c1f6ff720a44c87f581841a5c4047

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page