Nimi Coding
Nimi Coding provides deterministic access to project-owned canonical authority for AI hosts and repository tooling. It handles authority formatting, schema validation, relationship queries, dependency navigation, and impact review; it is designed as a focused specification tool rather than an autonomous AI agent, code generator, or product-spec synthesizer.
This documentation corresponds to @nimiplatform/nimi-coding@0.6.5 pinned by this workspace. Command ergonomics and parameters are described authoritatively in the package's CLI help and bundled README.
Specification and Configuration Boundaries
| Path Pattern | Role & Scope |
|---|---|
.nimi/spec/**/*.authority.{yaml,md} | The single canonical product authority source |
.nimi/config/** | Repository-owned Nimi Coding host execution configuration |
.nimi/methodology/authority-authoring.yaml | Official methodology guide for authoring authority |
.nimi/local/** | Local verification artifacts and cache outputs (git-ignored; never authoritative) |
config/** | Static inputs for apps, code generators, and host implementations; outside Nimi Coding configuration |
Nimi Coding maintains a strict single source of truth: downstream developer documentation, test fixtures, compiler outputs, or audit reports must never override or redefine product authority.
Bounded Code Context Reads
code context: Analyzes a specified TypeScript or TSX file, an admitted top-level symbol (exported or unexported), andtsconfigto extract a bounded outbound static context.code authority: Locates explicit@nimi-authorityand@nimi-deprecatedmarker comments in Git-tracked TypeScript, TSX, Go, Python, and Rust source files, or inspects authority bindings for a given file.
Both commands are request-local and read-only. AI hosts invoke them on demand; they do not install mandatory preflight hooks, alter host task state, or attempt to evaluate unannotated code.
Authority Maintenance Workflow
- Discovery: When the exact authority identifier is unknown, run
authority discoverwithin a bounded scope to locate candidate units. - Context resolution: Before making changes, retrieve the declared outbound context via
authority context. - Format and validate: After editing, format each changed file with
authority fmtand runauthority checkacross the full.nimi/speccorpus. - Impact analysis: Run
authority diffandauthority impactwith explicit byte budgets to review semantic blast radius. - Refactoring sweep: When planning architectural changes, use
authority change-candidatesto recall impacted nodes across deterministic channels. This output serves as recall input rather than automated arbitration.
The repository instructions in AGENTS.md and .nimi/methodology/authority-authoring.yaml define authoring guidelines in detail.