Skip to content

Repository files navigation

SPIRAL / Nyx CLI

The Advanced Autonomous AI Coding Agent

WhatsApp Image 2026-04-03 at 12 36 57 PM
The sleek, purple-themed, Claude-style interface featuring our pixel-accurate Nyx mascot.


Overview

SPIRAL (Nyx CLI) is a sophisticated, production-grade autonomous AI coding system built for real-world robustness. It moves beyond standard LLM wrappers by featuring an intent-based dual-mode architecture, offering both conversational assistance and autonomous, multi-step execution. With integrated workspace memory, advanced testing systems, and a meticulously crafted UI, Nyx is your ultimate pair-programming companion.


Key Features

  • Dual-Mode Architecture: Seamlessly switch between Agent Mode (for autonomous, multi-step problem solving and iterative loops) and Chat Mode (for quick conversations and intent-based assistance).
  • Persistent Workspace Memory: Never lose context. Nyx remembers past interactions, files read, and workspace states, allowing for true stateful problem-solving across development sessions.
  • Rigorous Verification Pipeline: Code execution isn't blindly trusted. Our internal verification agents evaluate outcomes, test for failures, and dynamically iterate until the objective is fully met.
  • Stunning Aesthetic UI: Designed with a sleek, premium purple-tinted aesthetic inspired by modern interfaces. Enjoy fluid input handling, real-time logging, and pixel-accurate rendering of our mascot, Nyx.
  • True Iterative Execution: Instead of single-shot generation, the agent explores, plans, executes, and refines in a continuous, robust feedback loop to eliminate failures before returning control.

Installation

Ensure you have Python 3.10 or higher installed.

  1. Clone the repository:

    git clone https://github.com/sohmxdd/SPIRAL_CLI.git
    cd SPIRAL_CLI
  2. Set up a virtual environment (Recommended):

    python -m venv .venv
    
    # Provide execution policy if required (Windows)
    .venv\Scripts\activate
    # Or on Mac/Linux:
    # source .venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Environment Setup: Copy the example environment file and configure your keys:

    cp .env.example .env

    (Add your actual LLM provider APIs inside the newly created .env file)


Usage

Launch the agent using the included startup script (which handles environment checks securely) or via Python:

# Windows
run.bat

# Standard
python main.py

Once running, state your objective, and Nyx will autonomously plan, execute, and verify the task for you.


🏗️ Architecture Under the Hood

The SPIRAL architecture relies on clearly structured, decoupled components:

  • core/: Drives the true iterative execution loop and system lifecycle.
  • agents/: Pluggable, specialized sub-agents (Planner, Verifier, Executor) for delegating system tasks.
  • llm/: Handles dynamic and structured communications with large language models.
  • memory/: Disk-backed workspace tracking mechanism that commits context safely to .spiral_memory.json.
  • ui/ & mascot/: Controls the interactive terminal user interface, responsive formatting, and sprite rendering.

About

SPIRAL is a CLI-based autonomous AI coding system that plans, executes, debugs, verifies, and iterates through a multi-agent reasoning loop with real tool interaction.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages