Back to the portfolio

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
Sanctum schedules work, Watchtower shows failures and costs, and Atlas links research to Forge tasks. In Forge, I can use Claude Code or Codex with my existing subscriptions, or run a coding session with a model on my own hardware. Choosing sources to recheck in Atlas and connecting more AI providers from Forge are planned.
When a change in the documentation suggests a code fix, I can attach the passage to a Forge task, open a coding terminal, and test the change. Watchtower shows the history and cost of Sanctum’s agent runs.Open full drawing

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.

Go runtime / SQLite ledgerTracing a file write
Follow a decision
  1. model_outputThe A.I. assistant proposes a file_write call.
  2. approval_requestThe runtime saves the request and waits for a decision.
  3. approval_decisionThe operator approves the proposed write.
  4. 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.

Keep exploringForge