AgentModule + Engine + Trace (a trace is the structured log of decisions, actions, and observations recorded during a run). You define the strategy; the Engine owns the loop. This guide walks through that path using the minimal coding agent from examples/quickstart/minimal_agent.py.
Prerequisites
- Python 3.10+
- An API key for any OpenAI-compatible endpoint
1
Install qitos and set your model config
2
Define state around a coding task
Every minimal QitOS coding agent still starts from a typed The key mindset is that the task, scratchpad, and verification contract all live in state, not in hidden runtime glue.
StateSchema:3
Attach a real model and a real coding toolset
The minimal example is intentionally model-backed. It uses an OpenAI-compatible model plus the canonical coding tool preset:
4
Reduce trajectory back into state
reduce() (the method that folds the latest observation and decision back into agent state) is where QitOS turns tool results into agent progress:5
Seed a workspace and run the agent
The minimal example creates one tiny buggy file, then asks the agent to fix it:
6
Inspect the run with qita
http://127.0.0.1:8765. Use it to inspect the patching trajectory (the ordered sequence of steps the agent took), replay the run, and export the trace as HTML.Complete example
The full minimal coding-agent example lives here: You can also run the packaged version directly:Common mistakes
Next steps
Tutorial track
Continue with the four-lesson research path: ReAct, PlanAct, Claude Code-style, and code security audit.
Agent patterns
Compare the high-level tradeoffs between QitOS pattern families before choosing one.
Observability
Inspect every run with qita board, replay, and export.
Kit reference
Look up the parsers, planners, toolsets, and helpers used in the lessons.
