JH

Open source · Python

agentix

A pip-installable package that splits AI agents into three phases, plan, execute and synthesize, so multi-step runs can be inspected, tested and recovered instead of failing as one big prompt.

Open sourceMIT licensePythonMulti-agent

Overview

agentix is a multi-agent orchestration package I designed, built and published on my own. It is pip-installable, MIT licensed and public on GitHub.

It is the foundation I reach for when a client task really does branch: research, then draft, then review, with steps that depend on each other and some that can run in parallel.

The Challenge

Single-prompt agents work in demos and break in production. Planning, tool output and intermediate results all pile into one context, so the model loses the thread on longer tasks.

When planning and doing are mixed, the model invents steps mid-run that do not fit the plan. And there is no checkpoint: a wrong turn early wastes the whole run, and you only find out at the end.

Solution

agentix breaks every run into three phases with narrow contracts. The Planner turns a goal into a structured task graph: steps, dependencies and which agent runs each one. The Executor runs those steps, in parallel where the graph allows. The Synthesizer assembles the results into one answer and still returns something useful when a branch fails.

New capabilities plug into a registry. Each agent declares a name, an input schema, an output schema and an executor function, and the planner can use it straight away. The orchestration core never changes.

Engineering decisions

State moves between phases as immutable hand-offs rather than one shared object every agent writes to. At any point you can see exactly what was planned, what ran and what came back, which is what makes a multi-agent run debuggable.

Observability was a requirement from day one. A log tells you what happened in order; it does not show which steps depend on which or where a branch stalled. agentix renders each run as a live network graph, so a bottleneck or failed branch is visible at a glance.

Tech Stack

PythonLLM APIsTask graphsPydantic-style schemasNetwork graph visualisation

Outcomes

3
Phases: plan, execute, synthesize
MIT
Open-source license
pip
Installable package

Related reading


Want results like this?

I take on a small number of freelance projects at a time — codebase takeovers, Figma to React, and new builds.