GuideAgentic ways of working · Beginner

The agentic way of working: an operating model for teams

How a team works with coding agents every day: give them the right context, constrain them with hooks, permissions and CI gates, verify every change, and roll the model out over 30 days without losing control of what ships.

Checked 13 Oct 202618 min read4 prompts1 routine

On this page
  1. What it is
  2. When to use it
  3. How it works
  4. Members only: Set it up step by step
  5. Members only: The loop for every change
  6. Members only: Parallel agents in separate worktrees
  7. Members only: People decide anything irreversible
  8. Members only: Routines for recurring work
  9. Members only: Context hygiene
  10. Members only: Maturity stages
  11. Members only: A 30-day rollout plan
  12. Members only: Anti-patterns to avoid
  13. Members only: Exercises

Set up three things before you hand a coding agent real work: the context it reads every session, the limits on what it may do without a person, and a check that tells it when the work is done. This page turns those three things into an operating model your team can adopt in 30 days, with the files, prompts and settings to copy.

What it is#

The agentic way of working is a team habit, not a product. You describe an outcome, a coding agent such as Claude Code, OpenAI Codex, GitHub Copilot or Cursor plans and makes the change, and you review evidence instead of typing every line. The model has three parts.

  • Right context. The agent reads standing instructions at the start of every session: a CLAUDE.md or AGENTS.md file with the build commands, conventions and rules it cannot work out from the code. Procedures it needs only sometimes live in skills, which load when a task matches them.
  • Right constraints. Permission rules decide what runs without asking, what needs a person and what never runs. Hooks enforce the rules that must hold every time, such as blocking edits to secrets. CI gates and branch protection stop unreviewed code from reaching main.
  • Reliable verification. Every change ends in a check that returns pass or fail: a test suite, a build, a linter, an eval, a screenshot compared with a design. A second agent with a fresh context reviews the diff, and a person reviews the pull request.

One loop runs on top of these parts for every change: plan, take small verifiable steps, verify, review, ship.

1. Plan: the agent drafts a plan and you approve it. This is the first human checkpoint. 2. Branch: the work moves to its own branch or worktree, off main. 3. Implement: the agent makes one small change at a time. 4. Verify: tests and hooks check each step, and each passing step is committed. Implement and verify repeat. 5. Agent review: a second agent reviews the whole diff. 6. Human review: you read the change and approve it. This is the second human checkpoint. 7. Merge: the branch merges back into main.mainyour branch or worktreerepeat for each small stepPlanyou approve itBranchor worktreeImplementsmall stepsVerifytests + hooksAgent reviewsecond agentHuman reviewyou approve itMergeinto mainHuman checkpointHuman checkpoint

Two rules keep the model safe. People decide anything irreversible: merges, deploys, migrations, deletions, payments and messages that leave the company. And recurring work moves to routines, scheduled agents whose output is a pull request or a report that someone reviews.

When to use it#

Use this model when your team changes code, configuration, docs or data pipelines every week and you can check the result automatically. It pays off most on four kinds of work.

  • Repeated changes with a clear check. Dependency bumps, lint fixes, an API migration across 50 files, tests for an untested module.
  • Bug fixes with a reproducer. The agent writes a failing test first, then the fix, then shows the test passing.
  • Investigation. Reading an unfamiliar codebase, tracing one request end to end, finding why a test fails one run in ten.
  • Recurring chores. A daily CI digest, a CVE sweep three times a week, docs that drift from the code.

It fits less well in these cases.

  • You cannot verify the result. Output with no test, build or reviewer behind it is a guess. Write the check first, or keep the task manual.
  • The decision is the work. Choosing an architecture, a price or a vendor is judgment. Let the agent gather facts and draft options, then decide yourself.
  • The data must stay under your control. Customer PII, payroll, unreleased financials and secrets do not belong in a prompt on a consumer plan. Use a business plan whose terms exclude training on your data, a redacted extract, or a local model, and block secret files with deny rules.
  • The change is one line you can type faster than you can describe it.

How it works#

Every coding agent runs the same loop. Claude Code's documentation names three phases: gather context, take action, verify results. Claude searches files, edits code, runs the tests, reads the output and goes around again until the task is done or you interrupt it. Each tool call returns information that decides the next step.

1. Your prompt goes to the model. 2. The model thinks and plans the next step. 3. It calls a tool: run npm test. 4. A PreToolUse hook checks the call and allows it with exit code 0. 5. The tool runs. 6. The result returns and is added to the model context. 7. The model thinks again; on turn 2 it decides the work is done. 8. The answer goes out.Prompt inyour taskModel thinksplans the next stepAnswer outwhen the work is doneHook checks itPreToolUse checkTool runsruns npm testResult returnsadded to contextBash · npm testLoop until done

Your operating model plugs into that loop at fixed points.

  • Before the loop. CLAUDE.md or AGENTS.md, the list of skill descriptions and the permission mode load when the session starts.
  • Inside the loop. Permission rules and PreToolUse hooks run before each tool call, and PostToolUse hooks run after it. A hook that blocks a call sends its reason back to Claude, which adjusts.
  • At the end of a turn. A Stop hook or a /goal condition can send Claude back to work until the tests pass.
  • After the loop. CI, a reviewer and branch protection decide whether the change ships.

The agent does the typing. You own the context, the limits and the definition of done. Instructions in CLAUDE.md shape what the agent tries to do, but Claude Code enforces only permission rules, hooks and permission modes, so anything that must never happen belongs there and not in prose.

Set it up step by step

Do this once per repository. Budget about two hours for a mid-size repo. Every later session starts from it. Step 1: write the context file Run /init in Claude Code to draft a CLAUDE.md from the codebase, then cut it hard. Claude Code's docs suggest ...

Members only below this line

Get the rest of this guide free

What you get on this page:

  • 4 prompts
  • 1 routine

Free. You also get Stratiflux Weekly: one email a week, unsubscribe anytime.

Also in the members part

  1. The loop for every change
  2. Parallel agents in separate worktrees
  3. People decide anything irreversible
  4. Routines for recurring work
  5. Context hygiene
  6. Maturity stages
  7. A 30-day rollout plan
  8. Anti-patterns to avoid
  9. Exercises

Sources

Checked against these on 13 Oct 2026.

  1. Best practices for Claude Code (opens in a new tab)code.claude.com
  2. How Claude Code works (opens in a new tab)code.claude.com
  3. How Claude remembers your project (CLAUDE.md and AGENTS.md) (opens in a new tab)code.claude.com
  4. Configure permissions (opens in a new tab)code.claude.com
  5. Choose a permission mode (opens in a new tab)code.claude.com
  6. Run agents in parallel (opens in a new tab)code.claude.com
  7. Run parallel sessions with worktrees (opens in a new tab)code.claude.com
  8. Manage multiple agents with agent view (opens in a new tab)code.claude.com
  9. Manage costs effectively (opens in a new tab)code.claude.com
  10. AGENTS.md, an open format for guiding coding agents (opens in a new tab)agents.md