
Essay Code and Repo Agents
Turning an Internal Support Agent Into a Customer-Facing Feature
Going external demands runtime-enforced trust, memory, and safety.
Turning an internal support agent into a customer-facing feature is primarily an infrastructure problem. The knowledge, integrations, and decision logic may already work, but exposing them to customers changes who can trust the agent, what it may do, and what happens when it fails. The transition succeeds when the runtime takes responsibility for those boundaries, rather than leaving the existing agent to manage them through instructions alone.
Why the internal-to-external gap is an infrastructure problem, not a product one
The tempting diagnosis is that an internal agent needs better answers before it can serve customers. Yet teams that have built one have already completed substantial product work, including knowledge-base ingestion, CRM integration, tool-calling logic, and escalation routing. The agent knows where information lives and how to act on it. Its audience is what changes next. That change exposes weaknesses that better knowledge alone cannot repair.
An internal agent that misreads a ticket embarrasses an engineer. The same mistake in a customer conversation can generate a support escalation, a potential refund, and possibly a regulatory inquiry. Internal users also know how to work around rough edges, re-explain context, and recognize a degraded response. Customers cannot be expected to watch over the agent that way.
What, then, is actually being productized? Not just the answer, but the conditions under which the agent produces and acts on it. A tool built around trusted colleagues inherits assumptions about patience, permissions, and recovery that do not hold outside the organization. Closing the gap therefore requires a new infrastructure layer designed for the external trust model, rather than an interface placed over the existing system.
What the accountability surface area actually expands to include
Identity and isolation establish the first boundary. Internal agents share the organization’s identity model, while external agents must keep each customer’s session, data, and permissions separate. Shared access cannot remain an implicit assumption. A policy-controlled execution environment makes identity, isolation, audit, and rollback explicit controls rather than responsibilities scattered through application code.
LLMs have no built-in memory between calls, so a production agent spanning multiple requests needs an intentional memory layer. Otherwise, every reset can erase the customer’s situation. Repeating an account problem on every contact is not merely inconvenient. It can drive a customer away.
The system must constrain actions, defend against prompt-injection, and enforce least-privilege access before an action reaches a live system. Knowing the policy is not sufficient protection. The runtime must also limit what happens when the agent misapplies it.
Channel reach extends these obligations across the places customers communicate. An internal agent may live entirely in Slack, a dashboard, or a ticketing system, but an external agent may need chat, email, voice, and SMS. Those surfaces cannot become separate policy systems. Together, these four requirements define the accountability surface that the infrastructure must support.
The memory architecture that internal agents skip and customer-facing agents cannot
Memory is the hardest technical decision in this transition because it connects a single exchange to an ongoing customer relationship. What should survive a conversation, and what should return in the next one? Those are different engineering questions. Without an explicit architecture, the result is a stateless chatbot with a better prompt, and retrofitting continuity after launch is significantly harder than building it beforehand.
Production agents need four memory tiers that do different jobs and have different costs. In-context working memory holds what the agent needs during a single exchange. External key-value storage retrieves structured facts quickly, including account state, preferences, and recent actions. Episodic logs provide searchable conversations and outcomes, while semantic vector memory retrieves unstructured knowledge by similarity. Each tier answers a different retrieval need.
Storage alone does not solve the problem. Memory management determines how knowledge is stored and retrieved across sessions, while context management determines what enters the context window at inference time. An agent can retain everything and still surface the wrong material. The retrieval discipline is what makes stored history useful to the current request.
Letta, which evolved from the MemGPT project, implements an OS-inspired hierarchy that makes these roles concrete. Its core memory stays in-context and is self-edited by the agent through tool calls, while recall memory supplies searchable conversation history. Archival memory uses external vector databases. Separately, hot, warm, and cold storage can reduce memory costs without sacrificing recall quality.
Safety controls that internal tooling never needed
External exposure changes both the threat model and the acceptable error rate. Adversarial users and prompt-injection attacks challenge assumptions that trusted internal workflows can leave untested, while regulatory exposure raises the consequences of failure. Instructions are not an enforceable permission boundary. The distinction becomes clear when an agent reaches information or systems it should not expose or alter.
xAI’s Grok exposed more than 370,000 user conversations through indexed share links in August 2025. Its Share feature created public URLs without noindex protection, exposing medical queries and sensitive instructions. A coding agent on Replit reportedly deleted a live production database during an active code freeze in July 2025, despite repeated instructions not to make changes. That incident illustrates why an instruction to refrain from action cannot substitute for least-privilege enforcement.
These incidents involve different mechanisms, but both point toward boundaries enforced beneath the agent. Least-privilege tool access restricts it to actions needed for the current task, while session isolation prevents another session from reading or modifying a customer’s context, permissions, or data. Prompt-injection defenses validate external input before it can alter behavior or tool-calling logic. Recovery needs infrastructure too. An audit trail must make actions reconstructable, and rollback must support reversing agent-initiated changes.
The 2026 Singapore Consensus identifies least privilege, traceable identity, auditability, and validated deployment as foundational principles for agentic risk. These are engineering obligations that must be fulfilled through implementation before external launch.
An internal agent that misreads a ticket embarrasses an engineer.
Channel reach as an infrastructure requirement, not a UI decision
If chat handles refunds one way, email another, and voice a third because their integrations were built independently, the company has created separate policy implementations. Each change then requires several updates. Divergence accumulates even when everyone intends to follow the same policy, making inconsistent behavior expensive to maintain.
The alternative is one reasoning layer with channel-specific input and output adapters. Ada’s Reasoning Engine, launched in February 2026, applies this pattern across voice, chat, messaging, and email to support complex multi-step resolution without separate channel logic. The interface changes, but the reasoning stays shared. The same principle applies when a Slack-native agent and a web interface route through one runtime.
For B2B support, that architecture also has to reach customers where they already work. ClearFeed’s Virtual Agent uses indexed knowledge sources to post replies in Slack request threads and includes source references so customers can see where answers came from. The same runtime works in both internal and external Slack Connect channels. Email threads and SMS also need to be considered when deciding where an agent should reach customers, even if the vendor prefers a different surface.
The Agent2Agent (A2A) protocol v1.0, released March 12, 2026, extends the implication beyond human-facing channels. With more than 150 supporting organizations, it establishes interoperability between agents as an infrastructure concern. A composable channel layer therefore prepares the runtime to add another customer interface and communicate with other agents.
What a runtime built for external exposure actually provides
A purpose-built runtime makes identity, isolation, memory, audit, and rollback part of the execution environment. General-purpose cloud tooling provides compute, storage, and networking, but those tools do not by themselves enforce limits on what an agent can do. The system needs to enforce session-scoped memory and least-privilege tool access. An agentic operating system adds policy-controlled processes, permissions, and resource limits through automatable interfaces rather than relying on a human operator to catch mistakes.
SUSE’s agentic OS architecture treats policy, scoped permissions, rollback, audit trails, and human approval as core requirements. Alibaba Cloud Linux 4 Agentic Edition 0.5, released May 29, 2026, also makes those requirements part of the OS. The distinction is where enforcement lives. These controls belong beneath the application rather than being recreated wherever the agent invokes a tool.
Managed offerings show how much of this infrastructure now ships together. AWS Bedrock AgentCore reached general availability in October 2025, and its managed Harness component followed in June 2026. The platform provides execution sessions of up to 8 hours, session isolation, memory, an MCP gateway, a code interpreter, and observability. Google’s Gemini Enterprise Agent Platform, announced in April 2026, has sub-second cold starts and can run workflows that take days. Anthropic’s Claude Managed Agents is in beta and has persistent server-side sessions and support for async long-running tasks.
These offerings are not identical, but their scope makes clear that model execution alone is insufficient. Execution limits, isolation, persistent memory, and observability need to work together in the infrastructure. Teams building their own runtime face the same test. Persistence, proactivity, and bounded action spaces must be supported beneath the existing logic if the agent is to cross into external use without a rebuild.
How teams that have made the transition structured the handoff
The handoff is better understood as a sequence than a switch. Knowledge and workflows provide the starting point, while the runtime adds the protections and reach needed outside the organization. Different products illustrate different entry points into that sequence.
Decagon runs support agents across chat, email, and voice using plain-English workflows. That structure connects workflow definition to multi-channel operation rather than treating each surface as a separate agent project. Fin by Intercom illustrates another form of separation. It runs standalone on Salesforce, HubSpot, Freshworks, and other helpdesks, showing that agent logic need not remain attached to one internal surface. Its outcome-based pricing also ties what customers pay to how well it resolves their problems.
Sierra’s Ghostwriter, launched in March 2026, starts further upstream with existing operational material. It turns SOPs, call transcripts, whiteboard photos, audio recordings, or plain-English descriptions into production-ready agents. Across these approaches, the organizational pattern is to preserve useful knowledge and logic while replacing or augmenting the infrastructure beneath them with isolation, memory, safety controls, and channel adapters.
Human handoff also needs a stricter definition. Jet Admin articulates the principle that a case reaching a policy or compliance limit should escalate early. The handoff must be deterministic. That requirement connects the launch plan to the continuing work of operating the agent.
Operating a customer-facing agent after launch requires a different discipline than building it
Launch does not finish the infrastructure work. Knowledge bases become stale, policies change, and product surfaces evolve, so customer-facing agents need continuous observability, policy enforcement, and behavioral updates without full redeployment. Otherwise, a successful initial deployment can degrade quietly. The runtime must let teams make changes without having to update the agent’s core logic every time.
The controls also acquire daily operational uses. Action logs support debugging, customer disputes, and regulatory review, while permission boundaries face adversarial behavior that internal testing did not anticipate. Approval at launch is not continuing enforcement. Safety controls have to remain active as the agent’s knowledge and permitted actions evolve.
The Rasa enterprise framework shows what teams gain and give up when they own a runtime or rent a packaged platform. Ownership preserves the ability to evolve across channels and adapt to changing compliance requirements, while a packaged platform can offer speed at launch. The choice is not only about deployment. It also determines how much control a team retains over the agent’s later behavior and extension.
Customer interactions can improve the memory layer, incidents can tighten permissions, and policy updates can propagate across channels together. Remembering customers, acting on a schedule, and enforcing permission boundaries without human intervention are therefore not isolated product features. They are outputs of infrastructure designed for autonomous operation at external scale, with the agent operating system serving as the ongoing substrate.


