Skip to content

Vitalcheffe/Wrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

381 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

๐Ÿ›ก๏ธ WRAP NEBULA

The AI agent kernel you can actually verify.

Local-first. Zero-trust. Auditable by design.


Important

Every AI coding agent sends your code to the cloud. No sandbox. No audit trail. No cryptographic guarantees. WRAP NEBULA does the opposite. Your code never leaves your machine.


๐Ÿš€ What is WRAP NEBULA?

WRAP NEBULA is a local-first AI agent kernel that runs entirely on your machine. It provides a secure, auditable, and sandboxed execution environment for AI agents โ€” with a Rust-powered policy governor, V8 isolate sandboxes, and Ed25519-signed audit trails.

flowchart LR
    subgraph INPUT["๐Ÿ“ฅ Input Layer"]
        A[CLI] --> SAN
        B[Telegram Bot] --> SAN
        C[VS Code Extension] --> SAN
    end

    subgraph SECURITY["๐Ÿ”’ Security Layer"]
        SAN[Sanitizer<br/>PII Redaction + Injection Block] --> GOV
        GOV[Rust Governor<br/>Policy Enforcement] --> SOUL
    end

    subgraph BRAIN["๐Ÿง  Agent Layer"]
        SOUL[SOUL.md<br/>Agent Personality] --> LLM
        LLM[LLM Engine<br/>Ollama ยท Claude ยท GPT-4] --> SKILL
        SKILL[Skills<br/>V8 Sandboxed Executors] --> MEM
        MEM[Memory<br/>SQLite ยท Local Only]
    end

    subgraph OUTPUT["๐Ÿ“ค Output Layer"]
        MEM --> SIGN
        SIGN[Ed25519 Signing<br/>Audit Trail] --> RESP
        RESP[Response]
    end

    style INPUT fill:#1a1a2e,stroke:#e94560,color:#fff
    style SECURITY fill:#16213e,stroke:#0f3460,color:#fff
    style BRAIN fill:#0f3460,stroke:#533483,color:#fff
    style OUTPUT fill:#1a1a2e,stroke:#e94560,color:#fff
Loading

Every message flows through this layered pipeline. Compromising one layer does not compromise the others.


โš”๏ธ Why WRAP NEBULA?

Feature Kilo Cline Cursor WRAP NEBULA
Sandboxed Execution โŒ โŒ โŒ โœ… V8 Isolate
Audit Trail โŒ โŒ โŒ โœ… Ed25519 Signed
PII Redaction โŒ โŒ โŒ โœ… Automatic
Local-First partial partial โŒ โœ… Default
Zero Cloud Dependency โŒ โŒ โŒ โœ… Total
Free Forever โŒ โŒ โŒ โœ… MIT
Telegram Interface โŒ โŒ โŒ โœ… Built-in
VS Code Extension โœ… โœ… โœ… โœ… Included
Multi-LLM Support partial partial โŒ โœ… Ollama/Claude/GPT-4
Rust Policy Engine โŒ โŒ โŒ โœ… Governor

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                        WRAP NEBULA                              โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                                 โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                      โ”‚
โ”‚  โ”‚   CLI    โ”‚  โ”‚ Telegram โ”‚  โ”‚ VS Code  โ”‚    INPUT SURFACES    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜                      โ”‚
โ”‚       โ”‚              โ”‚              โ”‚                            โ”‚
โ”‚       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                            โ”‚
โ”‚                      โ–ผ                                          โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                           โ”‚
โ”‚  โ”‚         SANITIZER                โ”‚  โ† PII redaction          โ”‚
โ”‚  โ”‚    injection blocking            โ”‚  โ† prompt injection guard โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                           โ”‚
โ”‚                 โ–ผ                                                โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                           โ”‚
โ”‚  โ”‚       RUST GOVERNOR              โ”‚  โ† separate process       โ”‚
โ”‚  โ”‚    policy enforcement engine     โ”‚  โ† survives agent crash   โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                           โ”‚
โ”‚                 โ–ผ                                                โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                           โ”‚
โ”‚  โ”‚         AGENT CORE               โ”‚                           โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚                           โ”‚
โ”‚  โ”‚  โ”‚ SOUL.md โ”‚โ†’โ†’โ”‚     LLM      โ”‚  โ”‚  โ† Ollama / Claude / GPT  โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚                           โ”‚
โ”‚  โ”‚                      โ–ผ          โ”‚                           โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚                           โ”‚
โ”‚  โ”‚  โ”‚    V8 SANDBOX SKILLS    โ”‚    โ”‚  โ† 14 sandboxed executors โ”‚
โ”‚  โ”‚  โ”‚  web ยท code ยท file ยท โ€ฆ  โ”‚    โ”‚                           โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚                           โ”‚
โ”‚  โ”‚                      โ–ผ          โ”‚                           โ”‚
โ”‚  โ”‚         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”      โ”‚                           โ”‚
โ”‚  โ”‚         โ”‚  SQLite Memory โ”‚      โ”‚  โ† local only, encrypted  โ”‚
โ”‚  โ”‚         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜      โ”‚                           โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                           โ”‚
โ”‚                 โ–ผ                                                โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                           โ”‚
โ”‚  โ”‚      AUDIT & RESPONSE            โ”‚  โ† Ed25519 signed         โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                           โ”‚
โ”‚                                                                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ”ฅ Highlights

  • ๐Ÿ  Local-First Gateway โ€” your code, your machine, your rules. Zero cloud dependency by default.
  • ๐Ÿ”’ Rust Governor โ€” a separate Rust process enforces policies. Even if the JS agent is compromised, the governor holds.
  • ๐Ÿงช V8 Isolate Sandboxing โ€” every skill runs in an isolated V8 context. No filesystem, no network, unless explicitly granted.
  • โœ๏ธ Ed25519 Audit Trail โ€” every agent response is cryptographically signed. Full chain of custody.
  • ๐Ÿ” Automatic PII Redaction โ€” sensitive data is stripped before it ever reaches the LLM.
  • ๐Ÿค– Multi-LLM Support โ€” Ollama (local), Claude, GPT-4. Swap models without changing code.
  • ๐Ÿ“ฑ Telegram Bot โ€” talk to your agent from anywhere. Fully encrypted.
  • ๐Ÿ’ป VS Code Extension โ€” native IDE integration. Inline suggestions, code actions, and chat.
  • ๐Ÿ–ฅ๏ธ War Room Dashboard โ€” web UI for monitoring sessions, audit logs, and system health.
  • ๐Ÿง  SOUL.md โ€” define your agent's personality in plain markdown. No config hell.
  • ๐Ÿ“ฆ 14 Sandbox Skills โ€” web search, code execution, file ops, system info, memory, and more.
  • ๐Ÿ”‘ One-Line Install โ€” curl | bash and you're running.

๐Ÿ› ๏ธ Skills

14 sandboxed executors โ€” each runs in a V8 isolate with no filesystem or network access unless explicitly granted:

Skill Description Access
๐Ÿ” web.search DuckDuckGo scraping, no API key Network (read-only)
๐Ÿ’ป code.execute Sandboxed Python / JS / TS None (pure compute)
๐Ÿ“‚ file.read Read workspace files FS (workspace-scoped)
๐Ÿ“ file.write Write workspace files FS (workspace-scoped)
๐Ÿ–ฅ๏ธ system.info CPU, memory, disk stats System (read-only)
๐Ÿง  memory.search Semantic search over SQLite DB (read-only)
๐Ÿง  memory.store Store new memories DB (write)
๐ŸŒ web.fetch Fetch and parse URLs Network (read-only)
๐Ÿ“Š data.parse Parse JSON/CSV/XML None (pure compute)
๐Ÿ” crypto.hash Hash and sign data None (pure compute)
๐Ÿ“… time.now Get current time/timezone None (pure compute)
๐Ÿงฎ math.calc Evaluate expressions None (pure compute)
๐Ÿ“ง email.read Read inbox (IMAP) Network (IMAP)
๐Ÿ—„๏ธ db.query Query local SQLite DB (read-only)

๐Ÿ“ Project Structure

Wrap/
โ”œโ”€โ”€ ๐Ÿ“‚ apps/
โ”‚   โ”œโ”€โ”€ ๐Ÿ“‚ vscode/              # VS Code extension
โ”‚   โ”‚   โ”œโ”€โ”€ src/                # Extension source
โ”‚   โ”‚   โ””โ”€โ”€ package.json
โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ war-room/            # Web dashboard
โ”‚       โ”œโ”€โ”€ pages/              # Dashboard pages
โ”‚       โ””โ”€โ”€ components/
โ”‚
โ”œโ”€โ”€ ๐Ÿ“‚ crates/
โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ governor/            # ๐Ÿ”’ Rust policy engine
โ”‚       โ”œโ”€โ”€ src/                # Governor source
โ”‚       โ””โ”€โ”€ Cargo.toml
โ”‚
โ”œโ”€โ”€ ๐Ÿ“‚ packages/
โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ core/                # ๐Ÿง  Agent kernel
โ”‚       โ”œโ”€โ”€ src/
โ”‚       โ”‚   โ”œโ”€โ”€ agent/          # Agent loop & orchestration
โ”‚       โ”‚   โ”œโ”€โ”€ skills/         # Skill loader & definitions
โ”‚       โ”‚   โ”œโ”€โ”€ memory/         # SQLite memory layer
โ”‚       โ”‚   โ”œโ”€โ”€ audit/          # Ed25519 signing
โ”‚       โ”‚   โ””โ”€โ”€ sanitizer/      # PII redaction
โ”‚       โ””โ”€โ”€ package.json
โ”‚
โ”œโ”€โ”€ ๐Ÿ“‚ skills/
โ”‚   โ””โ”€โ”€ ๐Ÿ“‚ default/             # Built-in skill definitions
โ”‚
โ”œโ”€โ”€ ๐Ÿ“‚ policy/                  # Governance policy files
โ”œโ”€โ”€ ๐Ÿ“‚ scripts/                 # Install & utility scripts
โ”œโ”€โ”€ ๐Ÿ“‚ docs/                    # Documentation
โ”œโ”€โ”€ ๐Ÿ“‚ tests/                   # Integration tests
โ”‚
โ”œโ”€โ”€ ๐Ÿ”ง install.sh               # One-line installer
โ”œโ”€โ”€ ๐Ÿ“‹ AUDIT.md                 # Audit trail documentation
โ”œโ”€โ”€ ๐Ÿ”’ SECURITY.md              # Security policy
โ”œโ”€โ”€ ๐Ÿค CONTRIBUTING.md          # Contribution guidelines
โ””โ”€โ”€ ๐Ÿ“„ LICENSE                  # MIT

๐Ÿš€ Quick Start

One-Line Install

curl -fsSL https://raw.githubusercontent.com/Vitalcheffe/Wrap/main/install.sh | bash

Manual Setup

# Clone the repo
git clone https://github.com/Vitalcheffe/Wrap.git
cd Wrap

# Install dependencies
npm install

# (Optional) Build the Rust Governor
cd crates/governor && cargo build --release && cd ../..

# Authenticate with your LLM provider
nebula auth login anthropic

# Start the agent
nebula start

Prerequisites

Requirement Version Required?
Node.js 18+ โœ…
npm 9+ โœ…
Rust 1.70+ Optional (Governor)
Ollama Latest For local LLM

๐Ÿ”’ Security Model

Note

WRAP NEBULA's security is defense in depth. Every layer is independent.

Layer Technology What It Does
Sandbox V8 Isolates Each skill runs in complete isolation โ€” no filesystem, no network, no shared memory
Governor Rust (separate process) Policy enforcement that survives agent crashes. Written in Rust, not JavaScript
Audit Ed25519 Every response is cryptographically signed. Full chain of custody
PII Shield Automatic Sensitive data (emails, phones, keys, tokens) stripped before reaching the LLM
Local-First SQLite + local filesystem No data leaves your machine unless you explicitly configure a cloud LLM

๐Ÿ”Œ Connection Modes

Mode Use Case Setup
๐Ÿ’ป CLI Direct terminal usage nebula
๐Ÿ”Œ VS Code IDE-native experience Install from apps/vscode/
๐Ÿ“ฑ Telegram Remote agent control Connect your bot token
๐Ÿ–ฅ๏ธ War Room Web monitoring dashboard http://localhost:3000

๐Ÿค Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create.

  1. Fork the Project
  2. Create your Feature Branch
    git checkout -b feature/AmazingFeature
  3. Commit your Changes
    git commit -m 'feat: add AmazingFeature'
  4. Push to the Branch
    git push origin feature/AmazingFeature
  5. Open a Pull Request

See CONTRIBUTING.md for detailed guidelines, code style, and skill development docs.


๐Ÿ“Š Stats

GitHub Stars GitHub Forks GitHub Watchers

Star History Chart


๐Ÿ“„ License

Distributed under the MIT License. See LICENSE for more information. Free forever. No paywalls, no premium tiers, no "Contact Sales."


Made with โค๏ธ, ๐Ÿฆ€, and ๐Ÿ›ก๏ธ by Amine Harch el Korane

The AI agent you can actually trust.

WRAP NEBULA

About

The AI Kernel for secure, local-first agentic infrastructure. Zero-trust, 100% private.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors