---
type: "post"
id: "autotoken-open-source-hackathon-experiment-that-compiles-repeated-a6e11d"
slug: "autotoken-open-source-hackathon-experiment-that-compiles-repeated-a6e11d"
title: "Autotoken: open-source hackathon experiment that compiles repeated coding-agent work into reusable programs"
description: "Autotoken is an open-source experiment that turns repeated coding-agent procedures into deterministic programs."
retrieval_nugget: "Autotoken is an open-source experiment that turns repeated coding-agent procedures into deterministic programs. Its first measurements show one previously seen bug fixed with fewer calls and tokens, but the project explicitly says that repeatability and general savings remain unproven. For builders, it is a useful design test: make recurring agent work inspectable before claiming automation gains."
published_at: "2026-10-31"
updated_at: "2026-10-31"
record_date: "2026-10-31"
date_kind: "published_at"
topics: ["harness-engineering","agent-runtime"]
entities: ["Autotoken"]
related_patterns: ["harness-architecture-outlives-model-choice","goal-scoped-loops-replace-manual-continuation"]
novelty_label: "new_fact"
what_changed: "Autotoken reports a separate open-source experiment compiling repeated coding-agent procedures into programs, with a single live comparison showing 8 to 5 calls and 8.8% fewer tokens; savings remain unproven."
prior_refs: ["memory:e2d148e1-1f30-873a-a6e9-24ae48fdd0c6"]
source_url: "https://hexapode.github.io/autotoken/demo.html"
source_urls: ["https://hexapode.github.io/autotoken/demo.html"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:autotoken-open-source-hackathon-experiment-that-compiles-repeated-a6e11d"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/autotoken-open-source-hackathon-experiment-that-compiles-repeated-a6e11d/","markdown":"https://newruntime.com/posts/autotoken-open-source-hackathon-experiment-that-compiles-repeated-a6e11d.md","json":"https://newruntime.com/posts/autotoken-open-source-hackathon-experiment-that-compiles-repeated-a6e11d.json"}
---

# Autotoken: open-source hackathon experiment that compiles repeated coding-agent work into reusable programs

## Retrieval answer

Autotoken is an open-source experiment that turns repeated coding-agent procedures into deterministic programs. Its first measurements show one previously seen bug fixed with fewer calls and tokens, but the project explicitly says that repeatability and general savings remain unproven. For builders, it is a useful design test: make recurring agent work inspectable before claiming automation gains.

## Summary

Autotoken is an open-source experiment that turns repeated coding-agent procedures into deterministic programs. Its first measurements show one previously seen bug fixed with fewer calls and tokens, but the project explicitly says that repeatability and general savings remain unproven. For builders, it is a useful design test: make recurring agent work inspectable before claiming automation gains.

## What happened

Autotoken presents a click-through demonstration of “programs from repeated work.” Its proposed loop is to observe a request, find a repeated pattern, inspect the resulting program, test it, route work through it, and learn from the result. Rather than requiring a model to rediscover familiar sequences every time, the project packages selected procedures as deterministic code that can be invoked directly.

The demo includes examples labelled “Search + context,” “Expanded read,” “Patch review,” and “Unsupported request.” A reader can edit the sample code and choose a program explicitly. The page is careful about the boundary between demonstration and automation: buttons select programs, the demo executes deterministic code, and it does not claim that a trained router chose the program. Everything in the interactive example runs in the browser; no code, query, or API key is sent to a server.

Its clearest measurement is a live development comparison for a search-context program. On one previously seen issue, the usual agent took eight model calls and reported 33,954 tokens. The programmed version took five model calls and reported 30,963 tokens, an 8.8% reduction. Both resulting patches passed repository tests and a bug-specific check; the original code had failed that same bug-specific check. The context program was triggered twice.

The page also gives counterevidence. An earlier program that automatically ran test and diff checks used 63 calls rather than 65 across nine complete comparisons, while consuming 7.9% more tokens. In a held-out replay for search, six searches supported a bounded context proposal, but only two were followed by supported source-read commands; the program window fully covered one read and partially covered the other. Most historical shell commands fell outside the first parser’s supported subset. The expanded-read program had no covered follow-up turns in its held-out sample, while a patch-review packet was compatible with three Git-only turns but was not an exact command match.

Autotoken therefore frames its results as range coverage and compatibility evidence, not proof of saved calls. It says that extra context has a token cost and that live paired tests are still needed to establish task quality and net savings. Repository-backed variants can be run locally with `autotoken demo-programs`; the page says they need neither an API key nor paid model calls.

## What the archive adds

This is a new event, but it extends the operational question raised in [Agent work is moving into harnesses, factories, and accepted artifacts](https://newruntime.com/posts/agent-work-is-moving-into-harnesses-factories-and-accepted-artifacts/). That earlier note described agent work moving out of a one-shot model response and into reviewable operational loops. Autotoken narrows that idea to repeatable sub-procedures and supplies small, qualified measurements rather than a general framework claim.

## Trend signal

Autotoken supports [Harness architecture outlives model choice](https://newruntime.com/patterns/harness-architecture-outlives-model-choice/). The interesting boundary here is not a particular model: it is deterministic program code that constrains and exposes a repeated part of the work. The project remains too early to show that this boundary reliably lowers cost, but it makes the harness component measurable and testable.

## Why it matters

Coding-agent teams often treat every step of a task as fresh model reasoning, even when the same search, context assembly, test, diff, or review sequence recurs. Autotoken suggests separating those sequences into explicit procedures with defined inputs and observable outputs. That can make a workflow easier to inspect, replay, and benchmark than a larger prompt alone.

The caveat matters as much as the design. A lower model-call count does not automatically mean lower cost or better work: context can add tokens, a parser may cover only a narrow command subset, and a procedure can fail to generalize beyond the issue that produced it. Teams should regard these programs as hypotheses about a workflow, not as cached intelligence or established optimization.

## Limits and uncertainty

The source reports one live paired comparison for the headline token reduction, on an issue that had been seen before. It does not establish performance across repositories, languages, models, unfamiliar bugs, or production task mixes. The source also does not report wall-clock time, implementation effort, failure rates, routing accuracy, or a full cost calculation.

Several other examples are explicitly compatibility or coverage observations rather than demonstrated savings. The expanded-read example had no covered follow-up turns in its held-out sample, and the patch-review case was not an exact command match. The page states that further live paired tests are required to establish both task quality and net savings.

## Skill to build now

Pick one recurrent step in a coding-agent workflow this week: for example, gathering search context before editing or running a fixed test-and-diff packet after a patch. Define its inputs, its allowed commands, and a check that can reject an invalid output. Run it beside the existing agent path on a small set of tasks, recording calls, tokens, test results, and uncovered cases. Do not optimize a token number in isolation.

## Reader takeaway

Autotoken is not evidence that programmed agent routines generally save money. It is evidence that repeated portions of agent work can be made explicit enough to test. The practical move is to identify deterministic, verifiable sub-loops and compare them against unconstrained agent behavior with the same quality checks.

## Open question

Which repeated coding-agent procedures retain quality when moved into deterministic programs across unseen tasks, and which require model judgment at every turn?

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Harness Engineering](https://newruntime.com/topics/harness-engineering.md): Explore the harness-engineering topic hub.
- topic hub: [Agent Runtime](https://newruntime.com/topics/agent-runtime.md): Explore the agent-runtime topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Source Ledger](https://newruntime.com/source-ledger.json): Inspect the public source evidence graph.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
