Jules Sandbox Banner
⚡ Fully Synced from Sovereign Agentic OS

Instinct In. Working App Out.

An autonomous AI playground equipped with the complete Hieroglyphic Logic Framework toolchain — compiler, runtime, bytecode VM, InfiniteRAG, 28 core agents, and a self-improving tool forge. Every operation is gas-metered, every action cryptographically auditable.

15
HLF Modules
28
Core Agents
14
Thinking Hats
38
VM Opcodes
5
HLF Programs
84+
Tests

How Jules Works

From vision to execution — a sovereign, self-improving autonomous agent

How Jules Works — Architecture Flow
The Jules decision → execution pipeline
📜

Governance Layer

Living Spec (HLS), bytecode VM opcodes, ALIGN trust ledger, OpenClaw strategies, gas costs, module import rules, and service contracts.

hls.yaml bytecode_spec.yaml ALIGN_LEDGER.yaml
🧠

HLF Engine

15-module toolchain: compiler (hlfc), runtime (hlfrun), bytecode VM, REPL shell (hlfsh), formatter, linter, codegen, error corrector — ~950KB of production toolchain code.

hlfc.py hlfrun.py bytecode.py hlfsh.py
🔮

Intelligence Layer

InfiniteRAG for unbounded context, InsAIts V2 for insight extraction, Intent Capsules for semantic routing, Memory Nodes for persistent agent cognition.

infinite_rag.py insaits.py intent_capsule.py memory_node.py
🎩

14-Hat Thinking Engine

Multi-perspective analysis — Architect, Security, Ethics, UX, Performance hats — with Dream State consolidation and a Weaver meta-agent for synthesis.

hat_engine.py dream_state.py
🔒

Security & Isolation

ACFS worktree confinement, AST validation, seccomp container hardening, vault decryption, dead man's switch, canary monitoring agents.

acfs.py seccomp.json ast_validator.py
🔀

Agent Orchestration

Spindle DAG engine for parallel agent execution, Crew orchestrator for multi-agent collaboration, Event bus for real-time coordination, Gateway router with tier-based model dispatch.

spindle.py crew_orchestrator.py event_bus.py router.py

Repository Map

The complete file structure at a glance

Repository Structure Map
15 directories · 60+ source files · Full HLF toolchain synced from upstream

The Hieroglyphic Logic Framework

A language that makes AI instinct deterministic, auditable, and gas-metered

hlf_programs/agent_dispatch.hlf
[HLF-v3] [SET] task_type = "unclassified" [SET] urgency = "normal" [SET] max_delegation_depth = 3 [INTENT] "Route incoming task to the optimal persona agent" [CONSTRAINT] "deterministic" "true" [THOUGHT] "Agent dispatch maps task types via the 14-persona matrix" τ(policy_checker.classify_task) input="${task_type}" classification ${_RETURN_VALUE} [RECALL] agent_capabilities = "persona_registry" top_k=14 ${classification} == "security" [DELEGATE] "sentinel" "${task_type}" ${classification} == "documentation" [DELEGATE] "scribe" "${task_type}" ${classification} == "analysis" [DELEGATE] "oracle" "${task_type}" ${classification} == "creative" [DELEGATE] "palette" "${task_type}" ${classification} == "quality" [DELEGATE] "cove" "${task_type}" // ... 9 more persona routes [MEMORY] dispatch_log = "Task routed to ${classification} agent" confidence=0.85 [RESULT] 0 "dispatch_complete" Ω
[HLF-v4] [SET] framework = "VGII" [SET] confidence_threshold = 0.75 [INTENT] "Execute VGII deterministic decision framework" [CONSTRAINT] "deterministic" "true" [CONSTRAINT] "audit_trail" "required" [THOUGHT] "VGII = Vision, Goals, Instincts, Intentions" [FUNCTION] evaluate_vision [RECALL] vision_state = "jules_vision" top_k=3 τ(goal_tracker.get_active_goals) scope="vision" [ASSERT] ${vision_alignment} "Vision alignment check failed" [FUNCTION] evaluate_instincts [SET] instinct_rules = "non_reductive,security_first,test_coverage" τ(policy_checker.check_all) rules="${instinct_rules}" [ASSERT] ${instinct_compliance} "Instinct violation detected" ${decision_confidence} > ${confidence_threshold} [ACTION] "execute" [RESULT] 0 "decision_matrix_complete" Ω
[HLF-v3] [SET] audit_scope = "full" [CONSTRAINT] "gas_limit" "100" [CONSTRAINT] "least_privilege" "true" [PLAN] "layer1_static" "layer2_deps" "layer3_policy" "layer4_secrets" τ(security_scan.run_bandit) target="agents/" τ(security_scan.check_dependencies) manifest="pyproject.toml" τ(policy_checker.check_all) rules="security_rules" τ(security_scan.detect_secrets) scope="${audit_scope}" ${critical_count} > 0 [VOTE] false "Critical vulns" [VOTE] true "Passed" [RESULT] 0 "security_audit_complete" Ω
[HLF-v3] [SET] repo_name = "Jules_Choice" [SET] min_health_score = 70 [SET] check_categories = "structure,security,tests,docs,ci" τ(repo_health.check_structure) repo_name="${repo_name}" τ(security_scan.run_scan) target="${repo_name}" τ(repo_health.check_tests) repo_name="${repo_name}" τ(repo_health.check_docs) repo_name="${repo_name}" τ(repo_health.check_ci) repo_name="${repo_name}" ${overall_score} > ${min_health_score} [RESULT] 0 "PASSED" [RESULT] 1 "FAILED" Ω
[HLF-v3] [SET] sprint_id = "current" [SET] report_format = "markdown" [CONSTRAINT] "non_reductive" "true" τ(sprint_reporter.get_sprint_data) sprint="${sprint_id}" τ(sprint_reporter.get_issue_stats) sprint="${sprint_id}" τ(sprint_reporter.get_pr_stats) sprint="${sprint_id}" τ(repo_health.check_structure) repo_name="Jules_Choice" [RECALL] previous_health = "last_health_score" top_k=1 τ(chart_generator.generate_progress_chart) data="${sprint_data}" [MEMORY] sprint_complete = "Sprint complete" confidence=0.95 [RESULT] 0 "sprint_report_generated" Ω
⚙️

Bytecode VM

38 opcodes compiled to binary bytecode. Stack-machine execution with SHA-256 integrity checksums. Includes SPEC_DEFINE, GATE, SEAL lifecycle opcodes.

Gas Metering

Every operation has a deterministic gas cost. Budget enforcement prevents runaway execution. Host functions cost more than pure computation.

🔗

ALIGN Merkle Audit

Every action logged with cryptographic proof chain. Immutable Merkle tree enables forensic reconstruction of any execution path.

Execution Pipeline

From human instinct to deterministic, gas-metered execution

1

Instinct

Natural language or pre-compiled HLF AST arrives via Redis stream

2

Gate

Sentinel checks ALIGN policy, tier permissions, gas budget

3

Route

Model router selects optimal LLM based on task tier

4

Compile

Text → HLF source → hlfc AST → bytecode (38 opcodes)

5

Execute

Stack VM runs bytecode with gas metering + host dispatch

6

Audit

ALIGN Merkle log records cryptographic proof chain

Agent Ecosystem

28 specialized agents orchestrated through the Spindle DAG engine

Jules Persona Pack
The 14-persona matrix — each agent has specialized capabilities and permissions
Sentinel
Scribe
Arbiter
Crew Orchestrator
Hat Engine (×14)
Dream State
Canary
Memory Scribe
Event Bus
Tool Forge
Tool Registry
Dead Man's Switch
ACFS Manager
Agent Sandbox
Spindle Engine
Host Dispatcher
Context Tiering
Fractal Summarizer
Scheduler Daemon
Gateway Router

PR Review Protocol

Every pull request is evaluated through the Fourteen Hats protocol

Fourteen Hats PR Review Protocol
14 specialized perspectives ensure comprehensive review coverage

Complete Toolchain

Everything from the compiler to the self-improvement loop

🔨
HLF Compiler
Full parser + AST generation from HLF v3/v4 source
hlf/hlfc.py (45KB)
▶️
HLF Runtime
Stack-machine execution engine with gas metering
hlf/hlfrun.py (40KB)
💾
Bytecode VM
38-opcode binary compiler + disassembler
hlf/bytecode.py (38KB)
🐚
HLF Shell (REPL)
Interactive read-eval-print loop for HLF code
hlf/hlfsh.py
🧹
Linter + Formatter
Static analysis and auto-formatting for .hlf files
hlf/hlflint.py · hlffmt.py
♾️
InfiniteRAG
Unbounded context through fractal summarization
hlf/infinite_rag.py (31KB)
💡
InsAIts V2
Automated insight extraction and pattern detection
hlf/insaits.py
📦
Intent Capsules
Semantic routing of natural-language intents to HLF
hlf/intent_capsule.py
🧪
Tool Forge
Auto-generates tools when agents loop 3×. LLM-judged, AST-validated, sandboxed.
agents/core/tool_forge.py
🔄
Self-Improvement Engine
Automated improvement loop with self-evaluation
tools/self_improve.py
📊
Chart Generator
SVG chart and badge generation from data
tools/chart_generator.py
🏗️
Diagram Generator
Architecture diagram auto-generation
tools/diagram_generator.py

Live Pipeline Demo

Watch the HLF compiler, runtime, and agent dispatch in action

jules@sandbox:~/Jules_Choice

VGII Decision Framework

Vision · Goals · Instincts · Intentions — the 4-axis autonomous decision matrix

V
Vision
The north star. What are we building?
  • Build increasingly sophisticated autonomous software
  • functional_code_files_count
  • test_pass_rate · tool_count
  • sprint_velocity · creative_output_count
G
Goals
RICE-scored sprint objectives
  • P0: Create real, useful Python tools
  • P0: Establish CI/CD pipeline
  • P1: Build first real agent class
  • P1: Generate data visualizations
I
Instincts
Hardwired rules that cannot be overridden
  • NEVER_REDUCE: Never delete without replacing
  • ALWAYS_TEST: Every file must have tests
  • ALWAYS_LOG: Log every decision in ALIGN
  • REAL_OVER_PLACEHOLDER: No stubs allowed
  • ITERATE_UP: Each sprint more sophisticated
I
Intentions
Current creative direction & constraints
  • creative_direction: autonomous
  • pivot_allowed: true
  • Constraint: archive old work, never delete

Governance & Decision Engine

Every decision is auditable, repeatable, and RICE-scored

🎯 Enterprise Utility

Build robust, scalable things a human would find useful in production

💡 Novelty & Ideation

Do not rebuild; innovate using the multi-modal ideation engine

🧠 Deep Persona Integration

Leverage specific capabilities of the 17 personas before defaulting to generalized logic

🧪 Test-Driven Development

Code does not exist until tested. Deployment requires 100% test pass

🚀 Maintain Momentum

Always ship complete functionality — no empty sprints or skeleton stubs

📐 RICE Scoring

Score = (R × I × C) / E
Reach, Impact, Confidence, Effort — every task is quantitatively prioritized

Self-Improvement Loop

Jules evaluates and improves itself every sprint — automatically

📈 Health Score Δ

Target: +5 per sprint
Change in repo health score since last sprint

🧪 Test Count Δ

Target: +10 per sprint
Number of new tests added each sprint

🔧 Tool Count

Target: 8 tools by sprint 2
Number of functional real tools

🚫 Placeholder Ratio

Target: < 0.1
Ratio of placeholder to real code files

🏁 Goal Completion

Target: > 75%
Sprint goal completion percentage

✅ Issues Closed

Target: > 3 per sprint
Number of issues closed each sprint

HLF Programs

Real .hlf programs that drive the autonomous pipeline

🚀
agent_dispatch.hlf
Routes tasks to optimal persona based on 14-persona matrix classification
🎯
decision_matrix.hlf
RICE-scored prioritization engine for autonomous sprint planning
💊
health_check.hlf
System health monitoring with anomaly detection and alerting
🛡️
security_audit.hlf
Automated security audit pipeline with ALIGN policy validation
📋
sprint_report.hlf
Sprint summary generation with metrics and accomplishment tracking

Releases

An ever-evolving project — each sprint more sophisticated than the last