Skip to main content
AI & Technical Systems·Local runtime for coding agents

Agent Runtime

I built an agent runtime around the work that surrounds a model response: choosing a provider, preserving state, controlling tool execution, and handling failures. The goal is a system whose behavior can be inspected and managed as infrastructure around the model response.

My role

I defined the requirements and operating policies, implemented the runtime, and tested interruption and recovery.

Status

Private source · Public case study

Capabilities

Agent reliability · Policy controls · Evaluation

The problem

Coding agents need to recover from interruptions, choose a model that can handle the task, and check permission before executing an action.

What I worked on

The runtime combines local and cloud routing, structured tool-call repair, transactional editing, workspace controls, persistent checkpoints, and a verifier that rejects completion without deliverable evidence.

Evaluation results

Custom runtime vs. original baseline

Both configurations used gpt-oss-20b on the same six fixture tasks, with one run per task and configuration.

Full harness
5 of 6
Fixture tasks completed.
Original baseline
0 of 6
Fixture tasks completed.

A small internal experiment with one model and no repeated trials. It does not establish general reliability or isolate the effect of any one runtime feature.

Separate experiment: model comparison in Hermes

Sage and Flint ran the same five tasks on an M5 Pro with 48 GB unified memory using matched Hermes settings. Both passed all seven coding assertions and completed both non-coding tasks.

Sage median task time
20.07 s
Flint median task time
35.12 s

These are task-level wall times from a small Hermes-only comparison, not token throughput or results for Goose or the custom runtime.

Decisions and tradeoffs

Route for the task

Use task requirements to inform model selection because different workloads need different capabilities.

Preserve enough state to continue

Important task context should survive a failed call or interrupted session instead of depending entirely on a fresh conversation.

Make execution boundaries explicit

Tool access and review requirements should be determined by the configured policy. A model proposing an action is not, by itself, a reason to execute it.

Current status

The evidence should be read as a demonstration of the particular workflow and configuration shown. It is not a guarantee that every possible action is safe or that every deployment uses the same settings.

See the work

Illustrative interface preview · synthetic data

Implementation details

Key subsystems

  • Local and cloud model routing
  • Tool-call repair and structured output handling
  • Workspace confinement and approval controls
  • SQLite checkpoints and evidence-gated verification