Skip to content

Kaddo

Prepare any codebase for AI-assisted evolution.

Kaddo is an open-source CLI and agent toolkit that helps new, pre-AI and legacy projects build a living knowledge layer close to the code. The CLI prepares and structures the context; your LLM agents turn it into product understanding.

Kaddo reduces repository exploration by turning project knowledge into structured context. Token savings are a consequence, not the goal.

New projects · Pre-AI codebases · Legacy systems · Bilingual (EN/ES) support

kaddo
# New project
$ npx @kaddo/cli init
$ kaddo bootstrap

# Existing or pre-AI project
$ kaddo scan

# Not sure what to do next?
$ kaddo understand

# Create a work item from the roadmap, then detect drift
$ kaddo create —from roadmap
$ kaddo guard
FYI src/payments/payments.service.ts matches WI-001
    WI-001 was not modified in this diff — consider reviewing it.

From scattered code to observable product knowledge.

Why Kaddo?

Your project already has knowledge. It is just scattered.

In new projects, decisions disappear fast. In pre-AI projects, context was never prepared for agents. In legacy projects, knowledge often lives in people’s heads.

Kaddo brings that knowledge closer to the code and helps keep it alive as the system changes.

Context efficiency through structured knowledge

Kaddo does not optimize prompts, compress context windows or summarize code automatically. It optimizes what the agent needs to discover. Business, Product, Tech and Delivery knowledge become a navigable context layer, so agents spend less time searching the repository and more time making grounded decisions.

Choose your starting point

New project

Start with structured knowledge from day one. → New project

Pre-AI project

Prepare an existing repo for humans and LLM agents. → Pre-AI project

Legacy project

Understand before changing risky systems. → Legacy project

See the full loop

The complete end-to-end workflow with expected artifacts. → Full workflow

Prefer to see it first? The Visual Guide maps the whole loop, the CLI/LLM split and Guard as diagrams. Not sure what Kaddo does and does not do? Read the Project scope.

CLI + LLM Agents

Kaddo works in two layers.

The CLI handles deterministic work: initializing the knowledge repository (with bilingual en/es support), scanning the codebase, creating work items and detecting possible knowledge drift.

Your LLM handles interpretation: using Kaddo agents to extract capabilities, reconstruct architecture, identify risks and propose a roadmap from the project context.

Kaddo does not try to make the CLI “understand everything”. The CLI collects and structures signals. The LLM agents turn those signals into product understanding.

How it works

Kaddo does not start by creating tasks. It starts by understanding the state of the project, then builds knowledge progressively before you evolve the code — through four operating moments: Base → Definition → Projection → Execution.

1 · Initialize & scan

kaddo init then kaddo scan — configure project state, structure, and language (English/Spanish), then detect stack and technical signals.

2 · Prepare context

kaddo context builds an LLM context pack and kaddo add agents installs agent prompts.

3 · Understand with agents

kaddo understand guides the handoff — then use Kaddo agents in your LLM chat to extract capabilities, architecture, risks and a roadmap.

4 · Create from roadmap

kaddo create --from roadmap turns a roadmap candidate into a Work Item; kaddo owners suggest declares code ownership.

5 · Guard & explain

kaddo guard detects when code may drift from knowledge; kaddo explain summarizes what the project currently knows.

The full workflow

Terminal window
kaddo init # state: new | pre-ai | legacy, team size, structure, language (en/es)
kaddo bootstrap # new projects: initial knowledge base (Business → Product → Tech → Delivery)
kaddo scan # deterministic technical inventory
kaddo context # LLM context pack for agent handoff
kaddo add agents # install agent prompt packs
kaddo understand # guided CLI → LLM handoff plan
# use your LLM with the context pack + agents to create capabilities, architecture & roadmap
kaddo create --from roadmap
kaddo owners suggest
kaddo guard
kaddo explain

The CLI prepares context; your LLM interprets it. Kaddo never calls an LLM by itself.

See it in action

Four reproducible demo repositories ship with committed .kaddo/ and knowledge/ artifacts — open one and inspect exactly what Kaddo produces. Each includes a prompt-flow.md with a Mermaid diagram, the CLI↔LLM split and copy/paste prompt handoffs for its scenario.

Task Pilot

Greenfield app · new — structured knowledge from day one; full loop.

Loyalty Lite

Existing app · pre-aiscan + agents + a Guard drift demo.

Old Orders

Legacy MVC app · legacy — understand-before-change; risks & unknowns.

Commerce Stack

Many repos · multirepomodules map + per-module artifacts.

Browse them in the Examples guide, or explore the Templates that capture minimum sufficient knowledge for each artifact.

Scale to multirepo

Kaddo also models a system that spans many repositories. From the architecture repo you map secondary repos as modules and keep their knowledge close to the code:

Terminal window
kaddo modules map # register a secondary repo (frontend/backend/infra…) as a module
kaddo modules list # list mapped modules
kaddo add standards|security|stack|git-strategy # global, system-wide artifacts

Per-module knowledge

modules map generates template-based module-design, stack, security and standards artifacts under knowledge/tech/modules/<id>/, with front matter and code: ownership globs.

Module-aware context & explain

kaddo context and kaddo explain surface mapped modules and their artifact coverage — distinct from add-on modules installed with kaddo add.

Workspace Guard

Opt-in kaddo guard --workspace checks local mapped repos and flags possible drift against code: globs — non-blocking, no cloning, no remote APIs.

Global artifacts

Standards, security, stack and a recommended Git strategy document cross-cutting concerns once for the whole system.

For repos you can’t (or don’t want to) map, exchange Knowledge Capsules instead — kaddo capsule export shares a minimal summary of a system; kaddo capsule add imports it as External Knowledge in the context pack. No multirepo mapping, no source access.

See the Multirepo modules guide and the Visual Guide for the full system map.

Kaddo is a practical implementation of Knowledge Driven Development for AI-assisted software development — it applies KDD principles; it does not claim to have invented them.

Start with a repo that remembers

From new projects to legacy systems, Kaddo keeps product knowledge close to the code.

Get started →

Created by Julian Dario Luna Patiño · v3.60.0