Beyond Prompts: Unveiling the 98.4% “Invisible” Engineering in AI Programming
Recently, discussions surrounding a “Claude Code project template” have gained traction in the tech community, highlighting an industry trend: top tech teams are shifting their focus from optimizing prompts to building systematic engineering infrastructure for AI, a concept known as a “Harness.” This shift signals a profound change in the paradigm of human-AI collaborative software development.
1.6% vs. 98.4%: The True Composition of AI Programming Tools
The common perception of AI programming effectiveness often centers on the model’s intelligence. However, a paper (arXiv:2604.14228) from VILA-Lab at Mohamed bin Zayed AI University offers a disruptive perspective. After analyzing 512,000 lines of TypeScript source code from Claude Code v2.1.88, researchers found that only 1.6% of the code involves the core decision-making logic of the AI.
The remaining 98.4% is deterministic engineering infrastructure, primarily divided into four categories:
- Permission Gateways: Controls the AI’s access and operational permissions.
- Context Management: Provides the AI with relevant and accurate project background information.
- Tool Routing: Precisely calls external tools or internal functions based on task requirements.
- Error Recovery: Designs robust mechanisms to handle potential errors and exceptions from the AI.
This data clearly indicates that the vast majority of complexity in a stable and efficient AI programming product lies not in the model’s “smarts” but in how AI behavior is guided, constrained, and empowered through engineering.
CLAUDE.md: Building the AI’s “Project Brain”
Under this new paradigm, the workflow centered around a CLAUDE.md file provides an entry-level “Harness” for the average developer to practice. This set of best practices, officially recommended by Anthropic, is not a secret leak but a standardized method for deeply integrating AI into the project development lifecycle.
Its core structure typically includes:
CLAUDE.md: Placed in the project root, this Markdown file acts as the project’s “brain” or “memory.” It contains architectural decisions, coding standards, naming conventions, testing requirements, and rules learned from past mistakes. Claude Code automatically reads this file at the start of each session to ensure its subsequent actions adhere to project constraints.
.claude/skills/: Reusable workflows (SOPs). Developers can encapsulate high-frequency tasks like code reviews, generating commit messages, or writing release notes into executable “skills.” This follows the principle of “if you do something more than once a day, automate it,” greatly enhancing efficiency.
.claude/hooks/: Automated “guardrails.” This is key to ensuring the AI operates safely without supervision. By using deterministic code (rather than relying on AI judgment) for mandatory checks at critical junctures (like before a code commit), it can effectively prevent the AI from making known or high-risk errors, embedding human engineering judgment into machine constraints.
docs/decisions/: Architecture Decision Records (ADRs). This section documents the “why” behind the code, not just the “what.” It provides the AI with deeper context, enabling it to better understand and follow the project’s design philosophy during refactoring or feature development.
Extreme “Harness Engineering” Practices from Industry Giants
The concept of placing AI within a powerful Harness has been validated at scale by top tech companies. The practices at OpenAI and Stripe demonstrate the immense potential of this model.
OpenAI’s Frontier Team: In a blog post titled “Harness engineering: leveraging Codex in an agent-first world,” the team shared their extreme experiment. Over a project spanning about 5 months, the team used the Codex model to generate approximately 1 million lines of code and about 1,500 pull requests from an empty repository, with team members writing almost no code directly. The keys to their Harness design were:
- Strict Hierarchical Architecture Enforcement: A linter in the continuous integration (CI) layer enforced a unidirectional dependency graph, causing any code that violated architectural rules to fail the build.
- Error Messages as Repair Instructions: The linter’s error messages were designed to be directly understood and executed by the AI as repair instructions, such as replacing
console.log with a structured logging call, thus creating an automated “design-code-feedback-repair” loop.
- Documentation as the Single Source of Truth: All design documents and specifications were stored within the code repository, allowing the AI to complete tasks relying solely on information within the repo.
Stripe’s Minions System: Stripe’s internal automated code agent system, “Minions,” is capable of generating and pushing over 1,300 PRs for merging each week. This code is entirely generated by AI and then reviewed by human engineers, significantly accelerating development iteration speed.

The Evolution of the Engineer’s Role: From Code Creator to AI System Designer
The term “Harness” originates from equestrianism, referring to the full set of gear used to control a horse’s direction and speed. In the AI domain, it serves as a precise metaphor for the relationship between a model and its engineering system: Agent = Model + Harness. A powerful model is like a spirited horse, while the Harness is the reins, saddle, and navigation system that directs this power to serve a specific goal precisely.
For the broader developer community, this trend signifies a shift in focus. Rather than waiting for a more perfect AI model, it’s more productive to start building a better working environment for the AI we have today. Practical steps can begin with the following three actions:
- Establish a
CLAUDE.md: Introduce this file to your projects to make implicit team knowledge and project rules explicit.
- Encapsulate
skills: Identify and automate repetitive tasks in your daily development workflow.
- Set up
hooks: Add deterministic checks to critical processes to act as the last line of defense for AI behavior.
In the future, the core value of software engineers will increasingly lie in designing, building, and maintaining these complex “Harness” systems. While the task of writing specific code is gradually being taken over by AI Agents, designing a “world” where these agents can work efficiently and reliably is becoming the more challenging and valuable work for engineers.