Why There Is No Perfect AI Agent: Five Design Philosophies and Their Trade-offs

    This article explains why the design goals of AI agents often conflict. Drawing on source code, official documentation, and community reverse-engineering reports about a commercial AI coding agent, it outlines five design philosophies: human decision authority, security and privacy, reliable execution, capability amplification, and context adaptability. It also covers the trade-offs between these philosophies, how design choices change across deployment scenarios, and a checklist for building or evaluating agents.

    1. From Answering Questions to Executing Tasks

    Early AI programming assistants mostly worked in a question-and-answer format. A user provided a code snippet, the model returned suggestions, and the user decided whether to accept them.

    When a system can gather context on its own, break work into steps, call tools, run commands, and check the results, continuing through multiple loops until the task is done, it becomes an agent. For example, a user can say only “Fix the failing test cases in the authentication module tests.” The agent then reads the relevant files, runs the tests, locates the errors, modifies the code, and runs the tests again until it judges the task complete.

    This capability changes what architecture decisions mean. Architecture choices affect not only response speed but also what the system does, what it can achieve, and how it handles errors. Safety, controllability, and sustainability therefore matter as much as performance.

    2. Research Perspective: Inferring Design Intent from Source Code and Documentation

    An academic study uses a commercial AI coding agent as a case to analyze the design space of production-grade agents. Rather than only describing implementation details, the study combines three types of material: source code, official documentation and blog posts, and community reverse-engineering reports. The researchers set out to answer a more fundamental question: why was the system designed the way it is?

    This approach has practical value for engineers. The same feature can often be implemented in many ways. Understanding design intent helps teams judge which practices are worth adopting and which are only workarounds for specific scenarios.

    3. Five Design Philosophies

    The study identifies five design philosophies centered on human values. Together, they shape the system’s main subsystems.

    3.1 Human Decision Authority

    Every step an agent takes should be visible to people, approvable by them, and rejectable by them. Operation logs need to be readable, high-risk actions need explicit confirmation, and users should be able to interrupt a task at any time.

    A common implementation approach is to assign risk levels to tool calls. Example code:

    1. RISK_LEVEL = {"read_file": "low", "run_shell": "high", "delete_file": "high"}
    2. def execute(tool, args, ask_user):
    3. level = RISK_LEVEL.get(tool, "high") # Unregistered tools are treated as high risk
    4. if level == "high" and not ask_user(tool, args):
    5. return {"status": "rejected", "reason": "User did not approve"}
    6. return run_tool(tool, args)

    The key idea in this code is “unknown means high risk.” For unregistered tools, the system requires manual confirmation by default rather than allowing them to run directly.

    3.2 Security, Privacy, and Data Protection

    Even when no one is watching, the system must protect users, their code, and their data. Specific measures include limiting the scope of file access, sandboxing command execution, keeping secrets out of logs and context, and checking for sensitive data before any data is sent externally.

    The study mentions “Deny-First” as a typical example. Operations that permission rules do not explicitly allow are denied by default, rather than allowed first and remediated afterward. This aligns with the principle of least privilege in cybersecurity.

    3.3 Reliable Execution

    Long-running agents tend to drift from their goals. They may modify unrelated files or repeatedly try approaches based on wrong assumptions. Reliable execution requires the system to keep validating throughout the process. After each round, the system checks whether the results match the task goal, sets a maximum number of iterations, and saves checkpoints at key stages so changes can be rolled back.

    3.4 Capability Amplification

    The value of an agent lies in letting people accomplish work that was previously difficult, such as handling changes across multiple modules at once or running a batch of regression tests overnight. Its role is to reduce repetitive labor, while judgment remains with people.

    3.5 Context Adaptability

    A good agent needs to understand a specific project’s directory structure, coding conventions, common commands, and team habits. This information can come from project configuration files, session memory, or settings the user defines explicitly. As usage grows, the system should predict user intent more accurately. However, users must be able to view, edit, and delete memory contents. Otherwise, adaptability becomes a privacy risk.

    4. Tensions Between the Five Philosophies

    The five philosophies do not always agree. One of the paper’s key contributions is identifying the tensions between them.

    • Human confirmation vs. efficiency: The more often confirmation is requested, the more likely people are to experience “click fatigue” and approve everything mechanically, which leaves the confirmation mechanism in name only. A practical approach is to require confirmation only for irreversible or high-impact operations.
    • Security vs. capability: The stricter the restrictions, the harder it becomes for an agent to complete tasks. Excessive restrictions push users to disable protections, so permissions should be configured finely for each project and scenario.
    • Reliability vs. autonomy: More checks and fallbacks slow execution. However, autonomous execution without validation is more likely to produce hidden errors.
    • Adaptation vs. privacy: The more an agent remembers, the better it fits user habits, but it also stores more information. Teams need to balance visibility and convenience.

    The table below summarizes common trade-offs.

    Design Choice Benefit Cost Common Mitigation
    Step-by-step human confirmation Controllable and traceable Interrupts the workflow Tiered confirmation and batch approval
    Strict deny-by-default permissions Reduces the risk of accidental operations High initial setup cost Project-level permission templates
    Long-term memory Fits usage habits Privacy risk and outdated information Viewable and clearable memory, with expiration periods
    Multi-round automatic iteration Completes complex tasks Drifts from the goal and consumes resources Iteration limits and staged checks

    5. How Thirteen Design Principles Map to Subsystems

    The paper organizes thirteen design principles and maps them to subsystems such as permissions, context management, extensibility, and sub-agents. Readers can use these principles as a checklist. Each subsystem should answer three questions: In which situations must requests be refused? In which situations must the user be asked? Which information must be retained?

    Sub-agent design requires particular attention. The main agent hands subtasks to independent sub-agents, which isolates context and reduces the information load on the main conversation. However, sub-agents also expand the permission boundary. Teams therefore need to define which tools a sub-agent can access, how its results are returned, and who is responsible for its output.

    6. The Same Problem Has Different Answers in Different Scenarios

    The same design question can produce different answers in different deployment scenarios.

    • Individual local development: The user is the only operator, so more automation may be acceptable. Teams still need to guard against accidental file deletion and leaked local secrets.
    • Shared team environments: These require a unified permission policy, audit logs, and reproducible configurations.
    • Unattended background tasks: There is no opportunity for real-time confirmation. These tasks must rely on predefined rules, sandboxes, and safe exit mechanisms when failures occur.

    No single architecture fits every scenario. A more sound approach is to first define the constraints of the scenario, then decide the priority of the five philosophies.

    7. Implementation Checklist

    If you are building or evaluating an agent, you can use the following questions as a checklist:

    1. Is the risk level of each tool clearly defined? What is the default handling for unknown tools?
    2. Which operations require manual confirmation? Is the confirmation information sufficient for a person to make a judgment?
    3. File access, network access, and