Golden Rules for Agentic Engineering

Indrajeet Patil

Boost productivity without compromising quality

Source code for these slides can be found on GitHub. All illustrations in this presentation are AI-generated.

Before we start

Who this talk is for, and the vocabulary it uses.

Managing expectations

Who these rules are for, and what they cannot do.

Audience

You ship production software

Tests, deployment, security, and maintenance matter.

Caveat

No panacea

These rules sharpen judgement; they are not a magic recipe.

The agentic stack

Same roles, different products. Follow one task through the loop.

Common artefacts

Plain-text files that tell agents how a project works.

Four equal cards in a symmetrical grid show common coding-agent files: AGENTS.md for repository guidance; .agents/skills/<skill-name>/SKILL.md for reusable workflow instructions, with related scripts, references, templates, and assets in the same panel; DESIGN.md for project design decisions; and .github/prompts/<prompt-name>.prompt.md for reusable focused GitHub Copilot tasks.

Golden rules

Ten rules for using coding agents to boost productivity without compromising quality.

Prepare the codebase for agents

Pay down technical debt before scaling agent work.

Two-panel illustration: on the left, an agent copies inconsistent naming, duplicated code, and weak checks, multiplying a tangled codebase. On the right, a person prepares clear conventions, coherent modules, and reliable checks before an agent extends the same orderly module pattern.

Improve developer experience

If humans hunt for context, agents burn tokens too.

Editorial infographic: a human and a coding agent connect to the same well-designed codebase. Five panels identify clear structure (folders, names, boundaries), one-command workflows (setup, format, lint, test), deterministic QA (formatters, linters, types, tests), living documentation (README, conventions, examples), and modular design (small units, clear interfaces). Shared outcomes are speed, quality, and trust.

Improve developer experience

One setup command. The same starting point for humans and agents.

Two-panel illustration: on the left, a detailed ten-step project setup checklist leaves both a human developer and a coding agent confused. On the right, AGENTS.md contains a single instruction, run make setup, and the same human and agent are happy. The command encapsulates the setup procedure behind one shared entry point.

Set deterministic quality gates

Let deterministic checks catch what they can, fast.

Two-panel illustration contrasting a confused robot amid inconsistent style, flaky tests, broken assumptions, hallucinated APIs, and failed builds with a calm robot in a safety harness labelled Formatter, Linter, Type checker, Pre-commit, CI, Sanitisers, and Valgrind. Output cards show consistent style and configured gates passing for tests, types, and builds. Human review is still needed to assess requirements, behaviour, and user experience. A change flows through checks to human review.

Set deterministic quality gates

Agents can repeat checks tirelessly, making strict gates practical.

Two-round quality-gate workflow. In round one, a tireless coding agent submits a change and checks report eight lint findings, three failing tests, and coverage below target. Findings return to the agent to fix and retry. In round two, lint has zero findings, tests pass, and coverage meets its target. The change proceeds to a human reviewer for inspection before merge.

Define done before delegating

Define the outcome and criteria, then have the agent verify its own work.

Three-panel illustration: a human gives a robot a brief containing the goal, constraints, and what stays unchanged; evidence is chosen to fit the task, reproducing and fixing a bug, inspecting a UI interaction, or measuring performance; a human and robot compare requirements with test results because both can share the same mistake. Agree the criteria, verify against them, and review the evidence.

Anthropic, agent evaluations

Maintain session hygiene

As context grows, recall can degrade and agent output can drift.

A focused agent begins with a task and useful context. Stale assumptions, repeated corrections, and contradictory instructions accumulate as context grows. A battery gauge for usable context drains from 100% to nearly empty as recall degrades. The confused agent then misses the current requirement and revives a rejected approach.

Anthropic, context engineering

Maintain session hygiene

Keep each context focused, and save what should outlast the session.

Three practices keep context useful: a focused task can share coherent notes with a related follow-up; parallel tasks A and B work in separate Git worktrees; durable conventions, decisions, and lessons are saved in AGENTS.md for future sessions. Each panel concludes: less noise, better recall.

Know thy tools

Sometimes the unlock is a hidden tool affordance.

Example affordances that users miss: Claude Code CLI voice dictation turns a spoken prompt into terminal input with /voice; Codex CLI generates and edits visual assets; GitHub Copilot CLI computer use operates GUI-only desktop apps with /computer on. An ellipsis indicates more examples, and the footer encourages reading the changelog to discover what the tools can do.

Make agentic artefacts self-correcting

When checks fail or tools change, correct the artefacts that guide future work.

Three panels show LLM robots maintaining agentic artefacts as tools change. In LLM Changes, an LLM updates prompts and skills after a model change. Source Changes replaces read, parse, and write steps with helper.process(); an LLM removes obsolete AGENTS.md instructions. CLI Changes replaces tool plan, tool build, and tool deploy with one tool ship command; an LLM shortens a SKILL.md checklist to that command.

Prompt excerpt

“When a check fails … fix it, then ask what led you to it.”

Automate repeated agent work

Capture recurring workflows once, then run them consistently.

Three aligned columns pair reusable mechanisms with examples: a prompt for dependency updates using repeated instructions, a skill for capturing PR screenshots, and a slash command for addressing review comments.

Identify and remove bottlenecks

Speeding up one stage helps only as much as the rest allows.

A left-to-right software delivery pipeline shows Plan, Code, Review, Verify, and Release. Coding agents speed up Code and create a large pull-request queue at Review, where a flustered human reviewer is buried in changes. Another queue reaches Verify, where a second flustered human struggles to check behaviour manually.

Identify and remove bottlenecks

Relieve the slowest stage first, then look for the next one.

Three panels show slow lint and type checks addressed with Rust-based tools, a pull request queue addressed with smaller changes and a two-way LLM author and reviewer loop, and tiring manual browser checks replaced by an agent running the same three end-to-end checks. Each panel uses compact chips for the bottleneck and intervention.

Give your agents more autonomy

Delegate action, gain capacity, and choose how much control to hand over.

Three equal panels show the argument for agent autonomy. First, a woman delegates three CLI tasks to an agent: create a GitHub pull request with gh pr create, publish a package with npm publish, and read Azure container logs with az container logs. Second, the same woman focuses on system architecture at a drawing board while routine work moves forward. Third, she actively sets the agent's autonomy slider, requires review, and limits access to specific repositories and actions while the agent waits at the workstation.

Give your agents more autonomy

Put firm guardrails around autonomy, enforced by infrastructure.

Two panels show infrastructure enforcing limits on agent autonomy. On the left, a Git branch diagram marks main as protected with a padlock; an agent's attempted deletion is blocked, required checks gate changes, and there is no administrator bypass. On the right, a VPN selector connects to either production or non-production, never both; the agent works in non-production while production remains isolated.

The reward

What the rules add up to when they work together.

A software factory

Routine requests flow to verified merges; people approve high-stakes work.

A seated developer sends a change request to a coding agent, which opens a pull request with UI screenshots and a code diff. Automated QA gates and an independent reviewer send findings back for the coding agent to fix and retry; a separate reviewer-findings loop updates skills and AGENTS.md for future pull requests. The coding agent has a verification harness. The enlarged quality guardrails checklist groups type checks, type coverage, API schema, backend tests, mutation tests, and E2E/UI tests under Correctness; security scan, dependency audit, and workflow lint under Security; and file naming, backend format, config format, Markdown format, backend lint, Markdown lint, spell check, and link check under Style. The coding agent merges the reviewed change, and the completed change appears in a web app.

Constituents of success

Each safeguard covers a gap the others leave open.

An equation shows four safeguards adding up to low-touch feature delivery: quality gates for high code quality, a verification harness for verified behaviour, an independent LLM reviewer that exchanges findings and revised changes with an implementer agent, and self-evolving artefacts that an LLM updates to keep agent guidance current. A person focuses on higher-level work and remains available for oversight.

A software giga factory

Get one project’s factory right, and it can power portfolio-wide automation.

An unattended background daemon uses a clock and gear to scan a portfolio and select one due prompt. It sends the prompt into a clearly drawn software factory inside one project. On its conveyor, an artefact-adjustment station labelled Adjust skills & AGENTS.md feeds the coding agent; a gold feedback loop from quality gates and the LLM reviewer returns to this station so faulty guidance can be corrected. A verification harness checks the change, and a verified pull request goes to a human maintainer. Other projects wait for their turn.

Conclusion

Good engineering practices help agents speed up delivery across the software development life cycle without compromising quality.

Thank you

Go forth and delegate responsibly.