Show HN: AgentML – SCXML for Deterministic AI Agents (MIT)(github.com)
github.com
Show HN: AgentML – SCXML for Deterministic AI Agents (MIT)
https://github.com/agentflare-ai/agentml
1 comments
You can execute the above `OPENAI_API_KEY=YOUR_API_KEY amlx run researcher.aml`
We’ve been experimenting with how to make AI agents more deterministic, observable, and production-safe, and that led us to build AgentML — an open-source language for defining agent behavior as state machines, not prompt chains.
My co-founder posted before but linked to the project website instead of the repo, so resharing here.
AgentML lets you describe your agent’s reasoning and actions as a finite-state model (think SCXML for agents). Each state, transition, and tool call is explicit and machine-verifiable.
That means you can:
- Reproduce any decision path deterministically
- Trace reasoning and tool calls for debugging or compliance
- Guarantee agents only take valid actions (e.g. “never send a payment before verification”)
- Run locally, in the cloud, or within MCP-based frameworks
Example:
```
<?xml version="1.0" encoding="UTF-8"?>
<agentml xmlns="github.com/agentflare-ai/agentml" xmlns:openai="github.com/agentflare-ai/agentml-go/openai" version="1.0" datamodel="ecmascript" name="researcher">
<datamodel>
</datamodel>
<state id="start">
</state>
<state id="log_summary">
</state>
<final id="done" />
</agentml>
```
We’re using this in Agentflare to add observability, cost tracking, and compliance tracing for multi-agent systems — but AgentML itself is fully open-source (MIT licensed).
Repo: https://github.com/agentflare-ai/agentml Docs: https://docs.agentml.dev
We also launched SQLite-Graph, a Cypher-compatible graph extension for SQLite, which will serve as the base for AgentML’s native memory layer. It’s also MIT licensed: https://github.com/agentflare-ai/sqlite-graph
Would love feedback from anyone building with LLM orchestration frameworks, rule-based systems, or embedded MCP tool servers… especially around how to extend deterministic patterns to multi-agent coordination.
— Jeff @ Agentflare