---
title: "Markdown in /src"
description: "As agentic coding spreads, Markdown is effectively becoming source code rather than documentation, so it should be checked in under `/src/md` next to the code it produces."
url: "https://swe.quest/articles/markdown-in-src-0a09ba5d2d6249d0"
canonical: "https://htmx.org/essays/markdown-in-src/"
source: "htmx essays"
published: "2026-09-21"
difficulty: "easy"
kind: "Opinion"
reading_minutes: 6
tags: ["ai-coding","documentation","developer-productivity"]
---

# Markdown in /src

A post on [htmx essays](https://swe.quest/sources/htmx.md), published 2026-09-21, 6 min read, Opinion. Original: [https://htmx.org/essays/markdown-in-src/](https://htmx.org/essays/markdown-in-src/)

## Summary

As agentic coding spreads, Markdown is effectively becoming source code rather than documentation, so it should be checked in under \`/src/md\` next to the code it produces. Code and tests would then be derived from curated, mostly human-authored Markdown instead of ephemeral prompt sessions, keeping intent local rather than scattered across wikis, tickets and Slack. The proposed layout includes a README index for agents, TODO and OVERVIEW files, and optional features, data, api and infrastructure subdirectories. Keeping that Markdown in sync with hand-edited generated code becomes a new developer skill.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Documentation](https://swe.quest/tags/documentation.md) (Engineering practices)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)

## Prerequisites

- agentic coding workflows ([easy posts on AI agents](https://swe.quest/tags/ai-agents.md?difficulty=easy))

## Keywords

Markdown, AGENTS.md, htmx

## Related posts

- [Making AI Write Android Code Our Way: A Practical Guide to Agent Skills](https://swe.quest/articles/making-ai-write-android-code-our-way-a-practical-guide-to-agent-skills-60cf67851cb44c95.md): Medium Engineering · 2026-03-17 · Medium · 9 min read · AI for coding, Mobile, AI agents, Java & JVM, Developer productivity
  Medium's small Android team encodes its Kotlin/Compose conventions into an AGENTS.md project context file plus 13 Markdown "skills" in .agents/skills/ that act as step-by-step runbooks for Cursor's agent.
- [Making Documentation Simpler and Practical: Our Docs-as-Code Journey](https://swe.quest/articles/making-documentation-simpler-and-practical-our-docs-as-code-journey-7a03c98db56d20b3.md): Squarespace Engineering · 2025-10-10 · Medium · 6 min read · Documentation, Developer productivity, CI/CD
  Squarespace's Domains team keeps Markdown docs, RFCs and Mermaid diagrams in the same Git repos as their code, reviews them in the same GitHub pull requests, and publishes them to Backstage TechDocs through CI/CD on every merge to master.
- [Four minutes after midnight, Codex said the page was live](https://swe.quest/articles/four-minutes-after-midnight-codex-said-the-page-was-live-25ae19da11733480.md): Render · 2026-08-16 · Medium · 9 min read · AI for coding, AI agents, Code review, Developer productivity
  OpenAI's Dominik Kundel argues that with agentic delegation, code is no longer the bottleneck.
- [Agents, Randomness, and Receipts: Notes from trivago's QA Meetup](https://swe.quest/articles/agents-randomness-and-receipts-notes-from-trivago-s-qa-meetup-6bb8ef93642d84a1.md): trivago tech · 2026-08-12 · Easy · 5 min read · Testing, AI agents, AI for coding, Developer productivity
  Recap of three QA meetup talks on verifying testing and delivery.
- [Harness engineering: leveraging Codex in an agent-first world](https://swe.quest/articles/harness-engineering-leveraging-codex-in-an-agent-first-world-2c11ac81997bc6aa.md): OpenAI · 2026-02-11 · Medium · 14 min read · AI for coding, AI agents, Developer productivity, Static analysis, Observability
  A small OpenAI team built and shipped an internal product of roughly a million lines over five months with zero manually written code, merging about 1,500 Codex-authored PRs at around 3.5 PRs per engineer per day, an estimated 10x faster than writing it by hand.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
