@kognai/orchestrator-core
v0.2.22
Published
Kognai sovereign orchestrator — core engine (template-agnostic). Shared by all products (Kognai/coding, Voxight/market-intel, Invoica/fin-compliance); each supplies only its template. Replaces per-repo forks of orchestrate-agents-v2 / sprint-runner / lib.
Maintainers
Readme
@kognai/orchestrator-core
The core engine of the Kognai sovereign orchestrator — template-agnostic. One versioned package, consumed by every product, so an engine fix lands once and products upgrade by bumping the version.
Core engine (this package) + per-product template:
Kognai → coding template
Voxight → market-intelligence template
Invoica → financial-compliance templateWhy this exists (TICKET-215)
The engine (orchestrate-agents-v2, sprint-runner, lib/*) was copy-forked
across repos. On 2026-05-30, Kognai's copy got TICKET-210/213/214 while Invoica's copy
got its own independent fixes — the two engines diverged and fixes never propagated.
This package ends that: single canonical source, semver'd.
Phase 1 (this release, v0.1.0) — clean leaf modules
Path-agnostic, dependency-light modules extracted first:
| Module | Exports |
|--------|---------|
| model-router | classifyTask, selectModel, getFallbackModel, EXPERTISE_MODELS |
| anthropic-direct | callAnthropic (zero-dep raw HTTPS — no @anthropic-ai/sdk) |
| decomposer-feedback | routeToDecomposer (incl. TICKET-214 authoring no-split guard) |
| stuck-handler | detectStuckPattern, escalateStuckTask, escalationPaused (TICKET-204) |
import { detectStuckPattern, routeToDecomposer, callAnthropic } from '@kognai/orchestrator-core';Roadmap
- Phase 2 — cut Kognai over: replace
scripts/lib/{these}with imports from this package (de-duplicate); verify the live swarm. - Phase 3 — extract the larger engine (
sprint-runner,orchestrate-agents-v2) after parameterizing repo-specific paths (.swarm-state,workspace/sprints, etc.). - Phase 4 — migrate Invoica + Voxight to consume the package; delete their forks.
Until a product cuts over, it keeps its local copy — no behavior change.
