<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Anton Tolkachev</title>
    <description>The latest articles on DEV Community by Anton Tolkachev (@atolk).</description>
    <link>https://dev.to/atolk</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F902025%2F8e675dae-4981-48a5-82e9-cb18ab1ed348.jpg</url>
      <title>DEV Community: Anton Tolkachev</title>
      <link>https://dev.to/atolk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/atolk"/>
    <language>en</language>
    <item>
      <title>Replacing Codex’s built-in web search tool with an HTML-to-Markdown skill (Defuddle) — Rejected</title>
      <dc:creator>Anton Tolkachev</dc:creator>
      <pubDate>Mon, 30 Nov 2026 12:44:38 +0000</pubDate>
      <link>https://dev.to/atolk/replacing-codexs-built-in-web-search-tool-with-an-html-to-markdown-skill-defuddle-rejected-2f2b</link>
      <guid>https://dev.to/atolk/replacing-codexs-built-in-web-search-tool-with-an-html-to-markdown-skill-defuddle-rejected-2f2b</guid>
      <description>&lt;h2&gt;
  
  
  Idea
&lt;/h2&gt;

&lt;p&gt;Reduce context usage when a prompt links to documentation by removing HTML tags.&lt;/p&gt;

&lt;p&gt;The main assumption is that Codex’s built-in tool loads the page into context as-is, including the HTML tags.&lt;/p&gt;

&lt;h2&gt;
  
  
  Implementation
&lt;/h2&gt;

&lt;p&gt;Install &lt;a href="https://defuddle.md/" rel="noopener noreferrer"&gt;Defuddle&lt;/a&gt;, a great Node.js library that converts HTML to Markdown, globally and wrap it in a skill.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tests
&lt;/h2&gt;

&lt;p&gt;Run three sessions in an empty directory.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;without&lt;/code&gt; runs with the skill disabled using &lt;code&gt;codex -c 'skills.config=[{name="atolk-defuddle", enabled=false}]'&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;with&lt;/code&gt; runs with the skill enabled.&lt;/li&gt;
&lt;li&gt;The third session compares the results.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Test 1. With a task
&lt;/h3&gt;

&lt;p&gt;It took many rounds of editing the prompt and skill definition to get Codex to use only the information on that page and stop searching the web for more context to complete the task.&lt;/p&gt;

&lt;p&gt;First prompt&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Read &lt;a href="https://clickhouse.com/docs/guides/clickhouse/working-with-arrays" rel="noopener noreferrer"&gt;https://clickhouse.com/docs/guides/clickhouse/working-with-arrays&lt;/a&gt; and list all functions in a numbered table, providing a one-sentence description for each function. Use only the information available on this page. Make a single request with &lt;code&gt;web search tool&lt;/code&gt;. Do not use search or follow any links or any kind of curl request.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Without skill&lt;/th&gt;
&lt;th&gt;With skill&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Fetch method&lt;/td&gt;
&lt;td&gt;Web tool (&lt;code&gt;open&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Defuddle&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fetch tool time&lt;/td&gt;
&lt;td&gt;9.4 s&lt;/td&gt;
&lt;td&gt;1.7 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total session time&lt;/td&gt;
&lt;td&gt;30.1 s&lt;/td&gt;
&lt;td&gt;26.1 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total tokens&lt;/td&gt;
&lt;td&gt;44,631&lt;/td&gt;
&lt;td&gt;44,502&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cached input&lt;/td&gt;
&lt;td&gt;37,376&lt;/td&gt;
&lt;td&gt;26,368&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Uncached input&lt;/td&gt;
&lt;td&gt;6,397&lt;/td&gt;
&lt;td&gt;17,134&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Output tokens&lt;/td&gt;
&lt;td&gt;858&lt;/td&gt;
&lt;td&gt;1,000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Test 2. Loading the page into context
&lt;/h3&gt;

&lt;p&gt;Prompt&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Load the content of webpage: &lt;a href="https://clickhouse.com/docs/guides/clickhouse/working-with-arrays" rel="noopener noreferrer"&gt;https://clickhouse.com/docs/guides/clickhouse/working-with-arrays&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Without skill&lt;/th&gt;
&lt;th&gt;With skill&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Fetch tool time&lt;/td&gt;
&lt;td&gt;2.1 s&lt;/td&gt;
&lt;td&gt;1.2 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total session time&lt;/td&gt;
&lt;td&gt;8.9 s&lt;/td&gt;
&lt;td&gt;22.6 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total tokens&lt;/td&gt;
&lt;td&gt;43,725&lt;/td&gt;
&lt;td&gt;44,136&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cached input&lt;/td&gt;
&lt;td&gt;26,112&lt;/td&gt;
&lt;td&gt;19,328&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Uncached input&lt;/td&gt;
&lt;td&gt;17,466&lt;/td&gt;
&lt;td&gt;23,986&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Output tokens&lt;/td&gt;
&lt;td&gt;147&lt;/td&gt;
&lt;td&gt;822&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;I saw no clear benefit. The built-in web search tool appears to be well optimized and to leave HTML tags out of the context.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>tokenomics</category>
      <category>codex</category>
    </item>
    <item>
      <title>Documentation is development, too</title>
      <dc:creator>Anton Tolkachev</dc:creator>
      <pubDate>Tue, 10 Nov 2026 19:15:16 +0000</pubDate>
      <link>https://dev.to/atolk/documentation-is-development-too-3ic1</link>
      <guid>https://dev.to/atolk/documentation-is-development-too-3ic1</guid>
      <description>&lt;p&gt;While organizing project documentation, I found myself applying the same principles I use in code. I settled on four main files, each with a clear responsibility.&lt;/p&gt;

&lt;h1&gt;
  
  
  The principles
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;KISS:&lt;/strong&gt; simple language, concise explanations. Split documents only when useful.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;YAGNI:&lt;/strong&gt; document a real need, not a hypothetical one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Separation of Concerns:&lt;/strong&gt; give each document a distinct responsibility.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code for the Maintainer:&lt;/strong&gt; preserve assumptions, constraints, and reasons the next reader cannot easily reconstruct.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Optimize for Deletion:&lt;/strong&gt; separate temporary tasks and experiments from lasting knowledge.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DRY:&lt;/strong&gt; give each fact one primary home; link to it elsewhere.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Four main files
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;README.md&lt;/strong&gt; — an introduction for people: what the project, component, or package is for, what value it provides to its users, and where its responsibility ends.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ARCHITECTURE.md&lt;/strong&gt; — how it works internally: components, dependencies, execution flows, ownership, technical decisions, and constraints.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GLOSSARY.md&lt;/strong&gt; — terms, short definitions, accepted synonyms, and names to avoid. Thanks to Matt Pocock ❤️&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AGENTS.md&lt;/strong&gt; — agent instructions and navigation: which documents to read for which tasks.&lt;/p&gt;

&lt;p&gt;These are the main responsibilities, not a requirement to create four files in every directory or a limit on useful documentation.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Now to resist adding a fifth main file explaining the first four. 😄&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  A shared repository for the whole system
&lt;/h1&gt;

&lt;p&gt;A shared repository, named after the organization, holds the context common to every component: the product's purpose, how its components fit together, and shared terminology. That context applies whether I am working on a server, a client, or an API specification.&lt;/p&gt;

&lt;p&gt;Local glossaries link to the shared glossary through HTTPS URLs on GitHub, pointing to the main branch. Following those links gives the reader the current shared definitions. Each local glossary adds only repository-specific terms; local architecture describes that repository's internals and decisions.&lt;/p&gt;

&lt;p&gt;The same scoping rule continues down the hierarchy. Documentation inside a component or package covers that component or package. Shared knowledge stays at the level that owns it.&lt;/p&gt;

&lt;p&gt;AGENTS.md provides the navigation, including references to shared context, so the agent knows what to read for its task.&lt;/p&gt;

&lt;p&gt;I captured this approach in a small global skill, &lt;code&gt;project-docs&lt;/code&gt;, to use across my projects.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>documentation</category>
      <category>architecture</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
