AI Studio
AI Studio turns folders of markdown notes into knowledge bases that agents can search, and runs AI workflows over them
that you can read, check and trust. Its web app, AI Factory Studio, is where you chat with the agent, build and run
workflows, see what each run did, and browse your knowledge bases.
- Knowledge bases. A folder of Obsidian-style markdown notes is indexed into Postgres. Agents search it with BM25,
vectors and a link graph, over a CLI, an MCP server and a local HTTP API. Each knowledge base declares its own page
types, fields and vocabulary in a schema file, so the same code serves research notes, a repository's docs or a
benchmark dataset.
- Workflows as data. A workflow is a typed file that an agent or a person writes. It is validated before it runs,
built into a
pydantic_graph graph, and run behind gates that a person, a judge step or the agent decides. Its trust
level comes from the evidence its runs recorded, never from a field someone sets.
- Run inspection. Rules read the recorded conversation of each run and raise leads. An inspector model turns a
lead into a finding, such as a wrong tool chosen or a call with the wrong arguments, that names the part of the setup
it blames, or dismisses it.
- Templates. A knowledge base starts from a template that brings its schema, its guidance pages and its
workflows. Two templates load public retrieval benchmarks, so retrieval can be scored against them.
Screenshots
The workflow library. Every saved workflow with its trust level, its steps and gates, and what its runs cost.

A workflow's map. The steps of one workflow in the order they run, with a fan-out over each item, an agent gate
and the path a rejection takes back.

A run. What one run did: its outcome checked against its own facts, what it left behind, what it cost, the
timeline of its steps and the values each step produced.

Inspection findings. What the inspector found in recorded runs: the symptom, the run, the model, and the part of
the setup each finding blames.

A knowledge base's graph. The multihop-rag knowledge base, built from the MultiHop-RAG news benchmark, with one
digest selected and the stories and entities it links to.

Run it
You need Docker, uv and Node 20.9 or later. Only Postgres runs
in a container. The Python apps and the web app run from source.
1. Install
(cd engram && uv sync) # the database migrations run from here
(cd studio && uv sync)
(cd harness && uv sync)
(cd studio-client && npm install)
Each Python project keeps its own environment in <project>/.venv. studio and harness install engram, core and
connectors from their folders as editable path dependencies.
2. Configure
cp engram/config/application_settings.example.json engram/config/application_settings.json
This one gitignored file holds every connection and secret for every app. Fill in these keys: