HAVE AI NEWS HAVE AI NEWS
tg subscribe
Research

Context for a Coding Agent: Which Data Actually Changes the Development Plan

Context for a Coding Agent: Which Data Actually Changes the Development Plan

An experiment with a Rust service showed that what matters to a coding agent is not the amount of context, but its ability to change decisions. Team rules and real repositories had the greatest impact, while repetitions had almost no effect on the plan.

For a coding agent, the most useful context is not the longest possible context, but information that changes architectural decisions. This was demonstrated by an experiment involving the development of a text search service in Rust: context was added gradually over 24 steps, and after each step the extent to which the plan had changed was assessed.

Instead of evaluating the quality of the final code, the experiment measured the response to an intermediate artifact—plan.md. This approach made it possible to distinguish data that genuinely affects the course of work from repetitions and explanations that merely take up space in the context window.

How the impact of context was measured

The project used four files:

  • readme.md — project description;
  • plan.md — current implementation plan;
  • logqa.md — history of the agent’s questions and answers;
  • influence.md — assessments of the impact of individual portions of context.

First, a technical specification was placed in the project, and the agent was asked to prepare a plan. Documentation for the API, corporate rules, repository examples, clarifications, and audit results were then added sequentially. A five-point scale was used for each step.

ScoreInterpretation
1The plan requires no changes
2Cosmetic edits or renamings are needed
3There are minor changes without new sections
4Significant changes and new sections appear
5New sections and alternatives emerge, requiring a person to choose between them

The strongest context is found within the team

Two sources received the highest score: corporate rules and real development examples. After studying the rules, the plan included requirements for observability, deployment, repositories, and testing. At the same time, questions emerged that could not be reliably resolved using the general technical specification: whether to choose REST/JSON or gRPC/proto, determine the exact repository names, and decide whether Helm, Kubernetes, and a separate proto repository were needed immediately.

Examples from internal projects proved no less important. The agent discovered that the team uses redup-servicekit rather than an independently assembled observability stack. As a result, the technology decisions changed: a YAML configuration appeared, proto became a Git submodule, build.rs was added, and Dockerfile, Jenkinsfile, Helm, Kubernetes, and CRD-format dashboards were included in the plan.

These are precisely the kinds of data that an agent cannot infer from an abstract technical specification. They describe not only the required result, but also the real constraints of a specific organization.

What had less impact

The Yandex Search API v2 documentation received a score of 4: it clarified that WebSearchService was being used, added work with Operation, decoding of rawData using the Base64 → XML scheme, and a limit of 250 results. quick-xml and base64 were also added to the stack.

However, a subsequent live request to the endpoint had a weaker impact—a score of 3. It confirmed the /v2/web/search address, Api-Key authorization, and the actual XML structure, but did not change the overall architecture. The same category of information provides different value depending on the timing: an early unknown changes the plan more than a later verification of an already adopted decision.

Questions about the version of the redup-servicekit dependency, the list of remaining decisions, and repeated control audits received a score of 1. After corrections, the agent confirmed several times that there were no new significant problems, but the structure of the plan did not change as a result.

Summary of the results

Type of informationScoreResult
Team rules and internal repositories5New sections, alternatives, and questions for a person
Technical specification, external API documentation, stack selection4Significant detail and restructuring of the plan
Live API checks and recording names3Closure of individual open questions
Formatting and renamings2Minor changes without a change of direction
Repetitions and confirmation of decisions already made1The plan remains practically unchanged

How the plan changed during the code audit

The experiment included not only planning but also execution. After the command “execute plan.md,” the agent created proto, a Rust service, tests, Dockerfile, Jenkinsfile, Helm, and Kubernetes artifacts.

The first audit found a critical error: sync_url() appended /search to an endpoint that was already complete, causing the synchronous mode to return 404. Problems with timeouts, async-mode emulation, identifier removal, limiting the number of asynchronous results to 1024, and the response size to 16 MiB were fixed later. No significant defects or regressions remained during the final control cycle.

Practical rules for working with an agent

  1. Keep the technical specification in the project file. This reduces the burden of correspondence and allows the agent to return to the original text.
  2. Provide team rules and internal examples early. They have the greatest impact on the architecture and prevent rework.
  3. Separate facts from decisions. API documentation explains how an external system works, but corporate agreements must be confirmed by a person.
  4. Record open questions. After choosing REST or gRPC, repository names, and configuration parameters, the decision should be recorded in the plan immediately.
  5. Do not duplicate what is already known. A repeated audit or retelling of a source provides no value if it does not change a single decision.
  6. Use verifiable data instead of assumptions. A live API response is more valuable than a guess about its format.

Why a score of 5 is not a sign of failure

The highest score means that the agent has discovered the boundary of its authority. If a choice depends on security policy, team agreements, or the structure of the infrastructure, the model should formulate the options and pass the decision to a person rather than choose a path at random.

Good context does not remove people from the process; it helps them see more quickly exactly where their decision is required.

In the experiment under consideration, the user’s clarifications resolved the forks, and the plan became more specific. This produced a workable scheme: the agent identifies the unknown, the person records the rule, and the agent then continues implementation.

Limitations of the experiment

The results cannot be considered universal statistics. The observation was conducted on a single task—the development of a Rust service—in a single corporate environment. The assessments were also not independent, and the impact was measured by changes to the plan rather than by the quality of the finished product.

Nevertheless, the general conclusion is practical: an agent should be given information that opens up new decisions or changes existing ones. Anything that merely repeats what has already been confirmed is better kept outside the active context.

AI · AI agents · AI model · agent application

Author: vainah

Source: habr.com

Gemini 4 Carbon Now Available to Developers and Businesses
Models

Gemini 4 Carbon Now Available to Developers and Businesses

Google has opened access to Gemini 4 Carbon, its most powerful model for complex software development, scientific research, data analysis and cybersecurity.

Google introduces Gemini 4 Hydrogen for agentic tasks
Models

Google introduces Gemini 4 Hydrogen for agentic tasks

Gemini 4 Hydrogen is Google’s new fast model for coding, multi-step agent workflows, multimodal data processing, and everyday tasks.

Google introduces Gemini 4 Neon for fast, complex AI workflows
Models

Google introduces Gemini 4 Neon for fast, complex AI workflows

Gemini 4 Neon is Google’s new frontier-level model for software engineering, enterprise analysis, science, cybersecurity and long-running agent tasks. It offers a one-million-token context window, flexible reasoning levels and lower per-task costs, with access beginning across Google AI Studio, Gemini for business, Antigravity and the Gemini app.

The West’s Answer to China: Reflection AI Unveils the Beam Open Model After Two Years of Silence
Models

The West’s Answer to China: Reflection AI Unveils the Beam Open Model After Two Years of Silence

Valued at $25 billion, the startup Reflection AI has released a public model for the first time. Called Beam, the development aims to compete with Chinese open-source neural networks in coding and autonomous agents.

Terminal for Multi-Agent Development: Electron, xterm.js, and 16,000 Lines of Tests
Tools

Terminal for Multi-Agent Development: Electron, xterm.js, and 16,000 Lines of Tests

The author of Slightly Parallel created a cross-platform terminal integrated with project and agent management. Development took just over four days, while the estimated cost of API requests came to $927 including related tasks.

Gemini 4 Neon Ranks Third Among AI Models, Outperforming Carbon in Coding and Automation
Models

Gemini 4 Neon Ranks Third Among AI Models, Outperforming Carbon in Coding and Automation

Google’s new Gemini 4 Neon scored 61 points in the Intelligence Index, outperformed Carbon in several tests, and offers a lower cost after December 1.