Skip to content

Choose an agent pattern

A kaos-agents pattern decides how a turn executes. Picking the right one is most of getting an agent to behave. The main patterns:

PatternUse it when…What it does
Chata single-step question or tool useclassifies intent, responds or runs one ReAct tool loop. The simplest; what your first agent used.
Researchanswering a question over a document corpusretrieves relevant passages (BM25), answers with verified citations, and refuses when evidence is weak — the grounding contract.
Plan-executea complex multi-step goalproposes a plan, executes steps, and can replan — bounded by a budget.
Findingsextracting structured findings across many docsa recall-first extract → filter → synthesize pipeline with per-doc cost caps and typed refusals.
Routerchoosing among the above per turnclassifies the request and dispatches to the right pattern.
  • One question, maybe one tool? → Chat.
  • Answer must cite my documents? → Research.
  • A goal with several steps? → Plan-execute.
  • Pull the same fields out of 100 contracts? → Findings.
  • Mixed traffic? → Router.

All patterns share the same turn loop, memory, permissions, and cost accounting — they differ only in how step 4 (dispatch) runs. So switching patterns is a config change on the Agent, not a rewrite.