# How to Build an Internal AI Agent That Evolves Itself
<!--
ref: @content/youtube/yc-root-access/how-to-build-an-internal-ai-agent-that-evolves-itself
tags: [internal AI agents, self-extending tools, agent memory, Claude Code harness, startup operations]
version: 2
updated_at: 2026-11-24T05:06:09.747Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=DGD9b8K42lk)**

# How to Build an Internal AI Agent That Evolves Itself

*Synthesized from Ayush, founder of Answer This, on YC Root Access, 2026-05-19.*

Ayush, who introduces himself as founder of Answer This (AI agents for evidence-based scientific workflows), presents alone; he mentions colleagues by name in passing but does not present with them.

## Core Thesis
Ayush argues that a two-founder company can run on an internal AI agent that extends its own toolset, and that such an agent needs three kinds of memory: factual, behavioral and procedural. He says the company reports over $2 million in ARR with two full-time founders and two or three contractors.

## Key Insights
- **Workload.** The agent processes more than 100 emails a day, has closed over 400 customer support tickets, updates the CRM after meetings, collects user feedback across channels, and answers business questions such as lead status or open customer issues.
- **Architecture.** A Claude Code CLI is wrapped in Python. New messages from Slack, email and other channels enter a task queue, and the agent works through them iteratively.
- **Business logic.** The agent gets a read-only copy of the database and codebase, refreshed by a cron job on each release, so it can answer questions such as how subscription logic works.
- **Self-extension.** Tools such as Intercom, Fathom and Stripe are exposed as CLIs, and a general coding agent is also a CLI that can edit the agent's own code. When a repeated task is not yet possible, the agent builds a permanent tool for it; he says it grew to more than 45 CLIs it wrote itself.
- **Example.** Asked to watch landing pages so they stay up before ad campaigns, the agent created a cron job for that check.
- **Editable instructions.** An instructions.md file loads on every turn and the agent can edit it. A non-technical co-founder corrected a class of support mistakes by messaging the agent in Slack; the agent updated its instructions and tool links, and the mistakes stopped.
- **Three memories.** Factual memory is the code and database; behavioral memory is the instructions file fed by feedback; procedural memory is the set of tools the agent creates for recurring tasks.

## Actionable Takeaways
1. Wrap Claude Code CLI in a thin Python harness and feed Slack, email and other channels into a task queue.
2. Give the agent a read-only copy of the database and codebase, refreshed by cron on each release.
3. Expose your SaaS tools as CLIs and include a coding agent CLI so the agent can author new tools for repeated tasks.
4. Keep an instructions file the agent loads on every turn and can edit, so non-engineers can correct behavior through chat.
5. Split agent memory into factual, behavioral and procedural layers when designing it.

## Notable Quotes
> "it asks a coding sub-agent to build a tool for it" — Ayush (founder of Answer This)

---

*Related: `@content/youtube/ai-jason/how-to-build-proactive-agents-self-improving-company-fully-explained` · `@content/youtube/every-inc/microsofts-vision-for-an-internet-made-for-agents-with-cto-kevin-scott-best-of-the-pod` · `@content/youtube/langchain/build-a-social-media-agent-with-managed-deep-agents` · `@content/youtube/cole-medin/let-your-ai-agent-do-its-own-harness-engineering-heres-how` · `@content/youtube/nate-herk/every-grok-bot-concept-explained-for-normal-people`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*