What K9-AIF is
An architecture-first framework for governed multi-agent AI systems, shipped as a Python library, and the path that led to it.
The short answer
K9-AIF is an architectural framework and reference model for governed agentic systems, shipped as a Python library you build on. It defines how to design, compose and operate enterprise multi-agent AI systems with building blocks (ABB and SBB), layered orchestration and governance at every boundary, and it runs them.
Why it exists
K9-AIF did not begin as an attempt to create yet another agent framework. It came from one question: how do we build agentic AI systems that can survive enterprise reality?
There is no shortage of capable agent frameworks. They are very good for building agent workflows. But as organizations move from experiments to production, other problems appear: agent sprawl, weak governance, tight coupling to one model or vendor, poor observability, and systems that cannot be defended architecturally. K9-AIF starts where prototypes fail.
What it gives you
| Concern | What K9-AIF provides |
|---|---|
| Structure | One path for every request, Router to Orchestrator to Squad to Agent, each layer knowing only the one below it. |
| Building blocks | Base classes (ABBs) define the contracts; your classes (SBBs) extend them. The class diagram is the compliance report. |
| Governance | Checks before and after every agent step, by construction: an agent cannot skip them. |
| Provider independence | Models are picked by the K9 Model Router and swapped in configuration, without rewriting the system. |
| Observability | Every routing decision is recorded, so "why did it do that" has an answer. |
| People in the loop | Any step can pause for a human decision through K9X HIL and resume when it is made. |
What it is not
| Not a platform | It does not lock you into a vendor, a cloud or a toolchain. It runs wherever Python runs. |
| Not just a methodology | The thinking is close to TOGAF, but it goes beyond guidance: concrete base classes, patterns and a runtime. |
| Not another agent framework | It works with the OpenAI Agents SDK, the Claude Agent SDK, LangGraph and CrewAI, or alone. See K9-AIF and your agent framework. |
A deliberate tradeoff
K9-AIF is not designed to be the fastest way to build a demo. It is designed to be a credible way to build systems that scale, can be audited, can be governed, and can still be understood months or years later.
It treats agents not as isolated runtime entities but as building blocks within a larger system. Systems evolve without rewrites, components are replaced without breaking flows, and the architecture becomes reviewable and defensible.
Getting started
Two on-ramps. pip install k9-aif and build in code; the developer page walks through it. Or design the system in K9X Studio: from a spec or BPMN file it lays out the Router, Orchestrators, Squads and Agents, then generates the project with its agent and squad YAML, class diagram and a CLAUDE.md that Claude Code uses to implement it.
If agentic AI is going to move beyond experiments, it will need more than agents. It will need architecture.
Next: Why it matters
K9X