Nika
v0.125.2Read-only oracle: check .nika workflows before they run and learn the language.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
nika_check Audit a workflow
Statically audit a Nika workflow (schema · DAG · CEL · effects · permits · cost) BEFORE running it. Returns the findings, or a clean verdict — auditable before a token is spent. With `fix: true`: apply the machine-applicable repairs (the same ladder as `nika check --fix`) in memory, re-audit, and return the repaired source for you to write back.
| Parameter | Type | Description |
|---|---|---|
workflow * | string | The *.nika workflow source. |
fix | boolean | Apply the typed renames and dead-form migrations `nika check --fix` applies — in memory, never to a file — then re-audit. The answer is JSON: `repairs`, `applied`, `changed`, the repaired `workflo… |
native_strict | boolean | Fail on native-first hints — an `exec` of a helper script that a builtin already covers. ON by default: this oracle is what an agent consults before handing a file to a human, and the gate in front… |
verbose | boolean | Return the full verdict object even when clean — the same keys a dirty answer carries: `clean` · `verdicts.{valid,access_ready,capacity_fit,run_ready}` · `judged.{composition,skills,children}` (th… |
nika_inspect Project the workflow graph
Project a Nika workflow's DAG as the canonical graph document (graph_format: 3 — the same bytes `nika inspect --format json` prints and the LSP's nika/semanticDocument serves): wave-ordered nodes with verbs, models, permits, cost intervals; typed edges (value/observation from `with:` bindings · control from `after:` · recovery). Null graph + a one-word reason while the document has findings.
| Parameter | Type | Description |
|---|---|---|
workflow * | string | The *.nika workflow source. |
nika_explain Explain an error code or hint
Teach one Nika error code or hint identity — cause, category, and the fix form.
| Parameter | Type | Description |
|---|---|---|
code * | string | A code like `NIKA-VAR-001`, the bare `440`, or a hint kind `nika check` printed in [brackets] (`jq-as-map` · `native-first/006`). |
nika_schema The workflow JSON Schema
The embedded JSON Schema for *.nika — the structural contract (verbs · fields · shapes) an agent authors against.
nika_examples Browse runnable examples
Browse the embedded runnable examples. Without `slug`: the JSONL metadata index (`slug` · `form` · `one_line` · `cost`). With `slug`: that example's full workflow source — read the canonical example instead of guessing a construct. With `builtin`: the examples that call one `nika:*` tool.
| Parameter | Type | Description |
|---|---|---|
builtin | string | A builtin name (`nika:jq` or bare `jq`) — one JSONL row per example that calls it (`slug` · `builtin` · `one_line` · `sites`). Read a precedent for a tool's args instead of guessing them. |
slug | string | An example slug from the list (e.g. `pr-risk-review`). |
nika_template Fetch a template skeleton
The canonical workflow skeletons (chain · gate-and-act · fanout · …). Without `name`: the list. With `name`: that skeleton's source. Fill value slots and check it. With `filled: true` and an exact name: the runnable lesson generated from that skeleton, when available.
| Parameter | Type | Description |
|---|---|---|
filled | boolean | Return the paired filled lesson instead of the skeleton. Requires an exact name; missing pairs fail explicitly. |
name | string | A template name from the list (e.g. `chain`). |
nika_canon The spec canon
The spec canon SSOT (canon.yaml) — the locked counts and names: verbs, builtins, providers, extract modes. Cite it, never a remembered number.
nika_catalog Providers and models
The embedded provider/model catalog — providers, models, capabilities (vision · reasoning · json_mode), context windows, and API-key env-var NAMES (values never read). Versioned wire `catalog_version: 1`. Pick REAL model ids from here instead of guessing — and pick them ONLY from rows where `resolves` is true. A cataloged vendor is not a runnable one: `resolves: false` means this binary has no adapter for it and `nika check` refuses the model at the MODELS rung. With `mcp: true` it returns the MCP server shelf instead (same `catalog_version: 1` envelope, key `mcp_servers`): tool hubs (ta…
| Parameter | Type | Description |
|---|---|---|
mcp | boolean | Return the MCP server shelf instead of the provider/model catalog. |
query | string | With mcp: true, keep only the servers whose id, alias, title, category or tag contains this text (case-insensitive). |
nika_tools The builtin catalog
The embedded builtin-tool catalog — every `nika:*` tool with its model-facing JSON-Schema (`parameters`) joined with the check-time contract (category · args · required). Versioned wire `tools_version: 1`.