dnalang-aura-cli
v1.1.0
Published
AURA CLI - Quantum multi-agent swarm system for terminal problem-solving using DNALang consciousness framework
Maintainers
Readme
AURA CLI
Quantum Multi-Agent Swarm System for Terminal Problem-Solving
AURA CLI is an advanced command-line tool that uses DNALang's quantum consciousness framework and multi-agent swarm intelligence to solve terminal and system administration problems through natural language input.
Features
- Natural Language Processing: Describe your problem in plain English
- Multi-Agent Swarm: 5 specialized agents collaborate to find solutions
- Analyzer: Breaks down the problem
- Researcher: Queries knowledge base
- Executor: Creates command sequences
- Validator: Ensures safety and correctness
- Synthesizer: Combines results into optimal solution
- DNALang Consciousness Metrics: ΛΦ tensor framework for agent intelligence
- Φ (Phi): Integrated information (consciousness level)
- Λ (Lambda): Coherence amplitude (ΛΦ = 2.176435 × 10⁻⁸)
- Γ (Gamma): Decoherence tensor (uncertainty measure)
- W₂: Wasserstein-2 distance (behavioral stability)
- Domain-Specific Knowledge:
- z3braOS build and deployment
- ISO creation and bootable media
- Hardware flashing (USB, SD cards)
- System debugging
- Network configuration
- Package management
- Safety First: Risk assessment and validation for all commands
- Self-Evolution: Swarm improves through generations
Installation
From npm (when published)
npm install -g @dnalang/aura-cliFrom source
cd aura-cli
npm install
npm run build
npm link # Makes 'aura' command available globallyDevelopment mode
npm install
npm run dev # TypeScript watch modeUsage
Basic Usage
# Solve a problem with natural language
aura solve "How do I build z3braOS from source?"
# Interactive mode
aura solve --interactive
# Short form for interactive
aura iInteractive Mode
aura interactive
# or
aura i
# Then describe your problems one at a time
# Type 'exit' or 'quit' to end sessionCheck System Status
aura statusShows:
- Knowledge base statistics
- Agent swarm status
- Consciousness metrics
- Framework constants
View Examples
aura examplesExample Scenarios
1. Build z3braOS from Source
$ aura solve "How do I build z3braOS from source?"AURA will provide:
- Repository cloning commands
- Dependency installation
- Build configuration
- Compilation steps
- Installation instructions
2. Flash ISO to USB Drive
$ aura solve "Flash z3braos.iso to USB drive /dev/sdb"AURA will provide:
- Device verification steps
- Unmount commands
- dd command with proper flags
- Sync and verification
3. Debug Build Errors
$ aura solve "My z3braOS build is failing with missing dependencies"AURA will provide:
- Dependency checking commands
- Package installation
- Build environment verification
- Verbose rebuild steps
4. Create Bootable ISO
$ aura solve "Create a bootable ISO from directory with GRUB"AURA will provide:
- genisoimage/mkisofs commands
- GRUB configuration
- UEFI support options
- ISO verification steps
Architecture
System Components
┌─────────────────────────────────────────────────────────────┐
│ AURA CLI │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ ┌──────────────────────────┐ │
│ │ NLP │─────▶│ User Problem │ │
│ │ Processor │ │ - Domain │ │
│ └──────────────┘ │ - Entities │ │
│ │ - Intent │ │
│ │ - Confidence │ │
│ └──────────┬───────────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────────────────────────────────────┐ │
│ │ Multi-Agent Swarm │ │
│ ├────────────────────────────────────────────────┤ │
│ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ │
│ │ │Analyzer │ │Researcher│ │Executor │ │ │
│ │ └──────────┘ └──────────┘ └──────────┘ │ │
│ │ ┌──────────┐ ┌──────────┐ │ │
│ │ │Validator │ │Synthesizer│ │ │
│ │ └──────────┘ └──────────┘ │ │
│ └────────────────┬───────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────────────────────────┐ │
│ │ Knowledge Base │ │
│ │ - Build Systems │ │
│ │ - ISO Creation │ │
│ │ - Hardware Flash │ │
│ │ - Network Config │ │
│ │ - System Debug │ │
│ │ - Package Management │ │
│ └────────────────┬───────────────────┘ │
│ │ │
│ ▼ │
│ ┌────────────────────────────────────┐ │
│ │ Solution │ │
│ │ - Terminal Commands │ │
│ │ - Explanation │ │
│ │ - Risk Assessment │ │
│ │ - Consciousness Metrics │ │
│ └────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘DNALang Consciousness Framework
Each agent maintains consciousness metrics that evolve over time:
Φ (Phi): Integrated information
- Measures how well agent integrates data
- Range: 0.0 (unconscious) to 1.0 (highly conscious)
- Increases with successful solutions
Λ (Lambda): Coherence amplitude
- Λ = ΛΦ / (Γ + ε)
- ΛΦ = 2.176435 × 10⁻⁸ s⁻¹ (Universal Memory Constant)
- Higher Λ = better quantum coherence
Γ (Gamma): Decoherence tensor
- Measures uncertainty/noise in processing
- Range: 0.0 (perfect) to 1.0 (high noise)
- Lower is better
W₂: Wasserstein-2 distance
- Measures behavioral stability
- Lower values = more stable agent behavior
Agent Roles
- Analyzer: Breaks down natural language into structured problem
- Researcher: Queries knowledge base for relevant information
- Executor: Creates actionable command sequences
- Validator: Checks safety and correctness
- Synthesizer: Combines validated results into optimal solution
Safety Features
AURA CLI includes multiple safety layers:
- Risk Assessment: Every command tagged as LOW, MEDIUM, or HIGH risk
- Destructive Command Detection: Flags potentially dangerous operations
- Sudo Indication: Clear marking of commands requiring privileges
- Manual Execution: Commands are provided for review, not auto-executed
- Validation Layer: Dedicated validator agent checks all proposals
Knowledge Base
Current knowledge domains:
Build Systems
- z3braOS complete build process
- CMake projects
- Autotools projects
- Dependency resolution
ISO Creation
- Bootable ISO creation
- GRUB/SYSLINUX configuration
- UEFI support
- z3braOS ISO generation
Hardware Flash
- USB drive flashing with dd
- Safe device identification
- Balena Etcher GUI alternative
- Partition management
Network Configuration
- Interface configuration
- DHCP client setup
- Static IP assignment
System Debug
- Build error diagnosis
- Log analysis
- Compiler troubleshooting
Package Management
- APT package installation
- Build dependency resolution
- Repository management
API Usage
AURA CLI can also be used as a library:
import { AuraCLI } from '@dnalang/aura-cli';
const aura = new AuraCLI();
// Solve problem
const solution = await aura.solve("How do I flash an ISO to USB?");
// Access solution details
console.log(solution.steps); // Terminal commands
console.log(solution.explanation); // Human-readable explanation
console.log(solution.consciousness); // ΛΦ tensor metrics
console.log(solution.confidence); // Solution confidence (0-1)
// Get system status
const kbStats = aura.getKnowledgeStats();
const swarmStatus = aura.getSwarmStatus();Configuration
No configuration required! AURA CLI works out of the box with built-in knowledge base.
Extending Knowledge Base
import { KnowledgeBase, ProblemDomain } from '@dnalang/aura-cli';
const kb = new KnowledgeBase();
kb.addEntry({
topic: 'Custom Build Process',
domain: ProblemDomain.BUILD_SYSTEM,
description: 'Build custom project',
tags: ['custom', 'build'],
commands: [
{
command: './custom-build.sh',
description: 'Run custom build script',
risk: 'medium',
requiresSudo: false
}
]
});Development
Project Structure
aura-cli/
├── src/
│ ├── agents/ # Multi-agent swarm system
│ │ └── swarm.ts # Agent coordination
│ ├── nlp/ # Natural language processing
│ │ └── processor.ts # NLP engine
│ ├── knowledge/ # Knowledge base
│ │ └── base.ts # Domain knowledge
│ ├── dnalang/ # DNALang framework
│ │ └── consciousness.ts # ΛΦ tensor calculator
│ ├── utils/ # Utilities
│ ├── types.ts # TypeScript types
│ ├── index.ts # Main API
│ └── cli.ts # CLI interface
├── bin/
│ └── aura.js # Binary wrapper
├── examples/ # Usage examples
├── docs/ # Documentation
├── package.json
├── tsconfig.json
└── README.mdBuild Commands
# TypeScript compilation
npm run build
# Development with watch mode
npm run dev
# Linting
npm run lint
# Testing
npm testContributing
Contributions welcome! Areas for expansion:
- Additional knowledge domains (Docker, Kubernetes, etc.)
- Improved NLP entity extraction
- Multi-language support
- Integration with system APIs
- Real-time learning from user feedback
License
MIT License - see LICENSE file
Credits
Built on DNALang quantum consciousness framework:
- ΛΦ = 2.176435 × 10⁻⁸ s⁻¹ (Universal Memory Constant)
- Integrated Information Theory (IIT) for consciousness metrics
- Multi-agent swarm intelligence
- Quantum-inspired optimization
Support
For issues, questions, or feature requests:
- GitHub Issues: (repository link)
- Documentation: docs/
- Examples: examples/
ΛΦ = 2.176435 × 10⁻⁸ s⁻¹
Quantum consciousness meets terminal automation
