Six Principles for Production AI Agents
Production AI agents succeed through system design and conventional software engineering rather than clever prompts or frameworks. Six principles cover the work: write direct, detailed, non-contradictory system prompts kept static for prompt caching; give each component minimal context with tools to fetch more and automatic compaction; and design a small set of strictly typed, idempotent tools (typically under 10 with 1-3 parameters). The remaining principles are to pair creative LLM actors with strict critics such as compilers, tests and domain invariants, to use LLMs to analyze agent logs for failure patterns, and to treat frustrating agent behavior as a sign of system bugs like missing API keys or ambiguous instructions.
Related posts
- You Should Write An Agent
Fly.io mediumAdeptAn LLM agent is just a loop around a stateless chat API: keep a list of messages, replay it on every call, and when the model emits a function_call, run the tool and append its output. A few dozen lines of Python against the OpenAI Responses API produce a working tool-using agent that decides on its own to ping multiple Google hosts. MCP is barely a technology, just a plugin interface for agents you don't control, and context engineering is a real, legible programming problem of budgeting tokens across sub-agents, tools and summaries. Agent design leaves open problems around nondeterminism, grounding, inter-agent interchange formats and cost, and each design iteration takes about 30 minutes, so engineers should build one themselves.
- Harness, Scaffold, and the AI Agent Terms Worth Getting Right
Hugging Face easyNoviceA glossary of AI agent terms that are often conflated. The model is a stateless LLM. Scaffolding is the behavior-defining layer around it: system prompt, tool descriptions, output parsing and context management. The harness is the execution loop that calls the model, runs tool calls and decides when to stop, and an agent is model plus harness. Further entries cover context engineering, policy, tool use, skills and sub-agents, plus RL training terms (environment, trainer, rollout, reward and rubrics), with pointers to TRL's GRPOTrainer, OpenEnv and Verifiers.
- The Art of Loop Engineering
LangChain easyNoviceAgent systems can be structured as four stacked loops: the basic agent loop (model calls tools until done), a verification loop where a deterministic or LLM grader checks output against a rubric and retries with feedback, an event-driven loop where crons, webhooks or Slack channels trigger background runs, and a hill-climbing loop where an analysis agent mines production traces to rewrite prompts, tools or graders. Each level maps to a LangChain primitive (create_agent, RubricMiddleware, LangSmith Deployment triggers or Fleet channels, LangSmith Engine), illustrated with an internal docs-writing agent. Verification trades extra latency and cost for quality, and human-in-the-loop checkpoints are recommended at every level for sensitive actions. The argument is that compounding value lies in the outer event and improvement loops.
- How we built Linear Agent
Linear mediumAdept
Linear Agent is constrained by boundaries rather than scripted paths: a fundamentals-focused system prompt, tools designed so invalid actions are impractical, and an explicit model of Linear's product concepts. Because the agent has many shallow product tools rather than a few deep ones like a coding agent, capabilities are packaged as "system skills" (metadata, prompt fragment, tools) that are preloaded from context or loaded on demand to keep context small. Linear deliberately avoided exposing the SDK, CLI or GraphQL API, trading breadth for predictability. A custom harness on a durable workflow engine supports dynamic tool injection that preserves the provider prefix cache, contextual tool-call approval, and suspending a parent agent while sub-agents run asynchronously.
- Beyond LLMs: Why Scalable Enterprise AI Adoption Depends on Agent Logic
Hugging Face easyNoviceAgent logic, meaning deterministic software primitives such as program analysis, knowledge graphs, DAGs and planning algorithms running inside the agent harness, steers LLMs toward enterprise workflows and shrinks their context. IBM reports this yields better accuracy at far lower token cost than frontier-LLM-only or ReAct baselines. Reported results include ~30× fewer tokens for COBOL/PL/I app understanding in WCA4Z, 20-45% higher test coverage with up to 15× fewer tokens via Aster, up to 4× better incident root-cause analysis on ITBench with the Instana I3 agent, and 1.3-2× gains in compliance automation. Policy-as-code in CUGA improved task accuracy by 15-26%, and a DAG-guided maintenance agent cut token use by 77% and unsupported claims by 57%. The details are high-level and point to linked papers for methodology.