AI Agent Engineering Practices: Building Agents on Bash and the File System

    This article examines how modern AI agents are engineered through one core idea: build them with a basic tool set and the file system instead of proprietary API wrappers. It covers the architecture built on Bash and filesystem access, and the Agent SDK work required to supply context without leaking sensitive details; interaction patterns such as the Ask User Question mechanism, along with rate limiting and resource scheduling; the challenges of bringing a CLI tool to Windows and the canary release strategy used; the Skills architecture for passing on knowledge the model lacks, organized through progressive disclosure; the shift from Markdown to interactive HTML for agent output and its rendering and sandboxing constraints; and the compliance logic behind blocking untrusted third-party platforms. It closes with the philosophy behind these practices and what developers and enterprises can take from them.

    1. Introduction: From Academic Exploration to AI Agent Engineering

    As AI moves from the laboratory into large-scale industrial deployment, the paradigm of human-computer interaction is undergoing a profound shift. Early interaction research focused mainly on physical form factors or single-modal input unlocking. Researchers have extensively studied how efficiently users can swipe to unlock a smartphone, or how a deformable physical joystick can convey haptic feedback. But as large language models (LLMs) and code generation have matured, AI agents have progressively taken over the automated execution of complex tasks.

    Recently, a core member of a technical team working on foundation model R&D departed, drawing widespread industry attention. This person has an academic background at a top media lab and experience as a serial entrepreneur. They had been deeply involved in building a general-purpose intelligent coding tool in CLI form and led the core design of its Agent SDK.

    Setting aside specific commercial entities, this article uses that engineer’s core idea — build AI agents with a basic tool set and the file system — to examine four aspects of today’s intelligent coding assistants: architecture design, CLI ecosystem management, cross-platform release strategy, and multimodal rendering practices.

    2. Core Architecture: Building Agents on Bash and the File System

    Traditional approaches to building AI agents often rely on complex proprietary API wrappers or dedicated middleware. These give teams fine-grained control, but they also bring high maintenance costs and poor portability.

    2.1 A Minimalist View of Tools

    The core architectural idea is a return to the Unix philosophy: everything is a file, everything is a pipe. During training, LLMs have already absorbed a vast amount of knowledge about shell scripting, standard input and output (stdin/stdout), and filesystem operations.

    Rather than designing elaborate proprietary Function Call interfaces for the agent, then, you can simply give it standard Bash execution and file read/write permissions.

    • Lower cognitive load: The model does not need to learn a new DSL (domain-specific language).
    • Seamless tool extension: Any command-line tool on Linux/Unix (grep, awk, curl) instantly becomes part of the agent’s capabilities.
    • Natural state management: Filesystems are persistent by nature. Agents can read and write files to maintain long-term memory and task state, with no separate database design required.

    2.2 Balancing the SDK and Context Engineering

    As the person responsible for the Agent SDK, the engineering challenge is to turn this minimalist philosophy into a practical system. The SDK must give the model enough context to work with without exposing sensitive details underneath, such as API keys or filesystem paths.

    In practice, execution environments are often built around pseudocode like this:

    1. def execute_tool_command(user_input):
    2. # 1. Security check: prevent injection and unauthorized access
    3. safe_cmd = security_filter(user_input)
    4. # 2. Environment preparation: inject necessary environment variables
    5. env_context = load_project_context()
    6. # 3. Execution and feedback
    7. result = run_in_sandbox(safe_cmd, env=env_context)
    8. # 4. Return structured output to the LLM
    9. return format_output_for_llm(result)

    This design keeps the agent’s core logic decoupled from any specific business domain, so developers can focus on prompt engineering and constraint design.

    3. Interaction and Ecosystem Governance: Making Agents Usable

    However capable an agent is, poor interaction will keep it from succeeding in enterprise environments. The original core author handled engineering, content, and user feedback together. This reflects a development model driven by two engines at once: technology and product.

    3.1 The Ask User Question Mechanism

    In an automated workflow, an agent will inevitably encounter ambiguous situations or missing information. If it always decides on its own, a single wrong guess can cascade into a chain of hallucinations. An active asking mechanism is therefore essential.

    • Design logic: When the model’s confidence falls below a threshold, or the input is detected as ambiguous, the agent does not guess. Instead, it generates a structured question card.
    • Implementation: An option list pops up in the CLI or IDE, letting the user click a choice or type in additional information.
    • Value: A one-way “command then execute” interaction becomes a two-way “collaborate then confirm” one, which significantly reduces serious errors.

    3.2 Rate Limiting and Resource Scheduling

    As the user base grows quickly, peak-hour rate limiting becomes necessary to keep the service stable. When explaining such policies, teams need to communicate the underlying logic of priority queues and quota management clearly:

    • Dynamic rate limiting: Concurrency is adjusted in real time based on current load, such as GPU memory usage and token throughput.
    • User tiering: QPS (queries per second) limits vary by subscription level, so core paying users get a reliable experience.
    • Graceful degradation: When resources are tight, the system falls back to lighter model responses or an asynchronous processing queue instead of rejecting requests outright.

    4. Cross-Platform Releases and Canary Rollout: The Windows Case

    In March 2026, Claude Code’s voice mode shipped on Windows, offering a clear example of a disciplined release process. For CLI tools, Windows has long been difficult. The differences between PowerShell and CMD, file path escaping, and the limits of terminal rendering all create problems.

    4.1 The Challenges

    • Shell heterogeneity: Bash and PowerShell differ greatly in syntax.
    • Signal handling differences: Windows support for Unix signals such as SIGINT is incomplete.
    • Encoding problems: Garbled text in multilingual environments remains a persistent issue.

    4.2 The Canary Release Strategy

    To keep releases stable, the team followed a strict staged rollout:

    1. Internal dogfooding: Everyone on the team used the build first to catch blocking bugs.
    2. Small-traffic beta: Access was opened to a specific 1%–5% segment of Windows users. The team watched crash logs and rollback rates closely.
    3. Full rollout: The update went to all users only after the error rate fell below the SLA threshold.

    This approach effectively kept platform-specific issues from affecting the core Mac/Linux user base.

    5. Knowledge Transfer: The Skills Architecture and “the Unknown”

    Around the same period, the team shared how it had built hundreds of internal Skills. In this context, a Skill is not a simple API call. It is a package of domain-specific knowledge or a complex operating procedure (SOP).

    5.1 The Core Principle: Tell the AI What It Doesn’t Know

    This is the essence of Skills design. LLMs are broadly knowledgeable, but they know nothing about private business logic, the directory structure of a particular codebase, or the in-house jargon of a given company.

    • Bad example: A Skill that explains how to write a Python loop.
    • Good practice: A Skill that explains how to call the company’s internal payment gateway SDK and handle its specific signature verification logic.

    5.2 How Skills Are Organized

    High-quality Skills usually follow the progressive disclosure principle:

    • Metadata layer: The system prompt contains only the Skill’s name and a one-line description. The model decides when to load it.
    • Instruction layer: Detailed Markdown documents cover API definitions, usage examples, and limitations.
    • Resource layer: Script templates, configuration schemas, and similar assets are provided through the filesystem for the agent to read at runtime.

    6. Rendering Evolution: From Markdown to Interactive HTML

    In May 2026, calls to replace Markdown with HTML in AI workflows attracted widespread attention. The shift marks a move in AI output from plain text information toward rich interactive components.

    6.1 Why Markdown Is Falling Short

    Markdown’s main strength is that it is simple and easy to read. However, it is fundamentally one-way and static:

    • It cannot express complex data relationships such as tree diagrams or flowcharts.
    • It has no interactivity, such as collapsible sections, filtering, or drag-to-reorder.
    • It offers limited style control, which makes UI-grade presentation hard to achieve.

    6.2 Advantages of HTML in Agent Output

    Using HTML (especially with Tailwind CSS or inline styles) as the output format for agents delivers a major experience upgrade:

    • Dynamic interaction: An agent can produce a table with a search box. Users can then filter results directly in the embedded browser inside the terminal or IDE instead of just reading text.
    • Complex layouts: CSS Grid or Flexbox gives precise control over panel layouts, achieving information density and readability far beyond Markdown.
    • Component reuse: Agents can draw on open-source component libraries to quickly build “one-off micro-tools.”

    6.3 Implementation Challenges and Pitfalls

    The benefits are clear, but introducing HTML in CLI environments poses challenges:

    • Terminal rendering limits: Traditional terminals cannot render HTML. The tool therefore needs a Web View or semi-graphical interface, such as a rendering layer built on Electron or Tauri.
    • Security sandboxing: HTML generated by the agent must be strictly constrained. Arbitrary JavaScript execution must be blocked to prevent XSS attacks or system escape.
    • Fallback strategy: For plain-text terminals, HTML should automatically degrade to semantic Markdown or plain text so that basic readability is preserved.

    7. Security and Compliance: The Policy Logic Behind Blocking Third-Party Platforms

    As AI coding tools spread, intellectual property and data security have moved into focus. The core member discussed why the company blocks access to certain third-party platforms, reflecting a broader compliance trend across the industry.

    • Data leak prevention: Stop enterprise source code from being uploaded to public or untrusted third-party services.
    • Supply chain attack prevention: Prevent agents from freely installing dependencies from untrusted sources.
    • Compliance strategy: Rather than cutting the network off entirely, teams typically use “network policies plus an allowlist.” This balances security against developer productivity.

    8. Summary and Outlook

    Thariq Shihipar’s career path spans academia, entrepreneurship, and industry. It began with academic research at the MIT Media Lab on topics such as smartphone interaction and physical form computing. It continued with founding a game company through YC, which raised $17 million in funding and operated for five years. It then led to Anthropic, where he drove the development of Claude Code and the Agent SDK. His trajectory shows how top technical talent can move across these worlds.

    What he leaves the industry is more than specific code. It is also a philosophy of building AI agents:

    1. Tools: Embrace Bash and the file system, and use the Unix philosophy to reduce complexity.
    2. Interaction: Add an active asking mechanism to balance automation with human intervention.
    3. Knowledge: Use Skills to pass on the domain knowledge models do not have.
    4. Presentation: Use HTML to move AI output from static text toward interactive interfaces.

    For developers and enterprises building the next generation of intelligent applications, the lesson is not to chase ever-larger parameter counts. Instead, they should learn from these engineering practices, proven in industrial settings, to build AI collaborators that are reliable, easy to use, and secure.