Mac Anderson

Field manual, second edition

Engineering Deterministic AI Coding Agents

A language model is a probabilistic engine. Almost everything around it can be decided in code: what it retrieves, what stays in its window, which step runs next, what it may do, what it may spend, and what gets recorded. Parts 1 to 13 build that system. Parts 14 to 20 show how to operate the agents you now run.

By Mac Anderson (ORCID 0009-0005-1646-9676). 21 parts, 27 cited sources, 24,568 words. Free to read and share.

Reading paths

Read the two parts that match your problem this week. Come back for the rest.

An engineer building or tuning an agent

Then: Part 13 to set up measurement, then the rest of 4 to 12.

A platform lead or operator answering for several agents

Then: Parts 17 and 20, then part 13.

A security or finance lead reviewing agent use

Then: Parts 15 and 19.

Contents

Operating the workforce

  1. 14Give every agent its own identityYou cannot set authority for, bill, or review something you cannot name.4 min
  2. 15Write the mandateFour decisions govern an agent. Most teams have made all four. Few have them in one place.4 min
  3. 16The agent asks, a rule decidesAuthority is a decision at the moment of use, written down by the team that owns the system.5 min
  4. 17Spend you can attributeA total is not an answer. The answer is which agent spent what, and on whose behalf.5 min
  5. 18Equip agents on purposeA tool in the catalog is not a tool in the agent's hands. Assign equipment the way you assign access.5 min
  6. 19Keep a record another person can readA log answers the engineer who wrote it. A record answers the person who was not there.5 min
  7. 20Bounded tasks and ongoing workSome work has an endpoint. Other work continues. Manage each in its own way.5 min