K9X

Examples

Three live applications you can try today, and focused examples that each teach one idea: routing, governance, Zero Trust, retrieval, or wrapping an application you already built with the OpenAI Agents SDK, LangGraph or CrewAI.

ExampleWhat it showsAgent frameworkLinks
Live applicationsComplete applications on K9-AIF, running in public. Try them, then read the code.
K9ChatA governed chat assistant on your own models: grounded answers, per-visitor document projects, every message through a rate limit, K9X Shield, Guardian and the router; streaming and an Ask API.NativeTry it Code
OpenAI Agents SDK demosOne use case per page: a weather agent with every tool call checked; a squad running OpenAI agents in a set order; accounts payable where large or changed-bank payments pause for a person in K9X HIL and resume; bad invoices stopped before the model reads them. Runs on local models, no OpenAI key needed.OpenAI Agents SDKTry it Code Blog post
DAS: Defense Acquisition SystemThe flagship. Agents prepare the defense acquisition package and a person decides at every gate: a versioned process model citing its policy sources, every section screened, scores computed in code with an independent grader, and undecided gates failing closed.NativeTry it Code In depth, 7 min Tour, 4 min
Focused examplesSmaller applications in the framework repository. Each one teaches one idea you can reuse.
Weather AssistThe same small app built twice, as plain CrewAI and wrapped by K9-AIF: the crew stays unchanged and gains governance, routing and observability at its boundary.CrewAICode
Weather Assist (LangGraph)The same app and governance with a LangGraph graph inside: the same adapter pattern for a different framework.LangGraphCode
Zero Trust ExecutionEvery agent action evaluated before it runs: identity, data sensitivity, destination and context risk, with allow, conditional or deny decisions set by policy, not code.NativeCode
ACME Support CenterOne architecture, several reasoning strategies (ReAct, agentic RAG, plan and execute, reflection), switched by configuration.NativeCode
ACME Health InsuranceCooperating agents for plan lookup, provider search, eligibility and claims: several agents, connectors and configuration-driven workflows in one domain.NativeCode
RFP AnalyzerA large RFP through the built-in retrieval pipeline: a document squad chunks, embeds into a vector store and answers by retrieval, all governed.NativeCode
Reference
Enterprise Insurance Operations CenterAn earlier end-to-end reference: events on Kafka, domain orchestrators, squads for PII inspection, fraud, adjudication and compliance, Zero Trust, a custom model router and a review queue. DAS is the current flagship.NativeCode
Small code samples
k9routingIntent routing: an intent orchestrator and intent agents driven by configuration.NativeCode
myappThe smallest shape of an agent: a class, its YAML and a test.NativeCode
prompt_evaluationEvaluating prompts with a configuration and a test.NativeCode

Where to start

  1. Weather Assist: the smallest app, and how K9-AIF wraps a framework you already use.
  2. Zero Trust Execution: every agent action governed before it runs.
  3. ACME Support Center: one architecture, several reasoning strategies.
  4. RFP Analyzer: retrieval over a large document.
  5. DAS: a complete application with a process model, screening, grading and human gates.

How to run them

Each example's README has its own setup. From the root of the k9-aif-framework repository:

./run_acme_support_center.sh

DAS and K9Chat live in their own repositories: k9aif/dow-k9x (with k9aif/k9x-hil for the gates) and k9aif/examples.

The examples are practical demonstrations, not finished products: they show how K9-AIF structures governed, modular AI applications you can extend for your own needs.