SANS CODE: Systemic Neural Agentic Solutions - An open-source global terminal agentic CLI for software engineering
Project description
SNAS CODE: Systemic Neural Agentic Solutions
Overview
SNAS CODE is a state-of-the-art, multi-agent orchestration framework engineered for autonomous execution of complex software engineering cycles. Built on a foundation of Heuristic Task Decomposition and Resource-Constraint Optimization, SNAS CODE enables high-parameter local Large Language Models (LLMs) to operate seamlessly on consumer-grade hardware through a proprietary Swap-to-Max memory management protocol.
By decoupling high-level strategic reasoning from low-level implementation, SNAS CODE ensures that architectural integrity is maintained throughout the development lifecycle, regardless of the VRAM limitations of the host environment.
System Architecture
The core of SNAS CODE is a dual-agent, asymmetric architecture designed for maximum efficiency and precision.
stateDiagram-v2
[*] --> Initialization: Request Capture
Initialization --> BrainPhase: Contextual Loading (Architect)
state BrainPhase {
[*] --> InvestigativeScan
InvestigativeScan --> StrategicDecomposition
StrategicDecomposition --> JSONPlanGeneration
}
BrainPhase --> ResourceSwap: keep_alive=0 (Unload Architect)
state ResourceSwap {
direction LR
Architect_VRAM --> System_RAM
Worker_Loading --> Worker_VRAM
}
ResourceSwap --> WorkerPhase: Context Handover
state WorkerPhase {
[*] --> AtomicTaskExecution
AtomicTaskExecution --> ToolActivation: write/run/test
ToolActivation --> LocalVerification
LocalVerification --> [*]
}
WorkerPhase --> ResourceReversion: keep_alive=0 (Unload Worker)
ResourceReversion --> Synthesis: Reload Architect
Synthesis --> FinalOutput: Summary Generation
FinalOutput --> [*]
1. Heuristic Orchestrator (The "Brain")
The Orchestrator functions as the system's prefrontal cortex. It utilizes high-reasoning models (e.g., Gemma 2 9B, Llama 3.1 8B) to map natural language requirements into a discrete, actionable state-space.
- Cognitive Domain: Investigative research, dependency mapping, and multi-step strategy formulation.
- Isolation Boundary: Operates in a read-only sandboxed environment during the investigative phase to ensure system stability.
2. Specialist Implementation Unit (The "Worker")
The Worker is a high-throughput, specialized agent optimized for code generation and surgical file manipulation.
- Execution Domain: Direct workspace interaction, automated testing, and terminal-level command execution.
- Verification Loop: Implements a "Test-Before-Commit" protocol, ensuring all modifications are validated against the current system state.
Core Innovations
Swap-to-Max™ Memory Protocol
To circumvent the "VRAM Wall" common in local LLM deployments, SNAS CODE implements an aggressive model-swapping strategy:
- Zero-Latency Unloading: Explicitly forces Ollama to purge model weights from VRAM when transitioning between phases.
- Context Preservation: Strategic state serialization allows the system to reload the Architect with full awareness of the Worker's progress without memory overlap.
Human-in-the-Loop (HITL) Authorization
SNAS CODE adheres to a Zero-Trust Security Model. Every destructive or state-altering operation (file writes, command execution) requires a signed cryptographic-like authorization from the user, preventing unintended side effects.
Workspace State Verification
Post-execution, the system performs a recursive scan of the local filesystem to verify that the generated artifacts match the architectural plan, providing a secondary layer of objective truth.
Technical Specifications
| Component | Technology | Role |
|---|---|---|
| Orchestrator | Ollama API / Python 3.10+ | Agentic Logic & Model Management |
| Interface | Rich (Console Protocol) | Real-Time Feedback & Stream Visualization |
| Logic Layer | Multi-Agent Directed Acyclic Graph (DAG) | Task Flow Control |
| Memory Opt | Swap-to-Max Protocol | VRAM Optimization |
Deployment & Integration
Prerequisites
- Python: 3.10 or higher.
- Ollama: Local instance with compatible models.
- Hardware: Minimum 16GB RAM (32GB recommended for large model swaps).
Installation
git clone https://github.com/peeyush1278/SNAS-CODE.git
cd SNAS-CODE
pip install -r requirements.txt
Initialization
python main.py
Advanced Configuration
SNAS CODE features Dynamic Capability Detection. Upon startup, the system probes the local Ollama instance, heuristically ranking available models to automatically designate the most capable "Brain" and the most efficient "Worker."
“Engineering the future of autonomous local development.”
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snas_code-1.0.0.tar.gz.
File metadata
- Download URL: snas_code-1.0.0.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94c4d81e5e082f83a5f2d76a34b077d0d2ad1badf080d16ac7baaec2eb1edecf
|
|
| MD5 |
52f924b730b6444363b48f258e6d8be8
|
|
| BLAKE2b-256 |
43eac4409b5e305f98995f27dac9d5e72f6821d0f2e3094ecb1a08daa2d2711d
|
File details
Details for the file snas_code-1.0.0-py3-none-any.whl.
File metadata
- Download URL: snas_code-1.0.0-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0bc33141f017a44c4b3888d888ff926ba66dff4d5c67e1ffdade24aef46b51b
|
|
| MD5 |
505278d436c1e8a1e4b5c138e9bc30be
|
|
| BLAKE2b-256 |
90df8ed80f34dc2e9e30bd6ba35f09ac9d3cd639d3447fbfafc714a02d54dddb
|