Skip to content
Niki v0.11.0: TUI redesign, Go rewrite, and platform hardening.Read the release notes
niki
Esc
↑↓navigate↵open⌘Jpreview
On this page

Planner Agent

The Planner agent role, TaskSpec generation, and scope boundaries.

The Planner Agent (◈)

The Planner is the architectural entry point of NIKI. Its mission is to convert an ambiguous human task description into a concrete, minimal, structured engineering specification.


What the Planner Does

  1. Workspace Scanning: Inspects file trees, project configurations (package.json, Cargo.toml, pyproject.toml), and existing interfaces.
  2. Knowledge Ingestion: Reads relevant project documentation matching [knowledge].doc_globs and external URLs configured in niki.toml.
  3. Spec Generation: Emits a structured TaskSpec JSON artifact detailing:
    • Files to create, modify, or delete.
    • Step-by-step implementation strategy.
    • Acceptance criteria that must be verified.
    • Technical constraints and architectural invariants.
    • Estimated complexity (Low, Medium, or High).

Because planning requires deep reasoning, long-context comprehension, and strict adherence to schemas, we recommend using high-capability reasoning models for the Planner:

[agents.planner]
provider    = "anthropic"
model       = "claude-sonnet-4-20250514"
max_tokens  = 8192
temperature = 0.2

Was this page helpful?