Skip to content

JohnOjure/Delta

Repository files navigation

Delta Agent: Autonomous Recursive Intelligence System

Overview

Delta is an advanced, self-evolving artificial intelligence agent designed for autonomous task execution and recursive self-improvement. Built upon a modular architecture, the system leverages Google's Gemini 3.0 Pro models to reason, plan, and execute complex workflows within a local computing environment.

Distinguished from traditional conversational interfaces, Delta operates with full agency. It possesses the capability to manipulate files, execute arbitrary code, interact with network resources, and continuously refine its own toolset through a recursive extension mechanism.

Architecture

The system is engineered around a tripartite "Kernel-Cortex" design:

  1. Cortex (Reasoning Engine): The cognitive core, powered by Gemini 3.0, responsible for high-level planning, decision-making, and error analysis.
  2. Kernel (Execution Engine): A secure, sandboxed runtime environment that manages memory, executes actions, and enforces resource limits.
  3. Peripherals (Adapters): Modular interfaces that bridge the refined logic of the Cortex with the raw capabilities of the host operating system.

Capabilities

Delta is equipped with a comprehensive suite of native capabilities, extensible through dynamic runtime generation.

Core Capabilities

  • Filesystem operations: Read, write, and list files with granular permission control.
  • Shell Execution: Execute system commands and scripts (Bash, Python) within a controlled environment.
  • Network Access: Perform HTTP/HTTPS requests to retrieve data or interact with external APIs.
  • Persistent Storage: Maintain state across sessions using an integrated SQLite-backed key-value store.
  • Computer Vision: Capture and analyze screen content to debug visual errors or interpret UI elements.

Cognitive Features

  • Recursive Planning: Deconstructs abstract goals into executable, step-by-step plans.
  • Self-Correction: Automatically detects execution failures (e.g., syntax errors, API timeouts) and reformulates strategies dynamically.
  • Persistent Memory ("Soul"): Maintains a continuous identity via SOUL.md and learns user preferences (USER.md) over time to adapt its behavior.
  • Proactive Monitoring ("Heartbeat"): Periodically evaluates system health and user-defined constraints (e.g., disk usage, schedule conflicts) to preemptively address issues.

Safety Net Extensions

Delta includes hardcoded "Safety Net" extensions that are always available, ensuring basic functionality even if LLM code generation fails:

  • fs_read - Read file contents
  • fs_write - Write/create files
  • fs_list - List directory contents
  • fs_search - Search for files by pattern
  • system_stats - Get system resource usage

Security Features

  • API Key Masking: API keys are never exposed in the Web UI configuration endpoint.
  • Sandboxed Execution: All generated code runs in a restricted Python environment with resource limits.

Autonomous Safety & Self-Optimization

  • Automatic Rollback: Before modifying critical files, Delta backs them up. If a syntax error is introduced, it automatically restores the previous version.
  • Audit Logging: Every action is logged to ~/.delta/audit/audit.jsonl for traceability.
  • Self-Validation: The agent verifies its own work against your original goal before declaring success.
  • Proactive Optimization: Run delta optimize to trigger an autonomous self-improvement cycle that analyzes past failures and refactors inefficient tools.

Installation

Prerequisites

  • Operating System: Linux (Ubuntu/Debian recommended) or macOS.
  • Runtime: Python 3.10 or higher.
  • Version Control: Git.

Installation Procedure

To install Delta, execute the following commands in your terminal:

Linux / macOS:

./install.sh

Windows: Double-click install.bat or run in terminal:

install.bat

This single command handles dependencies, configuration, and launches the onboarding wizard. It also registers the delta command globally (requires terminal restart) and sets up auto-start for the Web UI.

Configuration

The Onboarding Wizard will guide you through the initial setup. Configuration data is stored securely in ~/.delta/config.json.

Manual Configuration

You may manually edit the configuration file to adjust system parameters:

Parameter Type Description
model_name string The Gemini model identifier (e.g., gemini-3-pro-preview).
api_key string Your Google Gemini API key.
voice_enabled boolean Toggles text-to-speech output.
usage_limit integer Maximum number of API requests allowed per day.

Usage

Command Line Interface (CLI)

Delta provides a robust CLI for interacting with the agent. The wrapper script ./delta (or just delta if installed) handles environment setup.

Syntax:

delta [command] [options]
delta "your goal here"

Commands:

Command Description
run <goal> Execute a specific goal (default if no command provided).
interactive (-i) Start an interactive CLI chat session.
server (--web) Start the Web UI server at http://localhost:8000.
daemon (--daemon) Start the background daemon process for monitoring.
optimize Run proactive self-optimization (analyzes logs, fixes issues).
help Show the help message.

Options:

  • --data-dir <path>: Specify data directory (default: ~/.delta).
  • --reset-memory: Clear agent memory (Soul/User) before running.
  • --debug: Enable verbose debug logging.

Examples:

# Linux / macOS
./delta "Research the best python libraries for data analysis"

# Windows
delta "Research the best python libraries for data analysis"

# Start the web interface
delta --web

# Start interactive mode
delta --interactive

# Check help
delta help

Voice & Hotkey Activation (Experimental)

Delta supports hands-free interaction:

  • Voice Command: Say "Hey Delta" to wake the agent. It will listen for your command.
  • Global Hotkey: Press Ctrl+Shift+D (Windows/Linux) or Cmd+Shift+D (macOS) to toggle the listening mode instantly from anywhere.

Note: Voice features require a working microphone and the SpeechRecognition library (installed automatically).

Web Interface

For a visual experience, launch the web server:

  1. Run delta --web (or use delta-web.vbs on Windows for hidden background mode)
  2. Open http://localhost:8000
  3. The interface provides real-time chat, visual "Thinking" indicators, and extension management.

Background Daemon & Automation

To run Delta as a persistent background service for proactive monitoring:

Windows:

  • Double-click delta-daemon.vbs in the project folder. Use delta-web.vbs for the Web UI.
  • These scripts run silently without keeping a terminal window open.
  • To stop them, use Task Manager to end python.exe processes or use the delta stop command.

Linux / macOS:

nohup delta --daemon &

This enables the "Heartbeat" functionality defined in ~/.delta/HEARTBEAT.md, allowing Delta to perform scheduled tasks or monitor system state in the background.

Project Status & Roadmap

Delta is currently in Beta (v0.9). The core reasoning and execution engines are stable.

Current Roadmap

  • WhatsApp/Telegram Integration: Native support for chat apps via QR code scanning (Planned v1.1).
  • Docker Support: Containerized deployment for enhanced security.
  • Voice Input (Linux): Advanced voice recognition improvements.

FAQ

Does it remember me?

Yes. Delta uses a persistent SQLite database (~/.delta/memory.db) and Markdown files (SOUL.md, USER.md). It remembers your conversations, preferences, and the tools it creates across restarts.

Is this useful?

Unlike standard chatbots that only talk, Delta can act. It creates its own Python scripts to solve problems.

  • Example: "Find all large PDF files in Downloads and move them to a new folder." -> Delta writes and runs a script to do this.
  • Example: "Check the weather every morning." -> Delta creates a cron job.
  • Value: It automates real local tasks without sending your data to a third-party server (besides the LLM inference).

Disclaimer

Delta is an experimental autonomous system with the capability to execute code and modify files. While built with safety sandboxes, users are advised to review the code and use the system within a controlled environment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors