How-to guides¶
Task-oriented recipes for people who already know the basics. Each answers a specific how do I…? Read the Concepts first if you want the model behind them; do the tutorial first if you have never loaded a scope.
The CLI¶
- A tour of the
dnaCLI — every command group in five minutes, one executed example each, linked to the generated reference. - How to install bundles from a repository —
dna install github:owner/repo[/subdir][@ref]: fetch, reader-driven detection, validation of untrusted manifests, conflicts, and theinstalled.lockprovenance record. - Scaffolding a repo —
dna solution new/update— generate a real app (package, Dockerfile, version floor, deployment wiring) from a Copier template, and roll it forward when the template moves: the four silent Copier behaviours the command reports, and the two wiring places no template can reach.
Authoring¶
- How to author an agent —
dna newscaffolding, named layouts (order the persona by name, no Mustache), and single-file souls. - How to add a Kind — ship a new Kind + Extension (or a record-style Kind as pure data) in about thirty minutes.
-
How to read instance data — the blessed query surface: the one documented way to read manifest data in either SDK.
-
Copilot kits — a complete flow installed as instances —
dna copilot install <dir>: the Kind, the Agent and the Copilot (with itssurfaces[]flow) written through the kernel door, with the human approval gate intact (--approvestamps the operator).
Adapters and formats¶
- How to write a source adapter — implement a new storage backend against the port contract, with the conformance kit as your safety net.
- How to write a Reader/Writer — teach DNA a new bundle format and keep the round-trip invariant green.
Spec-driven methodology¶
- Spec Kit — the supported spec-driven flow — run
GitHub Spec Kit untouched, then
dna specify importto durably capture the run as DNA Kinds (anddna specify exportto project them back byte-faithfully). DNA composes underneath Spec Kit, adding portability, memory, governance and tracking.
Search and memory¶
- How to use semantic recall & memory — install
the extras, search a scope with
dna recall, drive the memory verbs, and register embedding/search providers programmatically.
Quality¶
- How to evaluate agents — author EvalCases and
EvalSuites, run them offline with
dna eval run(the composed prompt is the default target), pin an EvalBaseline and gate CI on regressions.
DNA Cloud¶
- The DNA Cloud starter catalog & BYO-DNA — the
three
_libstarter agents every tenant inherits, and how a Pro tenant authors + pushes their own agent as a tenant overlay (gated by PricingPlan caps).
Lifecycle¶
- Your git log is your SDLC — how this repo tracks its own lifecycle as DNA instances and stamps every commit and PR.
Operations¶
- How to cut over a Postgres-backed deployment from
LessonLearnedtoEngram— the hard-cutover ordering for a Kind rename against a Postgres source: freeze writes, run the collision pre-flight + single-transaction migration, bump the pins, and the.dna/-baked-into-the-image trap to not forget.