Four Technical Schools of Coding Agent Frameworks and How to Choose One
This article examines four technical schools that have emerged among coding agent frameworks, also known as agent harnesses: native-core, event-sourcing platform, product ecosystem, and standard engineering. It compares their architectural priorities, context compression behavior, execution isolation, and evaluation practices, and offers practical guidance for selecting a framework based on task duration, audit needs, latency and isolation requirements, multi-platform reach, and engineering governance.
Introduction: Coding Agents Are Converging and Diverging at the Same Time
Several teams in the industry have recently released their coding agent frameworks, commonly referred to as an agent harness. These frameworks are not the model itself. They are the execution shell that lets a model interact with the outside world: driving the main loop, scheduling tools, managing context, isolating the execution environment, and turning model output into verifiable actions.
When you put several of these projects side by side, one fact stands out. Their core structure is highly similar. Almost all of them drive model and tool collaboration with a ReAct-style “reason, act, observe” loop, offer an MCP-like tool integration protocol, support sub-agent orchestration, and provide some form of plan mode. Yet they have clearly split into four schools when it comes to architectural philosophy, context governance, defense in depth, and ecosystem coupling. Understanding these four schools is more valuable than memorizing any single tool.
Part 1: Four Schools and Their Architectural Philosophies
1. Native-Core School: Pushing the Hot Path Down to System-Level Languages
The core belief of this school is that the hot paths, which run on every token, should not live in an interpreted language. These hot paths include the main loop, sandboxing, shell execution, tokenization, and counting. Rewriting them in a system-level language buys more stable tail latency, finer-grained resource isolation, and process and file system control that is closer to the operating system.
The tradeoff is iteration speed and ecosystem flexibility. Rewriting the lower layers means plugins and extensions must follow stricter boundary contracts.
2. Event-Sourcing Platform School: A Session Is an Event Log
This school models a session as an immutable stream of events. User input, model output, tool calls, tool results, approval decisions, and compaction actions are all appended to the log as events. State no longer lives in scattered in-memory objects. Instead, it is derived by projecting the event stream.
This design yields three direct benefits: replayability (replaying events reproduces the problem), auditability (every tool call and approval is on record), and projectability (the same log can be rendered as a CLI, a GUI, or a storage report). The cost is the version governance overhead of the event schema. Once it ships, backward compatibility has to be considered.
3. Product Ecosystem School: Building a Full Product Line Around the Model
This school treats the framework as one node in a product matrix and extends outward into a persistent daemon, instant messaging channel integrations, a desktop app, a computer-use agent, IDE plugins, and an SDK. The framework itself is only the capability core. The real differentiation is the number of paths that reach users.
The advantage is a complete experience loop. The risk is that framework evolution gets pulled by the product release cadence, which limits general-purpose use.
4. Standard Engineering School: Observability and Evaluation First
This school does not chase architectural novelty. Instead, it makes the policy engine, open telemetry, automated evaluation, and performance baselines first-class citizens. Policies are expressed as declarative configuration, tracing covers every tool call, and evaluation sets and performance baselines are folded into continuous integration. The drawback is that it is often deeply coupled to its own model, which makes migration costs noticeable.
Part 2: An Underrated Dimension: What Really Differs in Context Compression
Across seven comparable projects, context governance shows a pattern of “consistent paradigm, divergent parameters.” All of them use two-stage compression that combines model summarization with verbatim retention of the tail, but the trigger threshold ranges from 50% to 85%. A lower threshold preserves less early information but keeps cost more controllable. A higher threshold gives better continuity for long tasks, but the failure risk rises more sharply as the limit is approached.
A subtler difference lies in how tokens are counted. Only a minority of implementations ship a real tokenizer (native BPE level). Most projects estimate with character-count heuristics. This creates a systematic bias in Chinese scenarios. For the same passage of Chinese text, the ratio between the character estimate and the real token count fluctuates far more than it does for English, which pushes the compaction timing too early or too late.
The engineering recommendation is to make the compression strategy a pluggable interface and to expose at least three observable metrics:
compression_trigger_ratio # trigger thresholdtokenizer_mode # native_bpe | heuristictail_preserved_tokens # tail retention budget
Add one more practice: for long tasks, prefer structured summaries over free-text summaries. Summarize the goal, completed steps, open questions, key file paths, and failed attempts separately, so the summary does not lose actionable information.
Part 3: Defense in Depth: Execution Isolation Is Splitting into Two Extremes
Security capability is the dimension with the sharpest divergence right now. The first tier typically offers native sandboxes on three platforms, an egress proxy allowlist, and the ability to push policies uniformly through a mobile device management configuration stack. Combined with a declarative policy engine (for example, five-level rule priority) and multi-backend sandbox switching, this allows fine-grained tuning between development efficiency and protection against destructive operations.
At the other end are implementations that explicitly provide no sandbox. Their security documentation states outright that the user bears the risk of the execution environment. Some projects also default to a lenient approval posture and leave the emphasis on confirmation to the user.
Minimum security baseline recommended for teams:
- Deny destructive operations by default (recursive deletion, force push, permission changes) and switch to an explicit allowlist;
- Route egress traffic through a proxy and keep audit logs;
- Bind tool permissions to directory scope and prohibit out-of-bounds reads and writes;
- Send all approval decisions into the event log for later traceability.
Part 4: Evaluation and Selection: Turning Subjective Experience into Comparable Metrics
To evaluate a coding agent framework, build a baseline around four metric categories: task success rate (pass rate on a fixed evaluation set), average interaction turns, token cost per task, and security event interception rate. Then layer on latency metrics (time to first token, tool call round-trip latency) and observability completeness (whether standard telemetry protocols are supported).
The selection decision can be reduced to three questions. Are the tasks long-running and in need of auditing (lean toward the event-sourcing school)? Are tail latency and isolation requirements extremely high (lean toward the native-core school)? Do you need to roll out a multi-platform experience quickly (lean toward the product ecosystem school) or need strict engineering governance (lean toward the standard engineering school)?
If an enterprise wants to deploy in its own environment, it can use a combination of general cloud infrastructure: a container platform for sandboxed execution, object storage for event logs and evaluation artifacts, a message queue to decouple long tasks, and logging plus monitoring and alerting systems for audit and baseline dashboards. In these scenarios, Baidu AI Cloud typically participates in assembling the architecture with general-purpose capabilities (containers, storage, logging, monitoring) rather than binding to a specific framework.
Conclusion
None of the four schools is absolutely better. They are different tradeoffs among three sets of tensions: performance versus isolation, auditability versus iteration speed, and ecosystem breadth versus general-purpose use. What is worth tracking is not any project’s ranking today, but four underlying capabilities: whether context compression is pluggable, whether execution isolation is on by default, whether events are replayable, and whether evaluation has a baseline.
