<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/rss-styles.xsl" type="text/xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>David Hoang — Writing — agents</title><description>Writing tagged “agents”. For notes, use /rss/notes.xml.</description><link>https://www.davidhoang.com</link><language>en-us</language><lastBuildDate>Sat, 14 Nov 2026 15:30:09 GMT</lastBuildDate><atom:link href="https://www.davidhoang.com/rss/tag/agents.xml" rel="self" type="application/rss+xml"/><item><title>Optimizing a Personal Website for AI Agents</title><link>https://www.davidhoang.com/writing/optimizing-for-agents</link><guid isPermaLink="true">https://www.davidhoang.com/writing/optimizing-for-agents/</guid><description>Treating agent experience as a first-class design surface — what I found, what I changed, and what I deliberately chose not to do.</description><pubDate>Tue, 11 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;For most of the web&apos;s life, the question behind &quot;who is my site for?&quot; had one answer: people, and the search crawlers that help people find it. That&apos;s changing. A growing share of visits now come from AI agents — answer engines summarizing a page, assistants fetching a bio, retrieval bots gathering context for a model. They don&apos;t scroll, they don&apos;t hover, and they don&apos;t care about a hero animation. They want structure, stable endpoints, and clear permissions.&lt;/p&gt;
&lt;p&gt;I recently went through davidhoang.com and treated &quot;agent experience&quot; as a first-class design surface, the same way I&apos;d treat mobile or accessibility. This post is a tour of what I found, what I changed, and — just as importantly — what I deliberately chose &lt;em&gt;not&lt;/em&gt; to do.&lt;/p&gt;
&lt;h2&gt;The mental model: discovery, comprehension, action&lt;/h2&gt;
&lt;p&gt;Before touching any code, it helped to split &quot;agent experience&quot; into three needs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Discovery&lt;/strong&gt; — can an agent find what exists on the site without scraping every page?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Comprehension&lt;/strong&gt; — once it has a page, can it extract meaning reliably instead of guessing from markup?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Action&lt;/strong&gt; — if it wants to &lt;em&gt;do&lt;/em&gt; something (search, subscribe), can it do so safely and predictably?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Almost every improvement below maps to one of those three. The site already had a strong classic-web foundation — a permissive &lt;code&gt;robots.txt&lt;/code&gt;, an auto-generated sitemap, full-text RSS, semantic &lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt; markup, canonical URLs, and some JSON-LD. That&apos;s great for search engines and RSS readers. It&apos;s only &lt;em&gt;implicitly&lt;/em&gt; good for agents. The goal was to make the implicit explicit.&lt;/p&gt;
&lt;h2&gt;Discovery&lt;/h2&gt;
&lt;h3&gt;A generated &lt;code&gt;llms.txt&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;llms.txt&lt;/code&gt; is an emerging convention: a plain-text, Markdown-flavored manifest at &lt;code&gt;/llms.txt&lt;/code&gt; that tells language models what a site is about and where its important content lives. Think of it as a curated &quot;start here&quot; rather than a full crawl.&lt;/p&gt;
&lt;p&gt;The key decision was to &lt;strong&gt;generate it from the site&apos;s own content collections and navigation data&lt;/strong&gt; rather than hand-maintaining a file that silently rots. It lists the site identity, primary pages, published writing and notes, the RSS feeds, the sitemap, and the search index — and it excludes drafts automatically, because it&apos;s built from the same source of truth the rest of the site uses.&lt;/p&gt;
&lt;p&gt;A caveat worth stating plainly: &lt;code&gt;llms.txt&lt;/code&gt; is a &lt;em&gt;convention&lt;/em&gt;, not a guaranteed ranking or ingestion mechanism. I treat it as low-cost, high-clarity signaling, not a magic funnel.&lt;/p&gt;
&lt;h3&gt;A machine-readable discovery contract&lt;/h3&gt;
&lt;p&gt;Separately from &lt;code&gt;llms.txt&lt;/code&gt;, I published a small versioned document at &lt;code&gt;/.well-known/agent.json&lt;/code&gt;. Where &lt;code&gt;llms.txt&lt;/code&gt; is prose for a model to read, this is structured JSON for a program to parse. It declares:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;site identity and canonical origin&lt;/li&gt;
&lt;li&gt;the discovery resources that already exist (sitemap, RSS feeds, search index, robots)&lt;/li&gt;
&lt;li&gt;the human-facing actions available (subscribe, read, etc.)&lt;/li&gt;
&lt;li&gt;attribution expectations&lt;/li&gt;
&lt;li&gt;an explicit version number&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The rule I held myself to: &lt;strong&gt;never advertise an endpoint that doesn&apos;t exist.&lt;/strong&gt; A discovery contract that lies is worse than none at all, so it only points at things that are actually live.&lt;/p&gt;
&lt;h3&gt;A deliberate crawler policy&lt;/h3&gt;
&lt;p&gt;The site&apos;s existing stance was already permissive — allow public content, disallow &lt;code&gt;/api/&lt;/code&gt;. Rather than change behavior, I made the stance &lt;em&gt;explicit and documented&lt;/em&gt;. The &lt;code&gt;robots.txt&lt;/code&gt; now spells out how it treats search, retrieval, and training crawlers, and there&apos;s a short policy doc explaining the retrieval-vs-training distinction and how to update the bot list over time.&lt;/p&gt;
&lt;p&gt;The honest limitation here: &lt;code&gt;robots.txt&lt;/code&gt; cannot actually distinguish &quot;retrieve to answer a question&quot; from &quot;retrieve to train a model.&quot; Pretending otherwise would be theater. So the policy documents intent and known gaps instead of implying control it doesn&apos;t have.&lt;/p&gt;
&lt;h2&gt;Comprehension&lt;/h2&gt;
&lt;h3&gt;Richer structured data&lt;/h3&gt;
&lt;p&gt;I strengthened the Schema.org JSON-LD across the site: writing posts are now &lt;code&gt;BlogPosting&lt;/code&gt;, notes are modeled as &lt;code&gt;CreativeWork&lt;/code&gt; (they&apos;re garden notes, not articles, and it felt wrong to overclaim), and both link back to a stable &lt;code&gt;Person&lt;/code&gt;/&lt;code&gt;WebSite&lt;/code&gt; graph with consistent entity IDs. Publication and modification dates, language, and keywords are included where the underlying data actually supports them — and &lt;em&gt;only&lt;/em&gt; where it does. I didn&apos;t want to invent a &quot;last modified&quot; date just to look fresh.&lt;/p&gt;
&lt;h3&gt;An enriched search index — without breaking anything&lt;/h3&gt;
&lt;p&gt;The site already exposed &lt;code&gt;/search-index.json&lt;/code&gt; to power the ⌘K palette. I enriched each entry with canonical URLs, excerpts, dates, tags, and note stages, and made sure the index covers the discoverable static pages rather than silently omitting destinations that are in the sitemap.&lt;/p&gt;
&lt;p&gt;This one had a subtle trap. The obvious move was to wrap the array in a versioned envelope (&lt;code&gt;{ schemaVersion, items }&lt;/code&gt;). But that endpoint is &lt;em&gt;already public&lt;/em&gt;, and an unknown consumer could be relying on the bare-array shape. So instead of a breaking change, the response stays a bare array and the schema version is advertised through an &lt;code&gt;X-Search-Index-Schema-Version&lt;/code&gt; header. The command palette tolerates both shapes. Backward compatibility for an endpoint you don&apos;t control the consumers of is worth a little inelegance.&lt;/p&gt;
&lt;h3&gt;Clean Markdown representations&lt;/h3&gt;
&lt;p&gt;Rendered HTML is noisy for a machine: navigation, theme toggles, shader backgrounds, and view-transition wrappers all surround a few hundred words of actual prose. So every published writing post and note now has a Markdown twin at &lt;code&gt;/{slug}.md&lt;/code&gt;, serving the original body with its front matter and a canonical link back to the HTML page. Drafts and internal-only fields never leak. HTML pages advertise the Markdown alternative via &lt;code&gt;&amp;lt;link rel=&quot;alternate&quot; type=&quot;text/markdown&quot;&amp;gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The nice property here is that an agent can grab the &lt;em&gt;content&lt;/em&gt; without parsing the &lt;em&gt;chrome&lt;/em&gt;.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;h3&gt;Experimental WebMCP tools&lt;/h3&gt;
&lt;p&gt;WebMCP is a much newer, browser-native idea: a page can register callable &quot;tools&quot; through &lt;code&gt;navigator.modelContext&lt;/code&gt;, so an in-browser agent can invoke a real function instead of simulating clicks. It&apos;s early — an evolving spec with preview-level browser support — so I treated it as strictly progressive enhancement:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;feature-detected&lt;/strong&gt;, so it&apos;s a complete no-op in browsers that don&apos;t expose the API&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;no mandatory dependency or polyfill&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;tools are &lt;strong&gt;registered and cleaned up across view transitions&lt;/strong&gt; so they don&apos;t leak&lt;/li&gt;
&lt;li&gt;read-only tools (site search, indexed navigation) are clearly separated from anything with side effects&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The most important guardrail: the newsletter tool &lt;strong&gt;fills and focuses the form but never submits it&lt;/strong&gt;. An agent can help a person get to the point of subscribing; it cannot subscribe them. Side effects stay behind an explicit human action.&lt;/p&gt;
&lt;h3&gt;Measuring whether any of this matters&lt;/h3&gt;
&lt;p&gt;Finally, instrumentation — because optimizing for agents without measuring outcomes is just vibes. I added privacy-conscious analytics that classify known answer-engine referrals and record whether search and newsletter interactions succeed. Crucially, it never sends query text, email addresses, page content, or personal data, and query strings are stripped from analytics payloads.&lt;/p&gt;
&lt;p&gt;There&apos;s a limitation I wrote down rather than hid: browser analytics fundamentally can&apos;t see server-side crawler traffic. Bots don&apos;t run your client JS. So the measurement doc is explicit that crawler and citation volume has to be read from server-side logs (Vercel&apos;s firewall/analytics), not the browser layer. Measuring the wrong thing confidently is worse than admitting the gap.&lt;/p&gt;
&lt;h2&gt;What I chose &lt;em&gt;not&lt;/em&gt; to do&lt;/h2&gt;
&lt;p&gt;A few deliberate non-goals, because scope discipline is part of the design:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;No full MCP server.&lt;/strong&gt; This is an editorial site, not an app with an API surface worth operating and securing. A lightweight machine-readable layer beats a server I&apos;d have to babysit.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;No unauthenticated content API that could burn quota.&lt;/strong&gt; The existing static JSON and RSS cover the read cases without opening a new abuse vector.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;No pretending emerging standards are settled.&lt;/strong&gt; &lt;code&gt;llms.txt&lt;/code&gt; and WebMCP are both promising and both early. I shipped them as clearly-scoped, low-risk enhancements, not load-bearing infrastructure.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Takeaways&lt;/h2&gt;
&lt;p&gt;If you want to make your own site friendlier to agents, a reasonable order of operations:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Publish a generated &lt;code&gt;llms.txt&lt;/code&gt; and a &lt;code&gt;/.well-known/agent.json&lt;/code&gt; contract — cheap, honest signaling.&lt;/li&gt;
&lt;li&gt;Enrich the structured data you already have, without overclaiming facts you don&apos;t have.&lt;/li&gt;
&lt;li&gt;Offer clean content representations (Markdown or documented JSON) so agents skip the chrome.&lt;/li&gt;
&lt;li&gt;Make your crawler policy explicit, including its limitations.&lt;/li&gt;
&lt;li&gt;Only then experiment with interactive standards like WebMCP — feature-detected and side-effect-safe.&lt;/li&gt;
&lt;li&gt;Measure outcomes, and be honest about what your measurement can and can&apos;t see.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The throughline across all of it: &lt;strong&gt;be explicit, be honest about limits, and never let an agent take an action a human didn&apos;t ask for.&lt;/strong&gt; Good agent experience turns out to look a lot like good API design and good accessibility — clarity, structure, and respect for the consumer on the other end.&lt;/p&gt;
</content:encoded><category>writing</category><category>ai</category><category>agents</category><category>web</category></item><item><title>The formlessness of AI agents</title><link>https://www.davidhoang.com/writing/the-formlessness-of-ai-agents</link><guid isPermaLink="true">https://www.davidhoang.com/writing/the-formlessness-of-ai-agents/</guid><description>Finding the right vessel for new capabilities</description><pubDate>Sun, 12 Apr 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;In &lt;a href=&quot;https://marvel.fandom.com/wiki/Avengers_Vol_1_54&quot;&gt;The Avengers #54&lt;/a&gt;, a mysterious villain called the Crimson Cowl is orchestrating attacks against the team. It&apos;s not until the last page that the cowl drops and we see what&apos;s underneath: a robot. The next issue reveals him fully—Ultron-5, a living automation built by Hank Pym using his own brain patterns.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.davidhoang.com/images/blog/2026/img-2026-04-12-formlessness-ultron.webp&quot; alt=&quot;Ultron in Marvel comics&quot; /&gt;&lt;/p&gt;
&lt;p&gt;By the time anyone sees Ultron, he&apos;s already on version five. He was created, gained sentience, rebelled against his creator, hypnotized Pym into forgetting he ever existed, and then quietly iterated through four bodies in secret as a self-upgrade. Each time Ultron is defeated, he rebuilds to a better enclosure for the same intelligence. Like a hermit crab moving through shells, Ultron wasn&apos;t becoming something new but finding the optimal fit.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.davidhoang.com/images/blog/2026/img-2026-04-12-formlessness-ultron-variants.webp&quot; alt=&quot;Ultron rebuilds through successive bodies in Marvel comics&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Our AI tools are having their Ultron moment. In a few years of the scaling era of AI, capabilities have evolved rapidly and are compounding. They are breaking out of the chat boxes with tiny context windows and are now taking actions, running in the background, and using similar tools as us. It&apos;s not AGI, but it turns out serendipitous cron jobs invoke a sentient connection to many human beings.&lt;/p&gt;
&lt;p&gt;The question in the Ultron moment is, &quot;what is the right body for this intelligence?&quot;&lt;/p&gt;
&lt;h2&gt;New capabilities begin in borrowed form&lt;/h2&gt;
&lt;p&gt;Steve Jobs made this observation at the 1983 International Design Conference in Aspen. Early television shows were like radio shows with a camera pointed at them. Because the capability is new, people used existing patterns of what they already knew—a host behind a desk, reading to an audience, and filmed it. The breakthrough was you could visually tell a story of War of the Worlds instead of reading it to them.&lt;/p&gt;
&lt;p&gt;Early websites were digital brochures and mobile apps were shrunken desktop software. Early iPhone prototypes ran a cut‑down version of OS X&apos;s core, adapted to fit a phone. AI agents talking through chat interfaces are like radio shows with a camera pointed at them. Chat is frictionless not because it&apos;s the right interface but because it&apos;s a familiar one; a turn-by-turn conversational text box.&lt;/p&gt;
&lt;p&gt;In Silicon Valley, we&apos;re obsessed with pushing the edges of technology and need to be reminded of global behaviors. I recently ran rapid research comparing site-building tools for SMBs (yes I do this for fun). Compared to classic site builders such as Framer, Webflow, and Squarespace, people preferred using Lovable or Replit to build a website because of the conversational interface.&lt;/p&gt;
&lt;h2&gt;Giving agents a body&lt;/h2&gt;
&lt;p&gt;OpenClaw is an open‑source framework for controlling your computer through natural‑language agents. Its primary interaction is a chat agent: you text it on messaging platforms such as Telegram or WhatsApp. It runs tasks on your computer, manages your calendar, clears your inbox. That wasn&apos;t enough for some people.&lt;/p&gt;
&lt;p&gt;Tom saw a fundamental problem: how do you get OpenClaw to control actual motors in real time? His answer was ClawBody, a software bridge that connects OpenClaw to physical hardware so you can train agents in simulation, then deploy them to real robots. Chris asked a different question: what if robots could actually understand spatial depth? He integrated Intel RealSense cameras with OpenClaw and a vision‑language model so robots can track a person through space, maintain distance, and navigate obstacles, all driven by natural language.&lt;/p&gt;
&lt;p&gt;&amp;lt;div class=&quot;writing-inline-video-wrap&quot;&amp;gt;
&amp;lt;video class=&quot;writing-inline-video&quot; autoplay muted loop playsinline controls preload=&quot;metadata&quot; poster=&quot;https://www.davidhoang.com/images/blog/2026/img-2026-04-12-formlessness-clawbody-still.webp&quot; width=&quot;554&quot; height=&quot;312&quot;&amp;gt;&amp;lt;source src=&quot;https://www.davidhoang.com/images/blog/2026/img-2026-04-12-formlessness-clawbody.mp4&quot; type=&quot;video/mp4&quot; /&amp;gt;&amp;lt;/video&amp;gt;
&amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;p&gt;Then there&apos;s ClawStage, a device built by HooRii Technology that turns OpenClaw into a companion robot — a Raspberry Pi 5 with a transparent display that creates a hologram-like effect for an animated AI persona, with a camera and microphone array that let it perceive its surroundings and respond to voice directionally. Hackster users can design custom personalities for it, download characters from a shared hub, and make the intelligence feel like someone.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.davidhoang.com/images/blog/2026/img-2026-04-12-formlessness-vignette.webp&quot; alt=&quot;A vignette of different shells and encapsulations for AI; some more functional than others.&quot; /&gt;&lt;/p&gt;
&lt;p&gt;A project called Dimensional integrated OpenClaw with the Unitree G1 humanoid robot and gave it Spatial Agent Memory. The agent understands physical space and temporality, knows the layout of rooms, the location of objects, where people tend to be.&lt;/p&gt;
&lt;p&gt;Many of these projects started as DIY projects because they wanted to create an enclosure for their sentient tools; like a hermit crab between shells.&lt;/p&gt;
&lt;p&gt;We know how to relate to things that have form. A hammer looks like something you swing and a doorknob affords turning. When something is formless, such as an intelligence in machine-form that sees the world in lines of code, we don&apos;t have the same intuitive relationship with it. Human and agentic behaviors are not the same. It&apos;s a miss for us to replicate ourselves in the form of a new intelligence.&lt;/p&gt;
&lt;p&gt;This is why we must explore the right enclosures and interfaces for agents. We&apos;ll soon realize all these CLI tools are not primarily for the humans—they&apos;re for people giving the formless thing a shape so they can understand what it does.&lt;/p&gt;
&lt;p&gt;The shell keeps changing.&lt;/p&gt;
&lt;h2&gt;The trust tension&lt;/h2&gt;
&lt;p&gt;Humans need visibility of agents to trust them; to understand what they are doing and where the boundaries are. Formlessness creates anxiety for humans. If one can&apos;t see the agent, how is it held accountable?&lt;/p&gt;
&lt;p&gt;The current challenge is the interfaces are designed in the borrowed form of chat, sidebar, and copilots. We&apos;re in the uncanny valley of agent design. The form is close enough to be usable but wrong enough to be limiting. A chat-based agent can answer your question but can&apos;t show you it&apos;s already working on three other things in parallel. A copilot can suggest edits but can&apos;t demonstrate that it understands the broader context of your project.&lt;/p&gt;
&lt;p&gt;The interface doesn&apos;t match the capability. As a result, humans and agents are working on the same interfaces and it&apos;s not visibly clear who is doing what.&lt;/p&gt;
&lt;p&gt;This is the enclosure problem. Not just how agents look, but what kind of container can hold something that is, by nature, without container. That&apos;s a harder design question than it sounds. Many of us haven&apos;t designed for things that can think, plan, reason, and use the same tools we do.&lt;/p&gt;
&lt;p&gt;And if you want to go somewhere uncomfortable: we haven&apos;t solved this problem for ourselves either. The relationship between consciousness and body, between the mind and the form it inhabits, is the oldest unsolved question in philosophy. We&apos;re spiritual beings who never fully made sense of our own enclosures. Now we&apos;re being asked to design one for something else.&lt;/p&gt;
&lt;h2&gt;The form is still being found&lt;/h2&gt;
&lt;p&gt;We&apos;re doing what humans always do when faced with something formless: we reach for the containers we already have. We put radio on television. We put the legal pad in the Notes app. We put intelligence in a chat box.&lt;/p&gt;
&lt;p&gt;We&apos;re the ones designing the body for the new medium. That reframes every choice. A chat interface is a claim about what kind of enclosure intelligence should have. A sidebar copilot is a claim. A robotic arm is a claim. Each enclosure shapes what the intelligence can do, how people relate to it, and what it becomes. The form isn&apos;t neutral.&lt;/p&gt;
&lt;p&gt;It&apos;s tempting to settle with the borrowed form, but that&apos;s not what we do as designers. Understanding what form formless experiences need is what we should explore. The fact that we haven&apos;t found the native form of agents yet means the field is genuinely open. This is the equivalent of being a filmmaker in 1910, a web designer in 1995, a mobile designer in 2008. The early chaotic moments that feel disorienting are what we live for as makers.&lt;/p&gt;
&lt;p&gt;We are at the beginning of thinking about different enclosures for agents. The shell keeps changing—and that&apos;s the work.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;em&gt;Originally posted on &lt;a href=&quot;https://www.proofofconcept.pub/p/the-formlessness-of-ai-agents&quot;&gt;Proof of Concept&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
</content:encoded><category>writing</category><category>ai</category><category>software</category><category>agents</category></item></channel></rss>