Skip to content

About

Rust based Harness

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

523 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prometheus Agent

A personal and team AI agent harness in Rust, by CyberdyneCorp.

One agent core runs behind every surface: CLI, full-screen TUI, messaging gateway, web dashboard, editor integration (ACP), an OpenAI-compatible API and a desktop app. It remembers across sessions, writes and reuses skills, delegates to subagents, runs scheduled jobs, drives a real terminal and browser inside OS sandboxes, and can refine its own harness through a budgeted Propose–Probe–Compose loop.

It ships as one signed binary, prometheus (alias pmt). Extensions run as sandboxed WebAssembly components with explicit capability grants, as MCP servers, or as existing Hermes Python plugins through an out-of-process bridge.

Status: M0–M2 done, M3 in progress. The core agent (M1) and the multi-surface and extension layer (M2) are merged. M3 has the web dashboard, the desktop app, ACP, A2A and most of kanban in; harness evolution, the experience library, eval suites, bot mode, computer use and the rest of M3 are next (38 of 101 tasks ticked). The full target behavior is specified in openspec/changes/bootstrap-prometheus-agent/.

Why Prometheus

Fast and small Native binary, startup budget 20 ms, no Python or Node runtime required
Safe extensions WASM plugins only get the capabilities you grant; local commands run under Landlock/seccomp, Seatbelt or AppContainer
Your subscriptions Claude Max, ChatGPT/Codex, SuperGrok, Nous Portal and more by sign-in, or API keys, or local models
Self-improving Memory, skills, an experience library and answer-free harness evolution
Reproducible Every model call can be recorded and replayed; offline mock provider and eval suites
Hermes-compatible Imports a Hermes home and runs Hermes plugins and skills; every Hermes feature is mapped

Screenshots

Captured from the real prometheus binary with the offline mock provider and an isolated home: no API key, no network. The scenario is the one prometheus demo runs, where the agent fixes the balance bug in a small ledger repository.

The full-screen TUI: the agent reads the README, runs total.sh, reads the script, patches the debit sign and re-runs it, ending with Total: 85.15; a status bar shows the profile, model, context use and cost
The full-screen TUI (prometheus tui) after the agent fixed the ledger bug.

The web dashboard's chat page with the same task: agent messages interleaved with read_file, terminal and patch tool calls, each marked done
The web dashboard (prometheus dashboard): the same task driven from the browser, with its tool calls.

The dashboard's sessions page listing six sessions from the dashboard, the TUI and the CLI, with search and delete The dashboard's skills page: the profile's bundled skills with name, category and description
Sessions from every surface in one list, and the profile's skill catalog.

A terminal running prometheus status (daemon running, dashboard listener, scheduler, mock provider health) and prometheus sessions list
prometheus status and prometheus sessions list against the running daemon.

Features

mindmap
  root((Prometheus))
    Agent core
      Turn loop with budgets
      Context compression
      Subagents and worktrees
      goal, loop and heartbeat
      Mixture of agents
    Models
      Provider registry and fallback
      Subscription sign-in
      Credential pools
      Local models
    Tools
      Terminal and files
      Browser and computer use
      Web and media
      LSP diagnostics
      Connectors
    Surfaces
      CLI and TUI
      Messaging gateway
      Web dashboard
      Desktop app
      ACP for editors
      OpenAI-compatible API
      Voice mode
    Learning
      Memory
      Skills and curator
      Experience library
      Harness evolution
    Extensions
      WASM components
      MCP client and server
      Python bridge
      Plugin catalog
    Automation
      Scheduled jobs
      Kanban board
      Bot mode
      A2A and peers
    Trust
      Capability grants
      OS sandboxes
      Secret redaction
      Signed releases
      Replay and evals
Loading

Architecture

One daemon per Prometheus home owns the agent, storage and plugins. Every client attaches to it over a loopback WebSocket JSON-RPC protocol, so a session started in Telegram can be continued in the TUI or the desktop app.

flowchart TB
    subgraph Clients
        CLI[CLI / TUI]
        DESK[Desktop app]
        WEB[Web dashboard]
        ACP[Editors via ACP]
        API[OpenAI-compatible API]
        MSG[Telegram, Discord, Slack,<br/>Matrix, Email, ...]
    end

    subgraph Daemon["prometheus daemon (one per home)"]
        RPC[JSON-RPC over loopback WebSocket]
        GW[Messaging gateway]
        AGENT[Agent turn loop<br/>compression, delegation]
        TOOLS[Tool registry<br/>grants and approvals]
        SCHED[Cron and kanban]
        LEARN[Memory, skills,<br/>experience library]
        OBS[Trajectories, OTel,<br/>cost ledger]
    end

    subgraph Extensions
        WASM[WASM components]
        MCP[MCP servers]
        PY[Python bridge]
    end

    subgraph Outside
        PROV[Model providers<br/>subscriptions, keys, local]
        SBX[OS sandbox<br/>local, container, SSH, remote]
        DB[(SQLite + FTS5<br/>per profile)]
    end

    CLI & DESK & WEB & ACP & API --> RPC
    MSG --> GW
    RPC & GW & SCHED --> AGENT
    AGENT --> TOOLS & LEARN & OBS
    AGENT --> PROV
    TOOLS --> SBX
    TOOLS --> WASM & MCP & PY
    AGENT & LEARN & OBS --> DB
Loading

The workspace mirrors this split. Each crate owns one area:

Crate Owns
prometheus The binary: CLI, daemon entry point
pmt-core Shared types, ids, error taxonomy, exit codes
pmt-config Typed TOML config, profiles, secrets store
pmt-store SQLite sessions, search, retention
pmt-providers Model providers, credentials, routing
pmt-agent Turn loop, prompt, compression
pmt-tools, pmt-sandbox Tool registry, execution environments, OS sandboxes
pmt-skills, pmt-memory Skills and memory
pmt-obs Trajectories, logs, traces, cost ledger
pmt-plugins, pmt-mcp, pmt-pybridge WASM host, MCP, Python bridge
pmt-gateway, pmt-tui, pmt-web, pmt-acp Surfaces
pmt-cron, pmt-kanban Scheduling and the task board
pmt-evolve, pmt-eval Harness evolution, replay and evals
pmt-migrate Hermes and other agent importers

Design decisions are in design.md.

Use cases

flowchart LR
    DEV([Developer]) --> T1[Pair-program in the terminal<br/>or editor, in a worktree]
    DEV --> T2[Delegate a goal and<br/>let it loop until done]
    TEAM([Team]) --> T3[Shared bot in Slack, Discord<br/>or Telegram with pairing]
    TEAM --> T4[Kanban board worked<br/>by agent workers]
    OPS([Operator]) --> T5[Scheduled reports, audits<br/>and backups delivered to chat]
    APP([Application]) --> T6[OpenAI-compatible API<br/>or A2A from other agents]
    RES([Researcher]) --> T7[Record, replay and evaluate<br/>runs; evolve the harness]
    HER([Hermes user]) --> T8[Import a Hermes home<br/>and keep the plugins]
Loading

Roadmap

Milestone Delivers Tasks Status
M0 Scaffolding Workspace, scripts/check, CI on Tier 1/2 targets, health and perf gates, generated references 12 Done
M1 Core agent Config and profiles, sessions, providers and subscription sign-in, tools, sandbox, turn loop, compression, skills, memory, CLI, self-update; offline prometheus demo 154 Done
M2 Multi-surface and extensibility Daemon and RPC, TUI, messaging gateway and adapters, WASM/MCP/Python plugins, delegation, worktrees, cron, voice, local models, API server, Hermes migration 204 Done
M3 Desktop, dashboard, self-improvement Desktop app, dashboard, ACP, kanban, harness evolution, experience library, evals, A2A, bot mode, computer use 101 In progress

Each milestone ends with exit tests run in CI. Task-level detail is in tasks.md.

Quick start (development)

Needs Rust (rustup installs the pinned toolchain), Node 22 for the OpenSpec CLI, and just.

git clone https://github.com/CyberdyneCorp/prometheus-agent.git
cd prometheus-agent
just tools          # install the pinned cargo-deny, nextest, mdbook, openspec
just build
just run --version  # prometheus 0.1.0 (<channel>, <target>, <commit>, <build date>)
just check          # every gate CI runs
Command Does
just build / just release Debug workspace build / optimized binary
just run ARGS Run prometheus
just test Tests (nextest) and doctests
just fmt / just lint Format / clippy with warnings denied
just check Every CI gate (scripts/check)
just check-fast Every gate except perf budgets
just gen Regenerate schema/ and docs/reference/
just health / just perf Code-health budgets / startup, memory and size budgets
just docs / just docs-serve Build / serve the docs site
just install Install prometheus and pmt into ~/.cargo/bin
just hook Run scripts/check on every git push

Contributing

Prometheus is specified before it is built: behavior lives in OpenSpec, and a change that alters behavior updates its spec in the same pull request.

  1. Pick a task from tasks.md and read the spec it names.
  2. Branch from main, implement with tests, and tick the task when its verification passes.
  3. Run just check (or install the hook with just hook).
  4. Open a pull request with a descriptive body; CI runs scripts/check on every Tier 1 target.

Rules that CI enforces: no unsafe outside allowlisted modules, cognitive complexity ≤ 15 per function, ≤ 120 lines per function, ≤ 1,500 per file, the dependency license allowlist, and fresh generated files. Details in CONTRIBUTING.md; report vulnerabilities as described in SECURITY.md.

Documentation

Where What
proposal.md Scope and the 44 capabilities
design.md Architecture decisions and shared contracts
specs/ One behavior spec per capability, requirements tagged M1–M3
docs/ Docs site; docs/reference/ is generated from code
docs/hermes-parity.md Every Hermes feature mapped to its Prometheus requirement
perf/README.md Performance budgets and baselines

License

TBD.

About

Rust based Harness

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages