AI-Native Development: In-House Practices for Building Software with AI Agents
This article breaks down how software organizations adapt when AI coding tools generate the vast majority of their code. It covers the shift from writing code to defining constraints, context engineering across code, standards, business, and historical layers, proactive tooling, layered quality gates, revised human review practices, and metrics that avoid vanity numbers. It also outlines the capability model, common pitfalls, and how the same system maps onto general cloud services. The core takeaway: speed and stability at high automation rates come from turning tacit knowledge into machine-readable assets.
1. From “Humans Write Code” to “Humans Define Constraints”
The traditional development workflow rests on an implicit assumption: code output is limited by human typing speed and attention. Requirements documents, task breakdown, and effort estimation are all organized around the “person-day.” Once roughly 90% of the code inside an organization is generated by AI coding tools, that assumption breaks down. The bottleneck moves from writing to explaining clearly and verifying accurately.
The new division of labor can be summarized in three layers: humans define intent and constraints (what is wanted, what must not be broken); tools search for implementations within that constraint space; and automated pipelines verify whether the result falls within an acceptable range. Engineering output is no longer measured in lines of code but in the number of validated, effective changes.
This also explains why these organizations iterate noticeably faster. Once the unit cost of a change drops, refactors, test backfills, and dependency upgrades that were previously shelved as “not worth the effort” re-enter the schedule.
2. Context Engineering: The First Variable That Determines Generation Quality
The performance of generative tools depends heavily on context quality. In practice, context is usually divided into four categories and governed separately:
- Code context: directory conventions, module boundaries, and usage of shared libraries;
- Standards context: coding style, error-handling strategy, and logging and observability requirements;
- Business context: domain terminology, state machines, and boundary conditions;
- Historical context: post-mortems of past incidents, previously rejected proposals, and the reasons behind them.
An illustrative way to organize context (pseudocode, structure only):
repo/AGENTS.md # Global constraints: tech stack, prohibited actions, commands to run before committingdocs/domain.md # Domain model and glossarydocs/decisions/ # Architecture decision records for retrieving past trade-offssrc/<module>/README # Module-level contracts and extension points
The key practice is making tacit knowledge explicit. Teams consistently report that the floor for generation quality is set by the completeness of standards documentation, not by model parameters.
3. Proactive Intelligence: From Passive Response to Early Prediction
The passive interaction pattern is “humans ask, tools answer.” A more mature form is proactive: the tool flags the impact surface before coding, points out missing tests before a commit, and highlights potential breakage during a dependency upgrade. Three points matter for implementation:
- Move trigger points earlier: set checks at IDE save, pre-commit hooks, and pipeline stages;
- Grade risk: match validation intensity to the scope of the change (local function / module / cross-service);
- Make suggestions executable: every prompt must come with a patch or command that can be adopted directly, not a vague description.
4. Quality Gates: A Prerequisite for High Automation Rates
The higher the automation ratio, the harder the verification system must be. At least four layers of gates are recommended:
| Layer | What Is Checked | On Failure |
|---|---|---|
| Static analysis | Formatting, types, common defect patterns | Block directly |
| Unit tests | Coverage threshold for new logic | Block and require added tests |
| Integration/contract tests | API compatibility, data contracts | Block and notify the owner |
| Canary and monitoring | Error rate, latency, resource levels | Automatic rollback |
The supporting strategy is “small batches, high frequency”: split large changes into small, independently verifiable ones. This lowers the cost of any single rollback and keeps ownership clear.
5. Redefining the Division of Labor in Human Review
The focus of review shifts from “is this code written correctly” to “should this change happen at all.” An actionable review checklist:
- Intent alignment: does the implementation correspond precisely to the requirement, with no unrelated changes slipped in;
- Boundaries and security: input validation, permission checks, handling of sensitive data;
- Maintainability: is the abstraction excessive, are naming and module boundaries clear;
- Observability: are the necessary logs, metrics, and alerts in place;
- Test effectiveness: do tests actually assert behavior rather than duplicate the implementation logic.
6. Metrics: Avoiding Vanity Numbers
Four categories of metrics are recommended: delivery performance (change lead time, deployment frequency, change failure rate), quality (defect density, rollback rate), automation health (first-pass rate of generated code, extent of manual modification), and knowledge assets (coverage of standards documentation, number of decision records). Avoid tracking only the “generation ratio,” which tends to push teams to chase volume at the expense of maintainability.
7. Capability Model and Common Pitfalls
The capability focus for product managers and engineers shifts toward problem definition, constraint design, systems thinking, and result verification. Common pitfalls include: missing context causing repeated rework, gates that are too loose and let defects escape, over-abstraction that creates maintenance burden, and merging unverified generated results directly into the main branch.
8. Implementing on the Cloud
The system above maps onto a general combination of cloud capabilities: code hosting and pipelines carry continuous integration, a container platform provides a consistent build environment, object storage holds build artifacts and context assets, logging services and monitoring alerts support canary observation, and key and configuration management keep credentials secure. Baidu AI Cloud offers corresponding capabilities in these general categories, and teams can combine them according to their own compliance and scale requirements.
Conclusion
The core of AI-native development is not “making tools write more code” but turning an organization’s constraints, knowledge, and verification mechanisms into assets that machines can read. Whoever turns tacit experience into explicit context first will get both speed and stability at high automation rates.
