Legacy project
When to use this: you maintain a legacy system where knowledge lives in people’s heads, changes are risky, and you need to understand before you touch anything.
The guiding principle for legacy projects is understand before changing — and then carry that understanding through every change.
Workflow
Phase 1 — Understand
kaddo init # state: legacy, team size, structurekaddo scan # deterministic technical inventory → .kaddo/scan.jsonkaddo context # LLM context pack → .kaddo/context-pack.mdkaddo add agents # install agent prompt packskaddo understand # guided CLI → LLM handoff planIn your LLM, use legacy-agent FIRST — it reads scan signals, System Graph and existing knowledge to produce structured risks (RISK-xxx), unknowns (UNK-xxx) and modernization candidates (MOD-xxx). Then use architecture-agent, capability-agent and roadmap-agent (which explicitly consults legacy risks and unknowns).
Phase 2 — Plan
kaddo create --from roadmap # small, low-risk Work Items from the roadmapkaddo owners suggest # declare code: ownership on each Work ItemRefine each Work Item with the work-item-agent — it references relevant legacy risks
and unknowns by identifier (e.g. legacy_risks: [RISK-001, RISK-003]) without copying
the full legacy analysis. Then mark ready:
kaddo ready WI-001 # draft/ → ready/Phase 3 — Implement with legacy context
The Implementation Handoff automatically includes relevant legacy context (risks, unknowns, modernization candidates) for the areas being modified. Use the legacy-risk-assessment skill to evaluate which risks require attention before or after implementing.
# Implementation → Evidence → Verificationkaddo verify WI-001 # collect evidence, verify ACs, capture learningskaddo guard # legacy-aware: flags changes in risk areasGuard detects when touched files intersect with known legacy risks and surfaces them as additional context — it never blocks a change, but ensures the team is aware.
Phase 4 — Learn
kaddo learn WI-001 # capture learnings, update legacy knowledgeLearnings from implementation can update knowledge/legacy/risks.md — a risk confirmed,
mitigated, or reclassified during implementation feeds back into the knowledge base for
future Work Items.
CLI vs LLM
- CLI (deterministic):
scaninventories the stack;creatematerializes Work Items;readycontrols the lifecycle transition;verifycollects evidence and verifies ACs;guarddetects drift and legacy risk intersections;owners suggestandguardconnect knowledge to fragile code. - LLM (interpretation): the legacy-agent surfaces structured risks and unknowns; the work-item-agent references relevant legacy findings during refinement; the implementation-agent receives legacy context via the handoff; the legacy-risk-assessment skill evaluates risk intersections.
Kaddo does not understand a legacy system automatically. It structures signals and guides your LLM — the human stays in control of every change.
Context efficiency
In a legacy project, exploration is expensive because wrong assumptions can be dangerous. Kaddo reduces that cost by making risks, unknowns, ownership and current architecture explicit before implementation starts. Legacy findings travel through the lifecycle via stable identifiers (RISK-xxx, UNK-xxx, MOD-xxx) — agents reference them without duplicating content, keeping context windows efficient.
Expected artifacts
knowledge/legacy/risks.md # RISK-xxx structured risksknowledge/legacy/unknowns.md # UNK-xxx known unknownsknowledge/legacy/modernization-candidates.md # MOD-xxx candidatesknowledge/tech/current-state.mdknowledge/product/capabilities.mdknowledge/delivery/roadmap.mdknowledge/delivery/work-items/draft/*.md # → ready/ → in-progress/ → completed/MCP resources
Legacy knowledge is also available via MCP for agents connected through the protocol:
kaddo://legacy-risks— known riskskaddo://legacy-unknowns— known unknownskaddo://modernization-candidates— modernization candidates
Next steps
Prefer small Work Items, capture unknowns as you learn, and declare ownership on the riskiest
areas first so kaddo guard flags changes that may need knowledge review. See the
Full workflow.
Not sure what to run next at any point?
kaddo understandanswers “What should I do now?” from the real state of the project.
See it in action: the Old Orders demo repo, or browse all Examples.