---
title: "Start With Intelligence, Compile It Away · Isotopes AI | aidnn"
description: "Part 2 of Simple Control Flow, Intelligent Decisions: how an agentic harness turns repeated reasoning into fast, reusable code."
canonical: "https://isotopes.ai/blog/start-with-intelligence-compile-it-away"
markdown: "https://isotopes.ai/blog/start-with-intelligence-compile-it-away.md"
type: article
published: 2026-11-20
---
# Start With Intelligence, Compile It Away · Isotopes AI | aidnn

> Part 2 of Simple Control Flow, Intelligent Decisions: how an agentic harness turns repeated reasoning into fast, reusable code.

Human version: https://isotopes.ai/blog/start-with-intelligence-compile-it-away
This page as markdown: https://isotopes.ai/blog/start-with-intelligence-compile-it-away.md
Every page on this site: https://isotopes.ai/llms.txt (the whole site in one file: https://isotopes.ai/llms-full.txt)

---

[Blog](https://isotopes.ai/blog) Engineering

## Start With Intelligence, Compile It Away

Part 2 of Simple Control Flow, Intelligent Decisions: how an agentic harness turns repeated reasoning into fast, reusable code.

Nov 20, 2026 3 min read Isotopes AI

On this page

1. The cost of thinking twice
2. System 2 writes System 1
3. A JIT for reasoning
4. Two hard problems
5. Software that needs less intelligence over time

In [Part 1](https://isotopes.ai/blog/control-flow), I argued that agentic software inverts traditional architecture. Keep the state machine small. Put the intelligence in the transitions.

That design is flexible. It is also expensive.

### The cost of thinking twice

In our harness, every agent, whatever its specialty, is a coding agent. It writes code, executes it, verifies the result, and corrects course. That loop handles problems nobody programmed for, and it is slow.

Take a real case from our harness: scheduling a clinical trial. It is a hard optimization problem, dense with interacting constraints. The first time, a coding agent had to reason its way to a working approach. It modeled the constraints and worked through a long optimization loop: code, test, fix, test, fix again. That was money well spent. But the same kind of scheduling request kept coming back. Each time, the agent reconstructed the solution from scratch, consuming over 100 million tokens across its reasoning, coding, and correction cycles.

Rebuilding the same reasoning on every run is amnesia, and amnesia is expensive.

### System 2 writes System 1

So we built a System 1 / System 2-inspired harness, borrowing Kahneman’s split between slow deliberation and fast, automatic response.

System 2 is our general coding agents. They take anything new, ambiguous, or hard.

System 1 is a growing library of reflex agents: specialized agents made almost entirely of static code, each doing one familiar job in a fraction of the time and cost. System 1 is mostly code, rather than a smaller, faster model.

System 2 writes them. Every System 2 run already produces code, so the raw material for a reflex is a byproduct of ordinary work. No separate language for reusable skills is needed. When the system recognizes that the same class of problem keeps getting solved the same way, System 2 extracts the general method, parameterizes what varies, and produces a candidate reflex. Once validated across the problem class, it joins System 1. The trial scheduler became one of the first. Now, scheduling requests within its validated operating range skip that 100-million-token cycle entirely.

A cached answer would be useless here, because every trial is different. What gets compiled is the method: how to formulate this class of problem and solve it. Each new trial still gets a fresh schedule. The harness just no longer has to rediscover how to build one.

Reflexes take over repeated execution. The judgment about when to use one stays with intelligence.

### A JIT for reasoning

The closest analogy is a JIT compiler. A JIT compiles hot paths and, when an assumption breaks, deoptimizes back to the general interpreter. Here, System 2 is the interpreter and reflexes are the compiled hot paths.

But a reflex is distilled from past reasoning, and past reasoning can be wrong. Repetition tells the harness what is worth compiling. Verification establishes what it can safely reuse.

The foreground loop solves problems. A slower optimization loop watches how they get solved and turns recurring successful work into reusable capabilities.

Unlike a conventional JIT, though, the guard on a reflex may itself require sophisticated reasoning.

### Two hard problems

Dispatch is the ultimate sophisticated conditional. Is this input the pattern the reflex was built for, or something that only looks like it? This is Part 1’s inversion again: a two-way branch guarded by a demanding judgment.

Don’t optimize dispatch at the expense of judgment. A frontier model making the call costs little next to the System 2 cycle it saves, while a bad dispatch can route work through the wrong reflex. The cheapest path through the system sits behind the smartest decision in it.

Reflexes rot. A reflex that was right in March can be quietly, confidently wrong by September. So reflexes need validation suites, drift monitoring, and a way to retire them.

### Software that needs less intelligence over time

Over time, the harness turns expensive cognition into cheap computation. That reverses an assumption as old as software. We have always started with deterministic code and reached for intelligence only where explicit programming broke down. Now we can run the other way. We can begin with intelligence, let it meet the real world, watch what it does again and again, and steadily, deliberately harden the repeated parts into software, until the models are left with only the work that truly needs a mind.

Part 1 was about how to organize intelligence. This one is about how to amortize it. One line joins them:

**Keep intelligence in control. Compile intelligence out of execution.**

And the full philosophy:

**Keep control flow simple. Put intelligence in the transitions. Decompose reasoning carefully. And when reasoning becomes repeatable, compile it away.**

*Next: Dreamtime. How NeoCortex learns from an agentic system’s accumulated experience, and decides which intelligence should become software.*

Keep reading

### More from the blog.

All posts →

- [Simple Control Flow, Intelligent Decisions](https://isotopes.ai/blog/control-flow): Nov 16, 2026 Engineering
- [Upgrading the Brain Behind aidnn](https://isotopes.ai/blog/upgrading-the-brain-behind-aidnn): Oct 22, 2026 Engineering
- [Beyond the leaderboard. Decision models in a real workflow.](https://isotopes.ai/blog/decision-models): Oct 15, 2026 Engineering

Next step

### See aidnn on your messiest data.

A live walkthrough on your own workflows. Connected in minutes, not months.

[Book a live demo](https://isotopes.ai/contact) · [Try a demo first](https://isotopes.ai/demos)

---

## Every page on this site

Index for agents: https://isotopes.ai/llms.txt · whole site in one file: https://isotopes.ai/llms-full.txt

**Product:** [Home](https://isotopes.ai/index.md) · [Team of Rivals](https://isotopes.ai/technology.md) · [NeoCortex](https://isotopes.ai/neocortex.md) · [Neutron Apps](https://isotopes.ai/neutron-apps.md) · [aidnn vs Tableau, Power BI and Looker](https://isotopes.ai/isotopes-vs-bi-tools.md)

**Solutions:** [Finance analytics](https://isotopes.ai/solutions/finance.md) · [Banking analytics](https://isotopes.ai/solutions/banking.md) · [Insurance analytics](https://isotopes.ai/solutions/insurance.md) · [Logistics analytics](https://isotopes.ai/solutions/logistics.md) · [Healthcare analytics](https://isotopes.ai/solutions/healthcare.md) · [CPG analytics](https://isotopes.ai/solutions/cpg.md) · [Retail analytics](https://isotopes.ai/solutions/retail.md) · [Manufacturing analytics](https://isotopes.ai/solutions/manufacturing.md) · [eCommerce analytics](https://isotopes.ai/solutions/ecommerce.md)

**Demos and events:** [Demos](https://isotopes.ai/demos.md) · [Get the Number Right: why data teams struggle to deliver trusted numbers](https://isotopes.ai/webinar/get-the-number-right-why-data-teams-struggle-to-deliver-trusted-numbers-and-how-to-fix-it.md) · [Get the Number Right: why finance teams don't trust their numbers](https://isotopes.ai/webinar/get-the-number-right-why-finance-teams-dont-trust-their-numbers-and-how-to-fix-it.md) · [The Cognition Problem: why enterprise AI needs more than memory](https://isotopes.ai/webinar/neocortex-launch.md) · [From messy data to verified analytics](https://isotopes.ai/webinar/verified-analytics.md) · [Events](https://isotopes.ai/events.md)

**Blog:** [Blog](https://isotopes.ai/blog.md) · [Are Models Night Owls?](https://isotopes.ai/blog/are-models-night-owls.md) · [Are the Chinese models good now?](https://isotopes.ai/blog/are-the-chinese-models-good-now.md) · [Beyond the leaderboard. Decision models in a real workflow.](https://isotopes.ai/blog/decision-models.md) · [Everyone's selling the same model, but are they?](https://isotopes.ai/blog/everyone-is-selling-the-same-model-but-are-they.md) · [Telepathy: Are You Thinking What I’m Thinking?](https://isotopes.ai/blog/telepathy.md) · [Trust, but verify](https://isotopes.ai/blog/trust-but-verify.md) · [Upgrading the Brain Behind aidnn](https://isotopes.ai/blog/upgrading-the-brain-behind-aidnn.md) · [What makes a good document parser great?](https://isotopes.ai/blog/what-makes-a-good-document-parser-great.md) · [Start With Intelligence, Compile It Away](https://isotopes.ai/blog/start-with-intelligence-compile-it-away.md) · [Simple Control Flow, Intelligent Decisions](https://isotopes.ai/blog/control-flow.md) · [Cockpits, not Dashboards](https://isotopes.ai/blog/cockpits-not-dashboards.md) · [Quick Reflexes with Jev](https://isotopes.ai/blog/quick-reflexes.md) · [Introducing NeoCortex: The Self-Learning Model Behind Verified Analytics](https://isotopes.ai/blog/neocortex-self-learning-ai-model-verified-analytics.md) · [The Future of APIs: Forward Deployed Agents and Agent Cards](https://isotopes.ai/blog/forward-deployed-agents-agent-cards-future-of-apis.md) · [Will AI Replace Business Data Analysts?](https://isotopes.ai/blog/ai-analytics-reduce-data-analyst-costs-reporting-bottlenecks.md) · [What makes Isotopes AI | aidnn and Snowflake A Winning Integration for NRR?](https://isotopes.ai/blog/snowflake-ai-nrr-analytics-platform.md) · [Snowflake’s NRR Proves Trusted Enterprise AI Platforms Compound Adoption](https://isotopes.ai/blog/snowflake-nrr-ai-analytics-platform-growth.md) · [Why Verified Analytics? Because Trust = Transparency + Repeatability + Verification](https://isotopes.ai/blog/what-are-verified-analytics.md) · [Your Data Isn't Dirty. It's Structurally Fragmented. And It's Getting Worse.](https://isotopes.ai/blog/what-is-messy-data.md) · [From Messy Data to Verified Analytics: Why Most AI Analytics Tools Fail Before They Start](https://isotopes.ai/blog/from-messy-data-to-verified-analytics.md) · [The Orchestration Imperative for AI Agents](https://isotopes.ai/whitepapers/orchestration-imperative.md)

**Company:** [About](https://isotopes.ai/about.md) · [Careers](https://isotopes.ai/careers.md) · [Contact](https://isotopes.ai/contact.md)

**Legal:** [Legal](https://isotopes.ai/legal.md) · [Legal](https://isotopes.ai/legal/index.md) · [Privacy Policy](https://isotopes.ai/legal/privacy.md) · [Terms of Use](https://isotopes.ai/legal/terms.md) · [Cookie Policy](https://isotopes.ai/legal/cookies.md) · [Isotopes AI Master Subscription Agreement](https://isotopes.ai/legal/master-subscription-agreement.md)

