Agent development can easily be biased by the name of the framework and the presentation effect. There are still state, permissions, concurrency, recovery, evaluation, cost and a large number of product decisions between an Agent that occasionally successfully calls a tool and a system that can be continuously used by real users. This series records the middle engineering distance.

01

Why write this series

This series comes from two types of questions. One type comes from real products: how to gradually turn a user's vague goal into a result that can be saved, checked and continued to be modified; the other type comes from the Agent position: why recruitment requirements repeatedly appear Tool Use, Workflow, Context, RAG, Memory, Trace, Replay, Eval, Security and High Availability.

Both types of questions ultimately point to the same thing: the model is just an indeterminate component of the system. The job of the Agent project is to allow this component to read information, call tools, and change state within clear boundaries, and to make every success and failure understandable.

This series does not take "how many Agent frameworks will be used" as the goal, but takes "whether an Agent product can be designed, implemented, launched, observed and continuously improved" as the criterion.

series boundary

  • Focuses on Agent applications, Runtime, Harness, and engineering platforms.
  • Includes product design, backend, frontend, data, infrastructure and technology management.
  • Do not take large model training, algorithm research and paper reproduction as the main line.
  • Don't force the use of multi-agent, MCP, or complex frameworks just to demonstrate concepts.

02

First create a system map

A production-level Agent can first be viewed as five layers. Each subsequent article will return to this map, explaining where a certain technology is located, what it relies on, and which layers a failure will affect.

01ProductUser goals and interactions
02RuntimeStatus and Workflow
03IntelligenceModel and context
04ToolsData and external actions
05EvidenceObservation and evaluation
levelcore issuesTypical technology
product layerWhat does the user want to accomplish, and when does human control need to be performed?Task process, streaming interface, version, feedback
Run layerHow to split, advance, pause and resume tasks?State machine, DAG, Checkpoint, queue
Intelligence layerWhat should the model see and decide at this moment?Prompt、Context、RAG、Memory
tool layerWhat can the model call and where are the permission boundaries?Tool Calling, MCP, Schema, Audit
evidence layerWhy does it succeed or fail, and is the version really better?Trace, Replay, Eval, Indicators

Security, reliability and cost do not belong to one layer alone. They run through all layers: the product needs to account for failures, the runtime needs to keep state consistent, tools need least privileges, and the evidence layer needs to find regressions and exception costs.

03

Coding Agent Workflow: Turn a session into a repeatable deliverable

Search coding agent workflow When doing something, people often want a set of steps to follow, not just another concept map. Here, the daily work of coding Agent is collected into a repeatable link; this site will not be opened separately. /coding-agent-workflow/ Pages, related English long tails are uniformly anchored in this section (#coding-agent-workflow)。

01BriefGoals, boundaries, acceptance
02ExploreRead paths and constraints
03ChangeSmall steps, reviewable diff
04VerifyBuild/Test/Visual Inspection
05LandSubmit, PR, review
  • Brief:Write clearly what done looks like and what it is not; clarify vague requirements first, rather than letting the model guess the product.
  • Explore:Read the entry, adjacent implementation, and warehouse conventions first, and then change the code; tool calls must have permission boundaries.
  • Change:Advance only one topic at a time; avoid “refactoring in passing” that devours the reviewer’s attention.
  • Verify:Use the real command of the warehouse for acceptance; the fact that the Agent claims to be completed does not mean that the build has passed.
  • Land:Leave searchable commit instructions and links, and feed failure cases back to prompts and review sets.

English practice supplement:How to write a good agent prompt · Cursor agent tips · Cursor rules examples · How to write CLAUDE.md · AGENTS.md vs rules · Cursor skills examples · MCP server tutorial · MCP server best practices · Git worktree for coding agents · Spec-driven development for coding agents · Multi-agent coding workflow · Context engineering

04

Coding Agent Evaluation: Measuring changes with a repeatable harness

Search coding agent evaluation At times, what teams often want is not leaderboard scores, but a fixed set of tasks against which versions of prompts, rules, models, or workflows can be compared. This site is not opened separately/coding-agent-evaluation/ Page, the relevant long tail is uniformly anchored in this section (#coding-agent-eval)。

  • Task fixtures:Several real warehouse scenarios - modifying tests, adding small functions, and changing copywriting according to rules; each item has clear definitions of done and prohibited items.
  • Automatic gate:Build, unit test, lint, type check; Agent claiming to be completed does not mean that the harness has passed.
  • Manual inspection:Whether the diff has a single subject, whether the configuration has been changed beyond the authority, and whether the submission instructions can be retrieved.
  • Cost and delay:Record token/wall clock time to avoid the silent degradation of "higher score but three times more expensive".
  • Regression set:Reduce online failure cases into rerunable items. You must rerun after changing the prompt or rules.

Related English pages: How to write a good agent prompt · Cursor agent tips · Git worktree for coding agents · Coding agent workflow · Multi-agent coding workflow · Context engineering · Harness engineering

05

Multi-Agent Coding Workflow: Orchestration and isolation of parallel sessions

Search multi-agent coding workflow At this time, what the team often wants is not a "multi-model chat room", but how to advance multiple coding agent sessions at the same time without messing up the same work tree. This site is not opened separately /multi-agent-coding-workflow/ Pages, related English long tails are uniformly anchored in this section (#multi-agent-coding)。

Key points in Chinese: Think of “multi-agent” asParallel delivery orchestration——Task splitting, directory/branch isolation, sharing contract, merge discipline—instead of opening two sessions that will modify the same file in one cwd at the same time.

  • Cut tasks according to boundaries:Each agent only takes one clear done and non-target; shared modules are serialized first or merged by humans.
  • Isolate by working tree:use git worktree Give each session a separate directory and branch to avoid dirty trees stepping on each other.
  • Sharing contract, no sharing of semi-finished products:Warehouse level agreement AGENTS.md or rules file; for function-level behavior Specification driven The document is nailed and the task is derived.
  • Unified acceptance:Each session runs its own verify; use it before merging coding agent evaluation Get used to spot-checking diff topics and unauthorized changes.
  • One person does the integration:Parallel output enters the trunk through PR/rebase; the agent does not write directly by default main。

Related English pages: Git worktree for coding agents · Spec-driven development for coding agents · Agentic vs vibe coding · MCP vs A2A · How to write a good agent prompt · Coding agent workflow · Coding agent evaluation · Context engineering · Harness engineering

06

Context Engineering: Give the coding agent a controllable context budget

Search coding agent context engineering At this time, what the team often wants is not another "Prompt technique", but how to decide what the model should see and what should not see at the moment, and how to crop the tool results so that they can still be reviewed. This site is not opened separately /coding-agent-context-engineering/page, the relevant English long tails are uniformly anchored in this section (#context-engineering)。

Chinese Key Points: Treat the context asLimited budget engineering resources- Layered supply, explicit discarding, measurable - rather than stuffing the entire warehouse and chat history into the window.

  • Hierarchical memory:warehouse contract ( AGENTS.md /Rules) → task specification ( Specification driven ) → this session brief ( good agent prompt ) → Temporary exploration notes. The higher up it is, the shorter, reviewable, and versionable it should be.
  • Pull on demand:Read the entry and adjacent implementations first, and then expand the scope; the return value of the tool (including MCP) should truncate the noise field to avoid the log flooding the decision.
  • Explicit non-target:Writing a clear "don't read/don't change" path is more effective than blaming the model for going off-topic afterwards.
  • Window hygiene:Long threads are restarted regularly and the minimum copy is pasted; used for parallel sessions worktree Isolation,to avoid dirty trees contaminating context assumptions.
  • Measurable:in coding agent evaluation Record "how many contexts are used for the same task/whether it still passes acceptance" to prevent silent heaping of contexts.

Related English pages: How to write a good agent prompt · How to write AGENTS.md · Cursor rules examples · MCP server tutorial · Spec-driven development for coding agents · Coding agent workflow · Coding agent evaluation · Multi-agent coding workflow · Harness engineering

07

Harness Engineering: A Practical Checklist from Model + Harness

Search agent harness engineering At this time, what the team often wants is not a review of the paper, but how to embed the "model" into the deliverablePeripheral system: Tool surface, isolation, acceptance gate, contextual budget and cost. This site is not opened separately/agent-harness-engineering/ Page, the relevant English long tail is uniformly anchored in this section (#harness-engineering)。

Key points in Chinese: Think of harness asEngineering layer outside the model- It determines what the agent can touch, how to prove completion, and how to recycle it if it fails - rather than ending with a stronger underlying model.

  • The tool surface narrows:Expose only the commands required to complete the task / MCP / API; the permissions are read-only by default, and write operations require clear policies (see MCP best practices)。
  • Isolated execution:Independent working trees or sandboxes to avoid dirty trees stepping on each other; used for parallel sessions git worktree with multi-agent Discipline.
  • Acceptance gate:build/test/lint is the hard exit of the harness; the same as coding agent evaluation Share the same set of done definitions, rather than trusting the model to verbally say "done."
  • Context supply:Warehouse contracts, specifications, layered injection in this session brief; see budget and tailoring context engineering。
  • Cost and recovery:Record token/wall clock; failed tasks can be rerun and rolled back; not written directly by defaultmain。

Related English pages: How to write a good agent prompt · How to write AGENTS.md · How to write GEMINI.md · MCP server tutorial · Git worktree for coding agents · Spec-driven development for coding agents · Coding agent workflow · Coding agent evaluation · Context engineering · Multi-agent coding workflow · Observability · Guardrails

08

Coding Agent Observability: What to measure, not what to pretend

Search coding agent observability At the time, the top of the SERP was often the OTel/Grafana installation document of a certain manufacturer. This siteDo not open alone/coding-agent-observability/ URLs, related long tail anchors are in this section (#observability): First figure out the signal to be observed, and then select the tool.

  • Session dimensions:Whether the task is completed, the number of retries, the number of manual interventions, and the wall clock duration.
  • Tool dimensions:Number of tool calls, error rate,isError proportion to protocol failures (see MCP error handling)。
  • Token/Cost:Input and output token, cache hit, single task cost upper limit alarms.
  • Failure mode:Override paths, wrong tool selections, acceptance gate failures, context overflows - and coding agent evaluation Share the same set of definitions of "done".
  • Harness alignment:Observability is harness Eyes: Without gate metrics, it's just log stacking.

Related: Harness engineering · Coding agent evaluation · Guardrails · MCP server testing

09

Coding Agent Guardrails: Prompt word weak constraints vs runtime rejections

Search coding agent guardrails A common confusion is to regard "the system prompt says not to do so" as a guardrail. This siteDo not open aloneIndependent URL, long tail anchored in#guardrails: Layered constraints instead of Docker installation images (sandbox installation words are still deprecated).

  • Prompt word/rule layer (weak):AGENTS.md, IDE rules, session brief statement non-goal - necessary but not sufficient.
  • Rejected at runtime:Tool whitelist, path allowlist, dangerous command interception, MCP destructiveHint Honest annotation + host confirmation.
  • Approval/manual gate:Writing production configuration, payment, DNS, deletion of database, etc. must be confirmed explicitly.
  • Isolation:worktree/sandbox limits blast radius - see git worktree with multi-agent。
  • Relationship with harness:guardrail is harness the boundary; observability proves whether the boundary has been breached - see observability。

Related: Harness engineering · Observability · Multi-agent coding · MCP best practices · How to write AGENTS.md

10

How eight articles are organized

The topic entrance is fixed as /series/agent-engineering/. Sub-articles use semantic URLs and do not write serial numbers in the path; the reading order is maintained by the topic page, so adjusting the order in the future will not destroy the link.

Plan 01 · /series/agent-engineering/foundations/

Boundaries and architecture of production-level agents

Distinguish between model calls, chat applications, workflows and agent systems, and establish a minimum architecture from user goals to running results.

  • What problems require an Agent?
  • Deterministic code and model judgment
  • Core components of Agent Runtime
  • Production level acceptance criteria
Plan 02 · /series/agent-engineering/model-interfaces-and-tools/

Model interfaces, structured output and tool contracts

Converge unstable model output into verifiable, authorizable, and recoverable tool calls and business protocols.

  • Streaming vs. Structured Output
  • Function Calling
  • Tool input and output contract
  • Model routing and degradation
Plan 03 · /series/agent-engineering/runtime-and-workflows/

Runtime, state machine and long task workflow

Manage planning, execution, manual validation, retries and recovery with status, task dependencies and checkpoints.

  • Planner and Orchestrator
  • DAG and state machine
  • Asynchronous tasks and concurrency
  • Idempotence, compensation and recovery
Plan 04 · /series/agent-engineering/context-rag-and-memory/

Context, RAG and Memory

Let the agent obtain the correct facts in limited context while controlling the source, permissions, timeliness and token cost.

  • Context layering and budgeting
  • Full RAG link
  • Memory types and life cycles
  • Search and cite reviews
Plan 05 · /series/agent-engineering/trace-replay-and-evaluation/

Trace, Replay and Eval

Answer why a run succeeded or failed, and compare model, prompt, and workflow versions with a fixed test set.

  • Run / Step / Event
  • Traces and indicators
  • Security Replay
  • Offline evaluation and online feedback
Program 06 · /series/agent-engineering/reliability-and-security/

Reliability, security and authority governance

Handles timeouts, duplicate executions, third-party failures, prompt injections, unauthorized tools, and sensitive data.

  • Error classification and downgrade
  • Tool minimum permissions
  • Manual confirmation and audit
  • Capacity, current limiting and fault recovery
Plan 07 · /series/agent-engineering/shipping-agent-products/

Make Agent a product that can be launched online

Integrate the underlying capabilities into the real user process and form a complete product closed loop through front-end status, version, cost and feedback.

  • Start with user tasks
  • Agent product interaction
  • Deployment and Observability
  • Metrics drive iteration
Program 08 · /series/agent-engineering/technical-leadership/

Technical leadership and team delivery of the Agent project

Break the system into modules that small teams can deliver in parallel and manage interfaces, quality, risk, scheduling and technical debt.

  • Modules and responsibility boundaries
  • Task splitting and acceptance
  • Technical Decisions and Code Review
  • Cross-team promotion and review

Currently only the overview page is published. The sub-article will establish a formal route after the content is completed to prevent search engines and readers from entering a placeholder page with only a title and no argument or practical evidence.

11

Validate knowledge with real products

The main practice vehicle for the series is AI Story Writer. The user's goal is not to "run an Agent" but to turn scattered ideas into outlines, paginated text, illustrations, and story assets that can continue to be edited. This process naturally includes planning, tools, long context, asynchronous media tasks, manual confirmation and local retries.

Every technical topic goes back to the product question. For example, Memory is not to save more chat records, but to maintain roles and user preferences in multiple rounds of creation; Replay is not to re-run the entire story, but to repair only the failed page from the safety checkpoint; Eval is not to get an abstract total score, but to discover whether age adaptation, role consistency, image and text consistency, and content safety have returned.

practical constraints

The article will clearly distinguish between capabilities that have been launched, designs that are being verified, and future plans. Test data is not packaged as production data, and adjacent project experience is not written up as completed functionality.

12

What does it mean to truly master

The same set of evidentiary standards applies to each core topic in the series. Concept explanation is only the starting point. A capability must at least move from "understanding" to "implementation", and key capabilities must eventually reach "production".

HierarchyJudgment criteriaEvidence that the article needs to provide
understandCan explain purpose, boundaries and trade-offsProblem definition, counterexamples and solution comparisons
realizeAble to complete controlled functions and verifyProtocols, critical code, tests and status changes
produceCan handle real operations and failuresTrace, metrics, costs, failures and fixes
responsibleAble to do architecture and team deliveryDecision recording, task splitting, acceptance and review
  • A complete Trace: Model, context, tools, time, cost and errors.
  • A safe replay: Indicates which side effects will not be executed repeatedly.
  • A fixed set of reviews: Ability to compare prompt, model or workflow versions.
  • a failure case: Contains root cause, fix, and measures to prevent recurrence.
  • A set of operating indicators: Success rate, P95, cost and error distribution.

13

Writing and publishing order

Articles do not have to be written strictly in the order of the table of contents. Prioritize the release of topics that already have real implementations and problem materials, and then fill in the parts with insufficient evidence such as RAG, Replay, Eval, and high concurrency through subsequent product construction.

  1. Write runtime and long-task workflow first, because there are already asynchronous tasks, concurrency and recovery practices.
  2. Then write the model interface and tool contract, and precipitate the existing Function Calling and asset version protocols.
  3. Then complete the Context, RAG and Memory, and create a retrieval evaluation at the same time.
  4. Write Trace, Replay and Eval after you have unified running data to avoid staying at the conceptual level.
  5. Finally, reliability, security, product launch and technical leadership are summarized to form an end-to-end case.

Each article should independently answer an engineering question while linking back to the thematic map. After the series is completed, readers can either study in sequence or start from a production failure, a technical term or a product requirement.

14

FAQ

What are Agent Engineering Notes?

This page is an overview of codemo’s Agent engineering notes: recording in Chinese how to use model calls to make a system that can be launched online, observable, and improveable, instead of staying at Demo or framework comparison.

Does the Coding agent workflow have a separate URL?

No. To avoid duplication and dilution,coding agent workflow Merged into this page Coding Agent Workflow Chapter. If you need practical English practice, you can read again How to write a good agent prompt、 Cursor agent tips、 Cursor rules examples、 How to write CLAUDE.md、 How to write GEMINI.md、 AGENTS.md vs rules、 Cursor skills examples、 MCP server tutorial、 MCP server best practices with Git worktree for coding agents。

Is there a separate URL for Coding agent evaluation?

No. Reviews/harness discussions merged into this page Coding Agent Evaluation Chapter: Fixed task fixtures, automatic gates, manual sampling and cost regression instead of public rankings.

Is there a separate URL for Multi-agent coding workflow?

No. Multi-agent parallel coding and orchestration are merged into this page Multi-Agent Coding Workflow Chapter: Task segmentation, worktree Isolate, share contracts and merge disciplines; and Workflow 、 Evaluation and Spec-driven coding agent Internal links, no independent URLs.

Does Coding agent context engineering have an independent website?

No. Contextual engineering discussions merged into this page Context Engineering Chapters: Contextual budgeting, hierarchical memory, tool result tailoring and evaluation; and Workflow 、 Evaluation 、 Multi-agent Internal links, no independent URLs.

Does Agent harness engineering have a separate website?

No. Model+Harness practical checklist merged into this page Harness Engineering Chapters: Tool Surfaces, Isolation, Acceptance Gates, Contextual Budgeting and Costing; and with Context Engineering 、 Evaluation 、 Multi-agent Internal links, no independent URLs.

Who is this series for?

It is suitable for engineers and technical leaders who are integrating coding agents, tool calls or asynchronous tasks into real products. If you just want one-time chat skills, give priority to English ones Prompt、 Cursor tips、 Cursor rules examples with CLAUDE.md writing method; If you are going to deliver, start with the System Map and Evidence Standards.

What is the relationship with Codex related articles?

Codex CLI multi-configuration with Codex cloud access It is a specific runtime practice; this series provides a higher-level engineering map. The two are linked to each other and do not replace each other.