AI infrastructure
Sanctum
Sanctum runs the AI agents behind my development suite. One Go runtime schedules work, keeps a history of each run, and asks for my approval before an agent can write a file.
- Focus
- Agent execution · Scheduling · Human approval
- Current state
- Running locally
- Built with
- GoSQLiteRustTypeScriptNext.js
Keeping the thread across tools
A research question can turn into a code change days later. I wanted to pick it up from either end and see what prompted the work, what the assistant tried, and which decisions were mine.
What I built
- Built a Go agent loop that records messages, tool requests, decisions, and usage in an append-only SQLite ledger.
- Gave scheduled jobs and delegated sessions their own histories, with links to the work that started them.
- Put model access, spending limits, and approval checks in the runtime so each app can use the same controls.
The engineering behind it
An approval belongs to one specific write. The runtime records a digest of the proposed arguments and checks it again before execution. When two clients answer the same request, the first committed decision wins. A reconnecting client can replay the result without repeating the write.
model_outputThe A.I. assistant proposes afile_writecall.approval_requestThe runtime saves the request and waits for a decision.approval_decisionThe operator approves the proposed write.tool_call + tool_resultThe runtime checks the arguments, writes the file, and records the result.
The tool call and its result commit together in SQLite. The assistant receives the outcome on its next model call.
Where each system fits
- Atlas
- Atlas reads the results of scheduled source checks and links findings to exact passages. An accepted finding can become a proposal for review in Sanctum.
- Watchtower
- Watchtower reads runtime health, job history, and spending. It gives me a way to investigate a missed run or an unexpected cost.
- Forge
- Forge opens Claude Code and Codex terminals in a project, using my subscriptions or supported models running on my own hardware. A task can carry a cited passage from Atlas into development.
Where it is today
Today I set up recurring source checks in Sanctum and review the changes in Atlas. I plan to let researchers choose and pause those checks inside Atlas, and let developers connect additional AI provider accounts from the Forge session launcher.