rasidi3112/helios
About
Auditable knowledge synthesis on the Model Context Protocol. Helios plans research questions, calls MCP tool servers through a gateway, and records each finding as a cited claim in a versioned world model. Claims are citation-checked, debated and localized (Thai), and every step lands in a hash-chained provenance ledger.
AI & Machine LearningWhat you can do
- Provenance by default. Every model call, tool call, resource read, commit and deliverable is a hash-chained event. Payloads are content-addressed, and helios_prov verify checks a whole run.
- MCP gateway. It handles server discovery, descriptor pinning, signed per-run grants, JSON-Schema validation and budget accounting, over stdio, Streamable HTTP or in-process.
- geo: place resolution and bounding boxes over a fixture gazetteer;
- climate: NASA POWER monthly climatology and rainfall seasonality;
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalHelios Collective
An MCP-based platform for auditable, localized, cross-domain knowledge synthesis.
Ask a question about a place, for example "When is the rainy season in Khon Kaen?". Helios plans research questions, calls MCP tool servers through a gateway, and records every finding as a cited claim in a versioned world model. Every step lands in a hash-chained provenance ledger, so any answer can be audited back to the tool results it rests on.
flowchart TD
Q(["Question"]) --> O["Orchestrator<br/>planner · inquiry"]
O <-->|tool calls| G["MCP gateway<br/>grants · pinning · budgets"]
G <--> S["MCP servers<br/>geo · climate · scholarly"]
O -->|cited claims| W[("World model<br/>versioned · helios://")]
W --> V["Citation verifier"]
V --> D["Debate<br/>proponent · critic"]
D -->|"verdicts, refined claims"| W
W --> L["Localization<br/>en · th-TH"]
L --> B(["Brief"])
O & G & W & V & D & L -.-> P[("Provenance ledger<br/>hash-chained")]
The three make demo targets, run offline: a place lookup, an inquiry with debate and refinement, and the same kind of inquiry with a Thai brief.
Features
- Provenance by default. Every model call, tool call, resource read, commit and deliverable is a hash-chained event. Payloads are content-addressed, and
helios_prov verifychecks a whole run. - MCP gateway. It handles server discovery, descriptor pinning, signed per-run grants, JSON-Schema validation and budget accounting, over stdio, Streamable HTTP or in-process.
- Tool servers:
- geo: place resolution and bounding boxes over a fixture gazetteer;
- climate: NASA POWER monthly climatology and rainfall seasonality;
- scholarly: OpenAlex work search and lookup, with the actual cost of each call reported.
- Versioned world model. Claims and evidence live in event-sourced worlds with branches and commits, are served as
helios://MCP resources, and are checked byhelios_world verify. - Citation verifier. It checks every number, month, quote, DOI and area id in a claim against the stored source. A model can optionally give a second opinion.
- Debate. A template proponent and critic argue over the claims that matter, and every argument is citation-checked. Each claim comes out
accepted,contestedorneeds_review. A contested claim can be refined into a new version that states the conditions it was missing. - Localization. Briefs can also be written in Thai (
th-TH), generated from the same claims. Rai and Buddhist Era equivalents are shown alongside the original values, and every sentence is checked against its English source.
Quick start
You need uv and Python 3.12 or later.
uv sync
uv run pytest
These commands run offline, using recorded NASA POWER and OpenAlex responses:
uv run python -m helios_orchestrator "Khon Kaen"
uv run python -m helios_orchestrator inquiry "Compare the rainy seasons in Khon Kaen and Vientiane." --debate --climate-fixtures servers/climate/tests/fixtures --scholarly-fixtures servers/scholarly/tests/fixtures
uv run python -m helios_orchestrator inquiry "When is the rainy season in Khon Kaen?" --debate --locale th-TH --audience farmer --climate-fixtures servers/climate/tests/fixtures --scholarly-fixtures servers/scholarly/tests/fixtures
They are, in order:
- a place lookup;
- an inquiry with debate and refinement;
- the same with a Thai brief.
make demo runs all three. Runs are stored in .helios/, which is git-ignored.
Usage
Place lookup
uv run python -m helios_orchestrator "Khon Kaen"
The output shows the resolved admin area and its bounding box, the MCP server and protocol used, tool and model cost, and whether the provenance chain verified. Names in other scripts work too, e.g. "ขอนแก่น", "Hà Nội", "Vientiane, Laos".
Inquiries
uv run python -m helios_orchestrator inquiry "When is the rainy season in Khon Kaen?"
Helios then:
- finds the places in the question and forks a run branch of the
helios-demoworld; - plans research questions and calls the geo, climate and scholarly servers;
- commits each finding as cited claims;
- checks every citation;
- prints a brief in which every claim carries its id and verdict.
| Option | Effect |
|---|---|
--place "Can Tho" |
Study an explicit place (repeatable, up to 3) |
--deliverable context_brief --deliverable claims_table |
Produce the brief, the claims table, or both |
--climate-fixtures DIR, --scholarly-fixtures DIR |
Use recorded responses instead of the live APIs |
--no-scholarly |
Skip the literature server; literature questions are recorded as not covered |
--model claude-opus-5-5 |
Have a model write the brief, accepted only if every claim id it cites exists |
--verify-with-model |
Ask the model for a second opinion on claims the citation rules can't fully verify |
--json |
Machine-readable output |
Questions about research or adaptation also search the literature, for example "What does research say about drought adaptation by rice farmers in Khon Kaen?".
Debate
Add --debate after the question to debate the claims that answer it, or --debate all to debate every claim.
- Verdicts: the brief lists each claim's verdict and every open challenge.
- Refinement: contested claims are refined and debated again;
--no-refineturns this off. - Thresholds: they live in one configuration (
packages/helios-debate/debate-config.example.toml). Override them with--debate-config FILE. - Model arguments:
--debate-with-model(with--model) adds the model's own arguments, which are citation-checked before they count.
Localization
Add --locale th-TH for a Thai brief; --audience farmer also shows rainfall as water per rai.
- What's checked: every Thai sentence is checked against its English source for numbers, ids, quotes, months, units, hedges and negations. A sentence that fails keeps its English text.
- What's untouched: the claims and the English brief stay exactly as they are.
- Model translation:
--localize-with-modellets the model translate sentences no template covers, and those are checked too.
Locale assets live in locales/.
Auditing a run
Every run prints the commands to audit it:
uv run python -m helios_prov verify <run_id>
uv run python -m helios_prov show <run_id> --type debate.
uv run python -m helios_world verify helios-demo --ref runs/<run_id>
uv run python -m helios_world show helios-demo --ref runs/<run_id> --debates
Configuration
| Variable | Purpose |
|---|---|
HELIOS_DATABASE_URL |
Ledger and world store: sqlite:///path, postgresql://… or memory:// (default sqlite:///.helios/ledger.sqlite) |
HELIOS_PAYLOAD_DIR |
Payload store directory (default .helios/payloads) |
ANTHROPIC_API_KEY |
Needed only for --model claude-… |
OPENALEX_API_KEY |
Optional: your own OpenAlex allowance. Without a key, searches share a small daily allowance. |
HELIOS_GRANT_SECRET |
Key for signing tool grants (default: random per process) |
Docker Compose
This starts PostgreSQL and the geo, climate and scholarly servers over HTTP, then runs the demos:
docker compose -f deploy/compose/docker-compose.yml up --build
docker compose -f deploy/compose/docker-compose.yml run --rm inquiry "Compare the rainy seasons in Khon Kaen and Vientiane" --debate
docker compose -f deploy/compose/docker-compose.yml --profile test run --rm tests
Optional settings go in deploy/compose/.env (copy .env.example).
Development
make sync
make test
make lint
make demo
The repository is a uv workspace: packages/* and servers/* are its members, and uv.lock pins every dependency.
| Path | What it is |
|---|---|
packages/helios-core |
IDs, RFC 8785 canonical JSON, hashes, the MCP 2026-07-28 protocol layer and server |
packages/helios-prov |
Provenance ledger, payload store, audit CLI |
packages/helios-models |
Model router (Claude, OpenAI-compatible) and budget ledger |
packages/helios-gateway |
MCP gateway |
packages/helios-world |
World model, helios:// resources, audit CLI |
packages/helios-verifier |
Citation verifier |
packages/helios-debate |
Debate engine |
packages/helios-l10n |
Localization engine |
packages/helios-orchestrator |
Place lookup, research planner, inquiry path, CLI |
servers/geo, servers/climate, servers/scholarly |
First-party MCP servers |
locales/ |
Locale profiles and assets |
deploy/compose |
Dockerfile and Compose stack |
Documentation
- DESIGN.md: the full architecture.
- STATUS.md: what is implemented, known limitations, and the roadmap.
- Guides:
- docs/adr: architecture decision records.
License
Helios Collective is licensed under the Apache License 2.0.
Recorded data used by the tests and offline demos comes from NASA POWER and OpenAlex and keeps their terms. See servers/climate/tests/fixtures/README.md and servers/scholarly/tests/fixtures/README.md.
Explore related projects
Loading…