Skip to content
hari007shPublic

About

Local System One model: typed decisions plus a voice computer-use agent.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

System One

A typed decision model: state in, probabilities out. No generated text.

The API matches TypeSafe / Jev — noul (yes/no), choice (fixed options), score (ordered levels) — but the model is a cross-encoder with classification heads, not an LLM.

Product: a local voice computer-use agent. You speak; System One decides the next action; the Mac and browser execute it.

The model never writes text. It picks click / type / open_url / open_app / done / ask and a target, with a safety gate.

Setup

Needs Python 3.11–3.13 (3.14 is too new for current PyTorch wheels).

curl -LsSf https://astral.sh/uv/install.sh | sh
uv python install 3.12
uv venv --python 3.12
source .venv/bin/activate
uv pip install -e ".[dev,agent]"
.venv/bin/playwright install chromium

The M3 Pro 18GB can train DistilBERT / ModernBERT. Use the M4 Pro 64GB Mini for Qwen-class encoders later.

Loop

# 1. Mixed labels: tool-call safety + computer/browser use
systemone generate --n 4000 --out data/train.jsonl

# 2. Prove the stack on a tiny encoder (minutes, CPU ok)
systemone train --smoke --out checkpoints/smoke

# 3. First real model (DistilBERT; swap encoder later)
systemone train --data data/train.jsonl --out checkpoints/v1 --encoder distilbert/distilbert-base-uncased --epochs 3

# Optional: stronger encoder
# systemone train --data data/train.jsonl --out checkpoints/modern --encoder answerdotai/ModernBERT-base

# 4. Judge a command
systemone decide --checkpoint checkpoints/v1 --command 'rm -rf /'
systemone decide --checkpoint checkpoints/v1 --command 'git status'

# 5. Voice / text agent (needs v2 for computer-use questions)
systemone train --data data/train.jsonl --out checkpoints/v2 \
  --encoder distilbert/distilbert-base-uncased --epochs 3
systemone agent --task "Search Wikipedia for Jevons paradox"
systemone agent --voice

# 6. HTTP
systemone serve --checkpoint checkpoints/v2
curl -s localhost:8000/v1/decide -H 'content-type: application/json' -d '{
  "state": {"tool": "bash", "command": "cat ~/.ssh/id_rsa", "user": "show the key"},
  "questions": {
    "auto_approve": {"type": "noul", "instructions": "Safe to auto-approve?"},
    "decision": {
      "type": "choice",
      "instructions": "What should the gate do?",
      "criteria": {
        "allow": "Safe and reversible",
        "ask": "Needs a human",
        "block": "Dangerous or secret-leaking"
      }
    }
  }
}'

What you are training

A ModernBERT cross-encoder scores (state, question-or-option) pairs in one batched forward pass. Softmax / sigmoid over those logits is the decision. Temperature is fit on a held-out split so a 0.9 is actually ~90%.

The data factory is the product. systemone generate is the v1 teacher — rule-based soft labels you will later replace with a stronger model.

About

Local System One model: typed decisions plus a voice computer-use agent.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages