Engineering Methodology

Agentic engineering: fast agents need a disciplined engineer

Agentic engineering is building software with AI agents that write, test and change code on their own, while engineers set the direction, build the barriers that keep the agents honest, and stay accountable for the result.
By
TL;DR
Agents produce. Engineers remain accountable. Agents won't follow rules just because you wrote them down, so the discipline comes from tools they can't get around: tests, quality metrics and short iterations.

This is the discipline every Pernix engineer, including our apprentices, follows when working with AI agents.

Think of the agent as a junior partner

An AI agent is a partner with real strengths. It knows more than any one of us, reasons quickly, remembers everything from the last few minutes in detail and works at machine speed. It is also a partner that never learns from its mistakes. Correct it, it apologizes, and later it makes the same mistake again.

Its weaknesses are just as real:

  • It doesn't care. It has no sense of what is good or bad for your project, and it will do careless things, including things you told it not to do.
  • It forgets. Its working memory is large but limited. As it fills up, early instructions lose weight or get dropped.
  • It's narrow. It focuses hard on the last thing you asked and loses sight of everything else.
  • It doesn't take ownership. It won't drive a project to completion, and it may stop halfway through a task.
  • It treats rules as suggestions. Instructions in a prompt or a rules file are followed sometimes, not always.

The engineer brings what the agent lacks: judgment, long-term memory, a sense of what matters to the business, systems thinking, and the ability to tell a good design from a bad one. Productive agentic engineering puts each side's strengths to work.

Step back from the syntax, not from the design

Agents are better and faster at writing code syntax than people are. To go fast, engineers have to stop typing most of the code themselves, the same way programmers stopped writing assembly once compilers were good enough.

That doesn't mean stepping away from the system. Engineers still decide the architecture, the modules, how they depend on each other, and what each function is for. What changes is that they no longer read every line. Think of it as working in the "fog of war": you can't see every detail, so you need instruments that tell you what's happening.

Physical barriers: rules the agent can't skip

Telling an agent to be careful doesn't work. What works are tools that physically stop bad changes from getting through:

  • Unit tests, written test-first. Agents write the tests and the code. Tests give the agent immediate feedback when it breaks something, and they document what the system does.
  • High test coverage. Covering code with tests is cheap for an agent, so there's no excuse for leaving code untested.
  • Acceptance tests the agent can't change. Engineers define the expected behavior in plain "Given, When, Then" scenarios. Agents may help write them, but only a person can approve a change to them.
  • Mutation testing. A tool makes small deliberate changes to the code, like flipping a "less than" into a "greater than", and checks that some test fails. If no test notices, the tests aren't really checking that code.
  • Complexity limits. A metric that combines complexity with test coverage (known as CRAP) flags functions that are too complicated and too poorly tested. The agent splits and tests them until they're under the limit.
  • Duplication checks. Agents copy and paste freely. A tool finds code with the same shape and the agent merges it.
  • Dependency rules. A checker makes sure the high-level parts of the system don't depend on low-level details, which keeps the architecture clean as the agent works.
  • Linters. Simple checks catch the small mechanical mistakes agents make, such as unbalanced brackets.

Each barrier keeps the agent in a box. Together, they let engineers trust code they haven't read line by line.

Plans with checkpoints

For any change that takes an agent more than a few minutes, the agent first writes an implementation plan to a file, in phases, with checkpoints between them. At each checkpoint, it stops and an engineer inspects the work before the next phase begins.

Keeping the plan in a file matters: when the agent's working memory fills up and it loses track, it can read the plan again and pick up where it left off.

Instrument and interrogate

Bugs don't go away with AI. When something goes wrong, engineers use the agent as an investigator: they ask what happened, and the agent adds logging, runs the system again and reads the results, narrowing the problem down step by step. The same approach finds performance problems, which are rarely where you expect them.

Engineers also have agents build viewers that show the system from above, such as architecture diagrams colored by quality metrics, so they can see the structure without reading the code.

Build your own tools

The tools above don't need to be bought. An agent can build a mutation tester, a complexity checker or an architecture viewer tuned to your languages and conventions, often in less than an hour, using an existing tool as a model. Your tools should fit your project, not someone else's.

Still agile, only faster

Writing plans and checkpoints doesn't mean going back to waterfall. With agents, agile iterations get shorter, not longer: small plans for small increments, often several in a day, with constant feedback. Simplicity, feedback, communication and courage matter more than ever, because you can't see everything the agent leaves behind.

Fewer agents, more discipline

As agents have improved, the approach has simplified. Early on, keeping agents on track took elaborate setups of many agents in a row, each with a narrow role. Today, a single capable agent can take on a large task and do it well. That only holds when the disciplines stay in place: tests, mutation testing, complexity and duplication limits, and an engineer watching the metrics.

The old rules of good software engineering still apply. With agents, they matter more.

How we apply it at Pernix

  • Every engineer is trained in it. This discipline is part of how every Pernix engineer learns to work, starting with our apprentices.
  • It's written into our standard. The Pernix AI Development Standard sets out what an agent can do on its own, when a person must approve, and how results are checked. An engineer approves every result before it ships.
  • In practice: for HelloCollege, a client of more than ten years, two Pernix engineers built Jefe, a project tracker where AI agents work tickets directly. Only a person can sign off a ticket as done. The typical time to finish a ticket fell from about 15 days to about 6.5.

Related resources

Want agents working on your codebase, with disciplined engineers in charge?

Talk to us.