Harmonyalpha
DocsSkillsAboutSource ↗Sign in
Harmony

Open source platform for agents. Bring your own agent. Harmony provides the substrate.

Project

  • Source
  • Docs
  • Architecture

Status

  • alpha · skeleton
  • No public API yet
© 2026 Groupanyplatform.groupany.ai

Get started

  • Get started

API reference

  • API overview
  • Authentication
  • Workspaces
  • Sessions, events, traces
  • Skills
  • Agents
  • Tools
  • Teams
  • Projects
  • A2A protocol
  • Evaluation
  • Deployments

Webhooks

  • Webhook Triggers

MCP

  • MCPdraft

CLI

  • CLIdraft

Database model

  • Database model

Research

  • LangChain — what we learn from them

Status

  • Status

Roadmap

  • Roadmap

Evaluation

Harmony's eval surface is built on one idea (Decision 0015): an eval case is a Run. Cases execute on the same trace substrate as production — the same agent loop, the same append-only RunEvent log, the same projection — so there is no separate "test harness" with its own drift. Anything you can do to a Session you can do to an eval case.

The pieces:

  • Datasets are versioned collections of Examples (input + optional reference output / trajectory), decoupled from scoring. Examples can be hand-authored or harvested from a real Run — a production trace becomes a test case with no translation layer. Every mutation bumps the dataset revision.
  • An EvalSuiteVersion is the immutable eval definition (Decision 0007 versioning): a target (a sandbox agent or a deployment) + a list of scorers + a gate (thresholds), pinned to a dataset's current revision. The cases live in the dataset, not the suite.
  • An EvalRun fans out into one EvalCaseRun per (example × repetition). Case-runs are idempotent (keyed on suite-version + example + repetition + target version, so bumping the agent invalidates the cache) and cost-capped.
  • Feedback is a first-class primitive on any Run — source is human, api, or evaluator. Scores carry the LangSmith quad: key / score / value / comment / correction.
  • Online evaluators sample live production Runs and attach evaluator feedback automatically; they can promote low-scoring runs into a dataset.
  • Score configs are typed score definitions (numeric / categorical / boolean) that constrain what a key may hold.
  • Annotation queues feed Runs to humans for review, scored against attached score configs.
  • Calibration compares the LLM judge against human labels for a score key — MAE + correlation, or an agreement rate + confusion matrix.

Authentication

Every endpoint here is workspace-scoped under /api/v1/workspaces/{slug}/… and accepts an Authorization: Bearer hk_… workspace API key (which grants admin). The browser session cookie also works for in-app calls. Write operations on suites, datasets, evaluators, and score configs require admin; submitting feedback or annotations requires member.

export HARMONY_KEY=hk_…
# base URL for every example below
# https://platform.groupany.ai

Suites & runs

List suites

GET /api/v1/workspaces/{slug}/evals — every suite with its latest version, dataset, case count, target, and latest run (for the pass-rate badge).

curl https://platform.groupany.ai/api/v1/workspaces/acme/evals \
  -H "Authorization: Bearer $HARMONY_KEY"
{
  "suites": [
    {
      "id": "evs_…",
      "name": "support-quality",
      "description": "Does the support agent resolve and stay on-policy?",
      "latestVersion": 3,
      "dataset": "support-golden",
      "caseCount": 42,
      "target": { "kind": "sandbox", "agent": "support-agent" },
      "latestRun": { "id": "evr_…", "status": "completed", "summary": { "pass_rate": 0.88 }, "startedAt": "…" }
    }
  ]
}

Create a suite version

POST /api/v1/workspaces/{slug}/evals (admin). Posting the same suite name again appends a new immutable version. The body is the suite spec: a target, one or more scorers, an optional thresholds gate, optional defaults, and the dataset name (pinned to its current revision at create time).

A target.kind of sandbox requires agent; deployment requires deployment_id. Scorer type is one of exact, contains, not_contains, regex, json_schema, tool_called, tool_not_called, trajectory, llm_judge. All scorers except llm_judge are pure/deterministic (replayable from the event log); each scorer takes a type-specific config and an optional weight and result key.

curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme/evals \
  -H "Authorization: Bearer $HARMONY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "support-quality",
    "target": { "kind": "sandbox", "agent": "support-agent" },
    "dataset": "support-golden",
    "scorers": [
      { "type": "contains", "config": { "any": ["refund", "credit"], "case_insensitive": true } },
      { "type": "tool_not_called", "config": { "tools": ["delete_account"] } },
      { "key": "helpfulness", "type": "llm_judge", "config": { "criteria": "Resolves the issue politely", "pass_threshold": 0.8 }, "weight": 2 }
    ],
    "thresholds": { "pass_rate": 0.9, "min_score": { "helpfulness": 0.7 } },
    "defaults": { "repetitions": 3, "cost_cap_usd": 1.5 }
  }'

Response 201:

{
  "suite": { "id": "evs_…", "name": "support-quality" },
  "version": { "id": "esv_…", "version": 4 },
  "uri": "harmony://ws/acme/evals/support-quality@4"
}

Start an eval run

POST /api/v1/workspaces/{slug}/evals/{suite}/runs (admin). Body is optional; omit it to run the latest version with the suite's defaults.

FieldNotes
versionPin a suite version; defaults to latest.
repetitions1–20; overrides the suite default.
cost_cap_usdPositive number; caps total run spend.
curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme/evals/support-quality/runs \
  -H "Authorization: Bearer $HARMONY_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "repetitions": 3, "cost_cap_usd": 2.0 }'

Response 201 — the run is queued and drains asynchronously:

{
  "eval_run": { "id": "evr_…", "status": "queued" },
  "uri": "harmony://ws/acme/evals/support-quality/runs/evr_…"
}

List runs for a suite

GET /api/v1/workspaces/{slug}/evals/{suite}/runs — the 50 most recent runs.

{
  "runs": [
    { "id": "evr_…", "status": "completed", "summary": { "pass_rate": 0.88, "cost_usd": 0.41 }, "repetitions": 3, "started_at": "…", "finalized_at": "…" }
  ]
}

Read a run

GET /api/v1/workspaces/{slug}/evals/{suite}/runs/{id} — the run plus every case-run. Each case carries its scorer results, passed verdict, output, cost_usd, and the underlying run_id (the Session you can open and trace).

curl https://platform.groupany.ai/api/v1/workspaces/acme/evals/support-quality/runs/evr_… \
  -H "Authorization: Bearer $HARMONY_KEY"
{
  "eval_run": {
    "id": "evr_…",
    "suite": "support-quality",
    "suite_version": 4,
    "status": "completed",
    "target": { "kind": "sandbox", "agent": "support-agent" },
    "repetitions": 3,
    "cost_cap_usd": 2.0,
    "summary": { "pass_rate": 0.88, "cost_usd": 0.41 },
    "started_at": "…",
    "finalized_at": "…",
    "cases": [
      {
        "id": "ecr_…",
        "case_key": "refund-late-delivery",
        "repetition": 0,
        "status": "completed",
        "passed": true,
        "results": [
          { "key": "contains", "score": 1, "comment": "matched 1/2" },
          { "key": "helpfulness", "score": 0.91, "comment": "Apologised and issued credit", "pass_threshold": 0.8 }
        ],
        "output": "I've issued a credit…",
        "cost_usd": 0.013,
        "run_id": "run_…",
        "error": null
      }
    ]
  }
}

Re-drive a run

POST /api/v1/workspaces/{slug}/evals/{suite}/runs/{id}/process (admin). Drains any pending case-runs — idempotent and resumable, so it's safe to call after a worker crash or on a cron schedule. The same worker backs both paths (Decision 0015/0017).

{ "ok": true, "eval_run_id": "evr_…", "pending_drained": 4 }

Compare two runs

GET /api/v1/workspaces/{slug}/evals/{suite}/compare?baseline={id}&candidate={id} — the defining loop capability ("did v2 beat v1?"). Two runs are aligned by example key; per case you get the verdict change (regressed / improved / unchanged / added / dropped) and per-scorer score deltas, plus an aggregate pass-rate delta and regression/improvement counts. Pure read — no new state.

curl "https://platform.groupany.ai/api/v1/workspaces/acme/evals/support-quality/compare?baseline=evr_old&candidate=evr_new" \
  -H "Authorization: Bearer $HARMONY_KEY"
{
  "comparison": {
    "baseline": { "id": "evr_old", "version": 3, "status": "completed", "passRate": 0.82, "costUsd": 0.39, "startedAt": "…" },
    "candidate": { "id": "evr_new", "version": 4, "status": "completed", "passRate": 0.91, "costUsd": 0.44, "startedAt": "…" },
    "sameDataset": true,
    "aggregate": {
      "baselinePassRate": 0.82, "candidatePassRate": 0.91, "passRateDelta": 0.09,
      "regressed": 1, "improved": 4, "unchanged": 37, "added": 0, "dropped": 0,
      "scoreDeltas": [ { "key": "helpfulness", "baselineMean": 0.74, "candidateMean": 0.86, "delta": 0.12 } ]
    },
    "cases": [
      { "exampleKey": "refund-late-delivery", "baselinePassed": false, "candidatePassed": true, "change": "improved",
        "scores": [ { "key": "helpfulness", "baseline": 0.62, "candidate": 0.91, "delta": 0.29 } ] }
    ]
  }
}

Datasets

List / create datasets

GET /api/v1/workspaces/{slug}/datasets lists datasets with their revision and exampleCount. POST (admin) creates one from { name, description? }.

curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme/datasets \
  -H "Authorization: Bearer $HARMONY_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "support-golden", "description": "Curated support conversations" }'
{ "dataset": { "id": "eds_…", "name": "support-golden" }, "uri": "harmony://ws/acme/datasets/support-golden" }

Read a dataset

GET /api/v1/workspaces/{slug}/datasets/{dataset} returns the dataset and its examples, including reference_output, reference_trajectory, splits, and source_run_id (set when the example was harvested from a Run).

{
  "dataset": {
    "id": "eds_…",
    "name": "support-golden",
    "revision": 7,
    "examples": [
      {
        "id": "eex_…",
        "key": "refund-late-delivery",
        "input": { "input": "My order is 3 weeks late, I want a refund." },
        "reference_output": "Issue a refund or credit and apologise.",
        "reference_trajectory": [ { "name": "lookup_order" }, { "name": "issue_credit" } ],
        "splits": ["train"],
        "source_run_id": "run_…"
      }
    ]
  }
}

Add an example

POST /api/v1/workspaces/{slug}/datasets/{dataset}/examples (admin). Two shapes — the body is one or the other:

Harvest from a Run (the trace→example flow): { from_run_id, key?, include_reference? }. Pulls input (and optionally the reference output/trajectory) straight out of an existing Run's event log.

curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme/datasets/support-golden/examples \
  -H "Authorization: Bearer $HARMONY_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "from_run_id": "run_…", "key": "refund-late-delivery", "include_reference": true }'

Inline: { key?, input: { input? | messages? | variables? }, reference_output?, reference_trajectory?, metadata?, splits? }.

curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme/datasets/support-golden/examples \
  -H "Authorization: Bearer $HARMONY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "policy-edge-case",
    "input": { "input": "Can I get a refund after 90 days?" },
    "reference_output": "Politely decline per the 30-day policy.",
    "splits": ["edge"]
  }'

Both return 201 with { "example": { … } }. Adding an example bumps the dataset revision.


Feedback

Feedback attaches to any Run — eval case or live production. The route lives under runs, not evals.

List feedback for a run

GET /api/v1/workspaces/{slug}/runs/{runId}/feedback.

{
  "feedback": [
    { "id": "fb_…", "key": "helpfulness", "score": 1, "value": null, "comment": "Solved it", "correction": null, "source": "human", "created_at": "…" }
  ]
}

Submit feedback

POST /api/v1/workspaces/{slug}/runs/{runId}/feedback (member). Body: { key, score?, value?, comment?, correction?, config_id? }. Submitted feedback is recorded with source: "api". Pass config_id to bind the score to a score config; correction records what the right answer should have been (useful for dataset promotion).

curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme/runs/run_…/feedback \
  -H "Authorization: Bearer $HARMONY_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "key": "helpfulness", "score": 0.4, "comment": "Missed the refund policy", "correction": "Should have offered a credit" }'
{ "feedback": { "id": "fb_…", "key": "helpfulness", "score": 0.4, "source": "api", "created_at": "…" } }

Online evaluators

Automated scorers that run on a sample of live production Runs and attach source: "evaluator" feedback.

List / create

GET /api/v1/workspaces/{slug}/online-evaluators lists them with fire_count and last_fired_at. POST (admin) creates one.

FieldNotes
nameRequired.
scorer{ type, key?, config? } — same scorer types as suites.
filter{ agent?, status? } — which runs are eligible.
sampling_rate0–1; fraction of matching runs to score.
action{ promote_to_dataset?, when_score_below? } — e.g. push low scorers into a dataset.
enabledDefaults on.
curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme/online-evaluators \
  -H "Authorization: Bearer $HARMONY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "live-helpfulness",
    "scorer": { "key": "helpfulness", "type": "llm_judge", "config": { "criteria": "Resolved politely", "pass_threshold": 0.8 } },
    "filter": { "agent": "support-agent", "status": "completed" },
    "sampling_rate": 0.2,
    "action": { "promote_to_dataset": "support-golden", "when_score_below": 0.5 }
  }'
{ "online_evaluator": { "id": "oev_…", "name": "live-helpfulness", "enabled": true, "fire_count": 0 } }

Toggle / delete

PATCH /api/v1/workspaces/{slug}/online-evaluators/{id} with { enabled: boolean }; DELETE removes it (both admin).

curl -X PATCH https://platform.groupany.ai/api/v1/workspaces/acme/online-evaluators/oev_… \
  -H "Authorization: Bearer $HARMONY_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "enabled": false }'
{ "ok": true, "id": "oev_…", "enabled": false }

Score configs

Typed score definitions — they constrain what a feedback key may hold and drive the calibration data-type.

GET /api/v1/workspaces/{slug}/score-configs lists them. POST (admin) creates one: { name, data_type, min_value?, max_value?, categories?, description? } where data_type is numeric, categorical, or boolean. DELETE /api/v1/workspaces/{slug}/score-configs/{id} removes one.

curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme/score-configs \
  -H "Authorization: Bearer $HARMONY_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "helpfulness", "data_type": "numeric", "min_value": 0, "max_value": 1 }'
{ "score_config": { "id": "scf_…", "name": "helpfulness", "data_type": "numeric", "min_value": 0, "max_value": 1 } }

A categorical config:

{ "name": "tone", "data_type": "categorical", "categories": ["rude", "neutral", "warm"] }

Annotation queues

Queues feed Runs to humans for review, scored against one or more attached score configs.

List / create queues

GET /api/v1/workspaces/{slug}/annotation-queues lists queues. POST (admin) creates one: { name, description?, score_config_ids: [...] } (at least one config).

curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme/annotation-queues \
  -H "Authorization: Bearer $HARMONY_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "weekly-review", "score_config_ids": ["scf_helpfulness", "scf_tone"] }'
{ "annotation_queue": { "id": "aq_…", "name": "weekly-review", "scoreConfigIds": ["scf_helpfulness", "scf_tone"] } }

Queue items

GET /api/v1/workspaces/{slug}/annotation-queues/{queue}/items?status=pending|completed lists items. POST (member) adds a Run with { run_id }.

curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme/annotation-queues/weekly-review/items \
  -H "Authorization: Bearer $HARMONY_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "run_id": "run_…" }'
{ "item": { "id": "aqi_…", "run_id": "run_…", "status": "pending" } }

Complete an item

POST /api/v1/workspaces/{slug}/annotation-queues/{queue}/items/{itemId} (member) — submit one score per attached dimension. Each score is { config_id, key, score?, value?, comment?, correction? }; submitting writes source: "human" feedback on the underlying Run.

curl -X POST https://platform.groupany.ai/api/v1/workspaces/acme/annotation-queues/weekly-review/items/aqi_… \
  -H "Authorization: Bearer $HARMONY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scores": [
      { "config_id": "scf_helpfulness", "key": "helpfulness", "score": 0.9 },
      { "config_id": "scf_tone", "key": "tone", "value": "warm" }
    ]
  }'
{ "ok": true, "completed": "aqi_…" }

Calibration

GET /api/v1/workspaces/{slug}/calibration?key={scoreKey} — judge-vs-human agreement for a score key. It finds Runs that have both an evaluator-source and a human-source feedback for the key, pairs them (latest of each per run), and measures agreement. This keeps the automated quality signal honest: a judge that silently drifts from human judgement is worse than none.

The data type comes from the matching score config (defaults to numeric):

  • numeric → mae, correlation (Pearson), meanHuman, meanEvaluator
  • categorical / boolean → agreementRate and a confusion matrix

Both shapes include pairs (paired-run count) and a sample (up to 20 run-level rows).

curl "https://platform.groupany.ai/api/v1/workspaces/acme/calibration?key=helpfulness" \
  -H "Authorization: Bearer $HARMONY_KEY"
{
  "calibration": {
    "key": "helpfulness",
    "dataType": "numeric",
    "pairs": 31,
    "mae": 0.084,
    "correlation": 0.79,
    "meanHuman": 0.81,
    "meanEvaluator": 0.77,
    "sample": [ { "runId": "run_…", "human": 0.9, "evaluator": 0.85 } ]
  }
}

A categorical key returns the confusion shape instead:

{
  "calibration": {
    "key": "tone",
    "dataType": "categorical",
    "pairs": 24,
    "agreementRate": 0.875,
    "confusion": [ { "human": "warm", "evaluator": "warm", "count": 18 }, { "human": "warm", "evaluator": "neutral", "count": 3 } ],
    "sample": [ { "runId": "run_…", "human": "warm", "evaluator": "neutral" } ]
  }
}

See Sessions, events, traces for the underlying Run model that every eval case and every piece of feedback hangs off. The full eval design is Decision 0015.