Back to Blog
·AlgoX2 Team·Engineering

I stopped coding in March: token economics, and why skill files should be code

Alexei Lebedev, our CEO, wrote code by hand from 1990 until March 2026. Then he stopped. Since then everything he builds, he builds with coding agents, and his output has gone up a hundred times, maybe more.

He cleared the backlog of everything he meant to do, then started on work he never expected to have time for. The rest of AlgoX2 works the same way.

This is how we work inside AlgoX2 now: how we use the agents, what we stopped doing, and how we keep the token bill from eating the gains.

Room to be creative

Engineering usually makes you hold your creativity back. First you get the thing working. Once it is stable, you can loosen the screws a little and try new ideas. If you keep pumping out ideas before that, you never get past the demo stage.

With agents, that order changes. You can be creative first, then push through, fix the bugs and ship the product. The ideas no longer cost the time it takes to finish them.

Fewer sessions, more throwaway code

We use Claude Code in the terminal, not the desktop app. Running ten sessions at once is possible, but more sessions are not better. Each switch between them costs context in your own head.

The better way to use the model is as a tool for learning. Ask it questions you do not know the answer to. Its first answer is often wrong, but it moves you toward understanding. Then make it run A/B experiments, take measurements and write throwaway code.

That last habit takes learning. When code is expensive, you try to write the final library the first time. With a model, you open a new session, build a library or framework in one direction, and get far in half a day. Then you know whether the direction is any good, and your own head stays free of the details.

Skill files are code

The usual advice is to write skills, and skills look like English prose. But the model reads every language there is: every programming language, every human language, even DNA. There is no reason to speak only English to it. We think English skill files are a historical misunderstanding.

A skill can be a pseudocode program, with no declared syntax at all. Write an if whose condition is a phrase in English, and the model interprets it fine. Ask it to fix a bug in that program, and it will. It notices that a condition is missing, works out what breaks without it, and writes it in.

You can also take a skill written in English and ask the model to convert it. It turns the skill into a structured program, with conditionals and loops, keeping English only for what has no other form.

Then go one step further. Some conditions really do need a model: a code review agent has to ask whether a change has a security flaw, and no algorithm answers that. Extract those few conditions into model calls, and turn the rest into an actual program.

Let the CPU run the loop

The most expensive thing an AI does is run a loop. Its context window keeps growing, and on every pass through the loop you pay for every token in it. Caching cuts the price of those tokens to a tenth, but a tenth of a quadratic cost is still quadratic.

The loops shouldn’t be executed by the model. That I would say is like financial literacy rule number one.

Alexei LebedevCEO and Co-Founder

The CPU should do the looping. It does it for free, and far more reliably than a model. Hand the model only what a model can do: read and write natural language, read and write code.

Fork from a shared prefix

The other way to stop quadratic growth is still something we are exploring. Say you have a context and ten tasks to do, and the tasks do not depend on each other.

Run them one after another in one session, and the tenth task pays for the ninth, the eighth, and every one before it. Instead, start each task from the same prefix. You pay for the prefix ten times, and from there the cost no longer grows quadratically. If the prefix is small, you are clean.

Independent tasks run in one growing context, compared with the same tasks forked from a shared prefix One after anotherprefix1prefix12prefix123prefix1234task 4 pays for the prefix and tasks 1 to 3Forked from one prefixprefixtask 1task 2task 3task 4each task pays for the prefix once
Scroll sideways for the whole diagramRun one after another, each task pays for the prefix and every task before it, so the cost grows quadratically. Forked from one prefix, each task pays for the prefix and itself.

Add up the cost of every query run by every engineer across a company, and the bill is sizable. Then look at what it bought, and often the answer is nothing. In some cases we cut token counts by 90% and more with little effort, simply by understanding what ends up in the context window.

The point is not to save money on a task. From here on, everything we build, we build with AI, because this way of working is thousands of times more effective than the one before it. So the goal is to fit twice as many tasks, or ten times as many, into the same budget. It is a question of throughput.

Rules injected per file

A skill file is context that gets loaded into the model so it has what it needs to finish a task. But what the model needs is not static. It depends on what the task is.

So we keep the rules and invariants of our codebase in several relational tables, and the rules are hierarchical. One rule says an X2 server-side component may never make a blocking call, because those components all spin hot. A more general rule covers C++ style, such as whether to indent with spaces or tabs.

When an agent opens a file to edit it, a hook runs first. It collects the rules from the related tables and hands the agent exactly the ones that apply: use this indentation, and since this is a server component, never block.

Supplying context from a program this way keeps the context small and makes each token in it useful. Again, it is not about saving tokens. It is about doing more within the same number of them. The same idea, describing a system in tables and generating from them, is behind OpenACR.

Ask the agent what it needs

One more habit: ask the agent how you can help it. Ask what would let it work faster, answer better and find the connections between pieces of information. It will often answer with a design for its own context, and a good one.

Agents as the customer

Some companies already see half their signups come from agents. An agent is asked to solve a problem, finds a tool, and starts using it. The person behind the agent often never learns which tool it picked.

We think this is the future, and in part it is already here. An agent asked to solve a problem works out that it needs a pipeline of components. Then it works out that one component would shorten that pipeline, cut its cost in the cloud and make it far simpler to run.

How does an agent come to know that? Search engine optimization becomes something like semantic utility optimization: stating correctly that you are the right tool for the job. A product has to be readable and usable by agents. They are as capable as people, but they have their own conventions.

Why agents need a runtime

When you write an application, the unknown is the application itself. It is not restartable delivery of your data, and it is not a consensus algorithm. Those are mechanisms for getting from A to B. Unless you are writing a streaming data platform, they are not part of your app, and if you are, you should not download one.

An app needs a minimal interface that lets a system:

  1. spawn its process and scale it,
  2. take snapshots and checkpoints,
  3. restart it from a checkpoint after a failure,
  4. feed it inputs in a declared format,
  5. collect its outputs in a declared format.

For a distributed app running a hundred instances, all of that has to be written down formally. You can no longer just start a process and press enter. We think that work will be handed to agents entirely, and that an agent should pick the runtime that gets it closest to the finished solution. That is where the competition is. The X2 SDK is how AlgoX2 offers that runtime.

A new paradigm, measured in tokens

Agents changed how fast we can build, but the model is an expensive place to run anything a CPU can run. Write skills as programs, let the CPU loop, fork from small prefixes, and feed each edit only the rules it needs. Each of these does the same thing: it buys more work with the same tokens. For what happens to testing when agents write the code, read Testing when bots write the code.

Watch the video

Plays from YouTube, which may set cookies. See the Privacy Policy.

Watch on YouTube


Want more context on the platform? Read about the product, or get in touch with us on the contact page.