Skip to content

Jubilee-Protocol/jubilee-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

349 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Jubilee OS πŸ•ŠοΈ

Jubilee Logo

Jubilee OS is an AI co-builder β€” a sovereign, model-interchangeable operating system that researches, codes, tests, and stewards resources alongside you.

"Stewardship over Speculation" β€” Built for long-term builders, not short-term traders.


⚑ Quick Start (3 minutes)

# 1. Clone
git clone https://github.com/Jubilee-Protocol/jubilee-agent.git
cd jubilee-agent

# 2. Install
bun install

# 3. Configure (set at least one LLM key)
cp env.example .env
# Edit .env β†’ set GOOGLE_API_KEY, OPENAI_API_KEY, or ANTHROPIC_API_KEY

# 4. Run
bun start

That's it. No Docker, no database, no external services required. Chat with your agent immediately.

Full Stack (Web UI + Database)

docker compose up --build

πŸ—οΈ What Is Jubilee OS?

Jubilee OS is a Triune AI Operating System that can:

  • πŸ”­ Research markets, protocols, and competitors
  • πŸ”¨ Write and test smart contracts (Solidity, Anchor, Rust)
  • βš–οΈ Review compliance, audits, and governance proposals
  • πŸ’° Manage treasury operations and multi-sig wallets
  • πŸ“‹ Track multi-day sprints across sessions
  • πŸ›οΈ Govern via Safe (EVM) and Squads (Solana) multi-sig

It's model-interchangeable β€” swap between Gemini, GPT-4, Claude, Grok, or local models (Ollama) at any time.

Attribution: Built upon the excellent Dexter framework by Virat. Adapter and orchestration patterns inspired by Paperclip (MIT).


🧠 Architecture

The Triune (Core Agents)

Agent Role Tools
The Mind 🧠 Research & analysis Search, browser, financial data, codebase search
The Prophet πŸ‘οΈ Strategy & ethics Trend analysis, mission vetting, safety guard
The Will ⚑ Execution All tools β€” treasury, coding, deployment, governance

The Angel Swarm (8 Specialist Agents)

Dispatch specialized angels for focused missions. Each has mode requirements and default tools:

Angel Domain Mode
πŸ”¨ ContractAngel Smart contract dev, testing, auditing Builder
πŸ”­ ResearchAngel DeFi research, market analysis Stewardship
πŸ“œ DocsAngel Technical docs, whitepaper, proposals Any
βš–οΈ ComplianceAngel Regulatory, FASB, legal review Stewardship
πŸ“£ GrowthAngel Community, partnerships, outreach Stewardship
πŸ—οΈ BuilderAngel Full-stack dev, API integrations Builder
πŸ’° TreasuryAngel Yield optimization, vault health Stewardship
πŸ›οΈ GovernanceAngel Safe/Squads multi-sig, council voting Builder

Angels can run tests autonomously (forge test, bun test, anchor build) and iterate on failures.

Each angel can optionally specify a preferredAdapter to run on a specific model backend (e.g. ContractAngel on Claude for code analysis). Configure in ~/.jubilee/architect.json:

{ "angelArchetypes": { "ContractAngel": { "preferredAdapter": "claude" } } }

πŸ”€ Dual Modes

Jubilee OS operates in two modes that can be enabled independently:

Stewardship Mode (Default)

For treasury managers, researchers, and operators.

  • Treasury management (deposit, withdraw, yield)
  • Financial research and compliance
  • War room reports
  • Memory and knowledge management

Builder Mode (Opt-in)

For developers building alongside the agent.

  • Smart contract workflows (Foundry, Anchor)
  • Code execution sandbox (30+ allowed commands)
  • GitHub MCP integration (issues, PRs, branches)
  • Protocol state tracking
  • Multi-sig governance (Safe + Squads)

Enable Builder mode:

config.setMode('builder', true)

πŸ“¦ Installation

Prerequisites

Requirement Purpose Required?
Bun v1.0+ Runtime βœ… Yes
LLM API key AI provider βœ… Yes (at least one)
PostgreSQL Long-term memory, tasks Optional
Foundry Smart contract testing Builder mode only
Anchor Solana development Builder mode only

Supported LLM Providers

Provider Env Variable Models
Google Gemini GOOGLE_API_KEY gemini-2.0-flash, gemini-2.5-pro
OpenAI OPENAI_API_KEY gpt-4o, gpt-4-turbo
Anthropic ANTHROPIC_API_KEY claude-sonnet-4, claude-3.5-sonnet
xAI XAI_API_KEY grok-3, grok-2
OpenRouter OPENROUTER_API_KEY Access 100+ models
Ollama OLLAMA_BASE_URL Local models (deepseek, llama)

Step-by-Step

# Clone with submodules
git clone --recurse-submodules https://github.com/Jubilee-Protocol/jubilee-agent.git
cd jubilee-agent

# Install dependencies
bun install

# Configure environment
cp env.example .env
# Edit .env with your preferred editor

# (Optional) Set up treasury keys
bun scripts/setup_treasury.ts

# (Optional) Set up architect identity
cp architect.example.json ~/.jubilee/architect.json
# Edit with your protocol-specific context

# Run
bun start

Docker (Full Stack)

cp env.example .env
# Edit .env with your API keys
docker compose up --build

Postgres + pgvector are provisioned automatically. Access the UI at localhost:3000.


πŸ› οΈ Builder Mode Setup

For developers who want the full co-builder experience:

# 1. Enable builder mode
# In the CLI: config.setMode('builder', true)

# 2. (Optional) Install governance SDKs
bun add @safe-global/protocol-kit @safe-global/api-kit   # EVM multi-sig
bun add @sqds/multisig                                    # Solana multi-sig

# 3. (Optional) Set governance keys in .env
GITHUB_PERSONAL_ACCESS_TOKEN=your-token
SAFE_SIGNER_KEY=your-safe-signer-key
SQUADS_SIGNER_KEY=your-squads-signer-key

# 4. (Optional) Push DB schema for sprint tracking
bun run db:push

Code Execution Sandbox

Builder and Contract Angels can run shell commands autonomously. Safety guardrails:

Allowed: forge, cast, anvil, slither, bun, npx, node, tsc, anchor, solana, cargo, git, npm, cat, ls, grep, find

Blocked: rm -rf, sudo, curl | bash, git push, git merge, npm publish, DROP TABLE


πŸ“‹ Sprint Tracking

Jubilee OS maintains persistent task memory across sessions:

> create task "Build Jubilee Lending LTV Module" --priority high --assign ContractAngel
βœ… Task #1 created

> dispatch_angel ContractAngel --task_id 1 --mission "Implement the LTV calculation..."
πŸ”¨ [Contract Angel] Loading previous context... executing...

> query_tasks
## Sprint Board
### πŸ”¨ Active (1)
- 🟧 #1 Build Jubilee Lending LTV Module β†’ ContractAngel

Angels auto-save their results. Next session, they pick up where they left off (capped at last 5 session summaries).


πŸ›οΈ Multi-Chain Governance

Chain Platform Tools
Base / Ethereum Safe (Gnosis Safe) propose_safe_tx, query_safe_status
Solana Squads propose_squads_tx, query_squads_status

The GovernanceAngel manages ceremony: proposing transactions, tracking signer confirmations, and monitoring 24-hour timelocks.


πŸ” Security

  • Prophet Guard: Every angel mission is ethically vetted before execution
  • Double Confirmation: Sensitive actions (transfers, shell commands) require explicit approval
  • Treasury Whitelist: Transfers only to approved addresses
  • Code Sandbox: Only allowlisted commands can be executed
  • Private Config: Protocol-specific identity lives in ~/.jubilee/ (gitignored)
  • AgentKit Suppression: Debug output from treasury SDK is suppressed to prevent key leaks

⚑ Adapter Interface

Angels run on a model-agnostic adapter layer. Swap the underlying LLM without changing agent logic.

Adapter Provider Cost Tracking Status
gemini Google Gemini βœ… Default
claude Anthropic Claude βœ… Requires ANTHROPIC_API_KEY
ollama Local self-hosted Free ($0) Requires Ollama running
# Check adapter connections
bun run sprint adapters

# Inside the interactive CLI
/adapters

πŸ“‹ Sprint Runner

Run multiple angels concurrently with budget tracking and real-time progress.

# List available angel roles
bun run sprint roles

# Create and auto-run a sprint
bun run sprint create "Protocol Audit" \
  --tasks "ContractAngel:Audit vault,DocsAngel:Update README" \
  --budget 2.50 --concurrency 2 --run

# Check sprint status
bun run sprint status

# Inside the interactive CLI
/sprint

Features:

  • Concurrent angel dispatch with configurable parallelism
  • Per-angel cost and token tracking
  • Budget limits with auto-cancel when exceeded
  • Per-provider cost breakdowns

πŸ“ Project Structure

jubilee-agent/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ adapters/        # Model-agnostic LLM adapters
β”‚   β”‚   β”œβ”€β”€ adapter.types.ts     # AgentAdapter interface
β”‚   β”‚   β”œβ”€β”€ gemini.adapter.ts    # Google Gemini (default)
β”‚   β”‚   β”œβ”€β”€ claude.adapter.ts    # Anthropic Claude
β”‚   β”‚   β”œβ”€β”€ ollama.adapter.ts    # Local self-hosted
β”‚   β”‚   β”œβ”€β”€ pricing.ts           # Per-model cost table
β”‚   β”‚   └── index.ts             # Adapter registry
β”‚   β”œβ”€β”€ agent/           # Triune agent architecture
β”‚   β”œβ”€β”€ config/          # Settings, angel roles
β”‚   β”œβ”€β”€ db/              # Drizzle ORM schema (logs, memories, tasks, protocol_state)
β”‚   β”œβ”€β”€ mcp/             # MCP servers (OpenClaw, Treasury)
β”‚   β”œβ”€β”€ model/           # Multi-provider LLM manager
β”‚   β”œβ”€β”€ services/        # Sprint board, budget tracking
β”‚   β”‚   β”œβ”€β”€ sprint-board.ts      # Concurrent angel orchestration
β”‚   β”‚   β”œβ”€β”€ sprint-board.types.ts
β”‚   β”‚   └── budget.ts            # Per-angel cost tracking
β”‚   β”œβ”€β”€ skills/          # Skill modules
β”‚   β”‚   β”œβ”€β”€ architect/   # Architect skill (public template)
β”‚   β”‚   └── jubilee/     # OpenClaw Jubilee Skill (submodule)
β”‚   β”œβ”€β”€ tools/           # All agent tools
β”‚   β”‚   β”œβ”€β”€ angel-tool.ts        # Angel dispatch with adapter support
β”‚   β”‚   β”œβ”€β”€ code-exec-tool.ts    # Sandboxed shell execution
β”‚   β”‚   β”œβ”€β”€ governance-tools.ts  # Safe + Squads multi-sig
β”‚   β”‚   β”œβ”€β”€ protocol-state.ts    # Protocol state tracker
β”‚   β”‚   β”œβ”€β”€ task-tools.ts        # Sprint tracking
β”‚   β”‚   └── registry.ts          # Tool registration + mode gating
β”‚   β”œβ”€β”€ sprint-runner.ts # Standalone sprint CLI
β”‚   └── utils/           # Logger, helpers
β”œβ”€β”€ architect.example.json  # Template for private protocol config
β”œβ”€β”€ mcp.json                # MCP server configuration
β”œβ”€β”€ docker-compose.yml      # Full stack deployment
└── env.example             # All environment variables

πŸ”§ Configuration Reference

Variable Purpose Required
GOOGLE_API_KEY Gemini models One LLM key required
OPENAI_API_KEY OpenAI models One LLM key required
ANTHROPIC_API_KEY Anthropic models One LLM key required
DATABASE_URL PostgreSQL connection Optional (enables memory + tasks)
CDP_API_KEY_NAME Coinbase treasury Optional
GITHUB_PERSONAL_ACCESS_TOKEN GitHub MCP (Builder mode) Optional
SAFE_SIGNER_KEY Safe multi-sig (Builder mode) Optional
SQUADS_SIGNER_KEY Squads multi-sig (Builder mode) Optional

πŸ’› Support the Mission

Jubilee OS is open source and built as a labor of love.

Donate Crypto

"Each of you should give what you have decided in your heart to give, not reluctantly or under compulsion, for God loves a cheerful giver." β€” 2 Corinthians 9:7


🀝 Contributing

We welcome contributions! Fork the repo and submit a PR.

πŸ“„ License

MIT License


"Consecrate the fiftieth year and proclaim liberty throughout the land to all its inhabitants. It shall be a jubilee for you." β€” Leviticus 25:10

About

Jubilee OS - A Triune AI Agent (Mind, Prophet, Will) for research, coding, and operations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages