PrismPath
Control flow as data, not code. Deterministic, diffable AI agent workflows written entirely in
Markdown. One file is the graph: each ## heading is a step, each -> target: condition an edge. A
routing spectrum decides every transition at the cheapest tier that can, so you pay for a model only
where meaning genuinely requires one.
- 📄 Markdown is the graph: no Python DAG boilerplate. A routing change is a prose diff.
- ⚡ A spectrum, not one LLM call: a free
whenpredicate, then embeddings, then an LLM only on doubt, pluson errorandon eventfences. - 🔒 Provable, not hopeful:
prismpath validatecompiles the flow and checks reachability with no model; a per flow lockfile pins semantic routing bit for bit; the same signed table runs everywhere.
The whole idea in one file
---
name: support_triage
start: classify
---
## classify
Read the ticket. Emit `category`, `amount`, and `sentiment`.
-> human_review: when category == "billing_dispute" and amount > 500
-> billing: when category in ("billing", "billing_dispute")
-> outage: when category == "outage"
-> retention: when sentiment == "angry"
-> general: else
## human_review
A person decides. High value billing disputes are never auto routed.
## billing
The standard billing queue.
## outage
Page the on-call engineer.
## retention
Route to a retention specialist.
## general
The general support queue.
-> t: when <expr> is a free deterministic edge (first true wins, in document order); a bare
-> t: <natural language> escalates to embeddings, then to a one shot LLM only on doubt; else is the
fallthrough.
Quickstart
pip install prismpath
prismpath init # scaffolds flow.md + flow.tests.md
prismpath validate flow.md # does it compile? no model
prismpath test flow.md # does it route as written? no model
To run the flow end to end (the starter has a semantic edge), add the embeddings extra, then point it at a worker:
pip install 'prismpath[embeddings]' # ~90 MB, on your machine, no cloud, no API key
prismpath run flow.md # mock worker by default; --agent ollama:llama3.2 for a real LLM
vs LangGraph / CrewAI
| PrismPath | LangGraph / CrewAI | |
|---|---|---|
| Definition | inert Markdown | Python / TypeScript code |
| Routing cost | deterministic → embedding → LLM on doubt | a full LLM call, or your own code |
| Validation | compile time, no model | runtime failure |
| Portability | one table on Python, JS, Rust, Go, C, eBPF, an FPGA, and four MCU ISAs | Python runtime |
| Auditability | git diffable + content addressed ledger | logs or a database |
The four baselines are real, runnable implementations, not a strawman.
Going deeper
- The ten-minute tour of the whole engine.
- It runs all the way down. The same Level M table compiles to a Linux kernel XDP program and an FPGA fabric, certified against the same frozen vectors. Those substrates, the decidability proofs, the Facet wire protocol, and an evidence ledger timestamped to Bitcoin live in the research repo: crystal-warden/prism-path.
Apache-2.0 (LICENSE, NOTICE). Fork it and ship it, including inside a proprietary product: retain LICENSE and NOTICE, mark changed files. No user-facing attribution required.
Metadata
Release files for prismpath 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prismpath-0.1.0.tar.gz | 932.8 kB | Without provenance | Details for prismpath-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prismpath-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for prismpath-0.1.0-py3-none-any.whl |
Total release size: 2.0 MB
Release files / prismpath-0.1.0.tar.gz
| Download URL | prismpath-0.1.0.tar.gz |
|---|---|
| Size | 932.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce67b1a4aeafe21e5a6327963ae65839125bc1db06040af8ce35891831f55f2a
|
|
BLAKE2b-256 checksum How to use checksums |
51f7d90aa603f41634f7356a5c66e985db97287af9a419fc4573f132c1f8d525
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / prismpath-0.1.0-py3-none-any.whl
| Download URL | prismpath-0.1.0-py3-none-any.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f1beae8952cd28d2bcea53132055176ecd91f9eb618b3457fbfdb45cafdd3b7
|
|
BLAKE2b-256 checksum How to use checksums |
1dfcb77c3b2752d596dc09f69f6daeac2cf8828f1a3d9ea17c93080c740debf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for prismpath 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.