Compilers for Agents


Agent skills are useful but they have limits.

Skills are problematic because you are throwing text into the context window. Remember that the context window is the same for everything.

Historically some departments or parts of the SDLC was more automated them others i.e tests or develops deployments was very automated(ignore manual QA for a moment) and other departments like infosec and legal not so much automated. Now we are in a battle for context, the more context the agents have the better.

What need to happen is to extract information.

And now you think - let's turn into a skill so everybody could use the rules on the code for agents - we are doing context engineering.

But dont because that is not optimized, what if your rules are state based or have different context that some rules apply and others dont, if all rules are universal and always applicable make sense.

But what about progressive disclosure?

It helps and should be always used however it's just a matter of time to have stuff in your context window. But what about code mode?

Whats better them?

Back pressure close the the agent action

In form of compiler, linter or worse case tests. IF the language can provide that embedded on the language compiler even better, perhaps we need to create more compilers.

This is back pressure at the source. AI can't easily skip it. Context engineering it's not literally throw text into the agent but craft better environments where back pressure is part of binaries and agents have less chances to mess it up.

How to do better?

Here are some actions you can take in order to craft better environment for agents.

  • Avoid just manually baby-sitting agents: extract rules and reasons learned.
  • Turn rules into compilers, linters or tests
  • Avoid skills if it can be blended with engineering like a CLI/harness is better.
  • Automation mindset: Do not do manual coding or manual code review, always extract rules and heuristics from your actions in order to reduce manual work.
  • Agents can execute reviews for you but you need review that and work to improve the agents via evals.

Popular posts from this blog

Cool Retro Terminal

Harness Engineering

AI coding Agents Evolution