Orbit
A self-hosted personal operating system where Claude proposes and I confirm.
It started as a personal CRM and grew into one system for people, money, calendar, goals, school, fitness and health. Every module writes typed data into one shared context. Claude workflows read a masked snapshot and return typed, validated proposals; nothing changes until I tap Confirm. They are structured-output workflows with a human approval gate, not autonomous agent loops.
- About 31k lines of application code and 22k lines of tests (non-blank), 2,192 passing tests (parametrized), CI configured with ruff, mypy and pytest.
- AI-engineering pass: offline eval suites (152 cases with recorded answers that test the graders and the pipeline), prompt-injection tests, tracing, prompt versions and a cost budget in EUR. Only 3 of 8 prompts have eval suites so far, and the LLM judge is not calibrated against a live model yet (a simple heuristic baseline agrees with my 20 labels on 15, kappa 0.48).
- Bank-statement parsing that flags splits and matches payments, CalDAV and CardDAV sync, name-day calendar feed, ntfy push.
- Claude Code reads the shared context through one read-only MCP tool,
get_context, which can run on a scoped, audit-logged token. Proposals come from a separate server-side worker and wait in an inbox until I approve them. - Mobile-first web UI plus iOS Shortcuts as the client. Encrypted database backups.
- Status: a solo project built Sept to Oct 2026, AI-engineering pass in Nov 2026, designed for self-hosting with Docker and Caddy. Verification on a real server is still open.
- FastAPI
- PostgreSQL
- SQLAlchemy
- Alembic
- HTMX
- MCP
- Docker
Look inside: numbers from the repository
| Tests | 2,192 passing, parametrized (SQLite); ruff, mypy strict on domain and services | STATUS.md |
|---|---|---|
| Eval cases | 152 with recorded answers: capture 56, classify 51, review 45 | docs/EVALS.md |
| Graders | 30 deterministic graders; 45 deliberately wrong answers that must fail them | docs/EVALS.md |
| Rule-based fake model | 29%, 80% and 51% on the three suites: the graders are not rubber stamps | docs/EVALS.md |
| Autonomy | L2 on a five-step scale (L0 to L4): propose only; nothing is applied without Confirm | docs/VISION.md |
From orbit/mcp_server.py: every MCP call is logged, rejected input never is.
raw: dict[str, object] = {
"preset": preset,
"start": start,
"end": end,
"person_id": person_id,
}
record: dict[str, object] = {
"ts": datetime.now(UTC).isoformat(timespec="milliseconds"),
"tool": "get_context",
"args_sha256": _args_hash(raw),
}
try:
params = validate_arguments(preset, start, end, person_id)
record["args"] = params # validated values only; rejected input is never written
result = _get(client, params)
except InvalidArguments as exc:
record.update(status="rejected", reason=str(exc)[:120], bytes=0)
From evals/cases/capture.jsonl (shortened): a Slovak dictation and the exact debt the capture workflow must return. Fictional people.
{
"id": "cap-001",
"input": {
"text": "Zaplatil som za Paťa obed, 12 eur, dlhuje mi.",
"candidates": [
{
"id": 1,
"name": "Paťo Kováč"
}
]
},
"expected": {
"debts": [
{
"person": 1,
"direction": "they_owe_me",
"type": "money",
"amount_minor": 1200,
"currency": "EUR"
}
]
}
}
Source: github.com/matumarucsa0/orbit-agent-os. Paths are relative to its root; start with docs/ARCHITECTURE.md.
