BeFreed
    Categories>Technology>给 AI 喂 HTML 的新逻辑:为何 Claude 弃用 Markdown?

    给 AI 喂 HTML 的新逻辑:为何 Claude 弃用 Markdown?

    16 min
    |
    |
    May 12, 2026
    TechnologyProductivity

    面对长文本带来的模型性能下降,Anthropic 发现 HTML 的语义边界比 Markdown 更能精准引导 AI。通过将核心文档回归代码仓库并利用自动化架构图,开发者可以构建更高效的上下文栈,让 AI 助手不再因信息过载而变笨。

    给 AI 喂 HTML 的新逻辑:为何 Claude 弃用 Markdown?

    Best quote from 给 AI 喂 HTML 的新逻辑:为何 Claude 弃用 Markdown?

    “

    好的文档应该像指令(Directives),而不是描述。能让 AI 理解的代码和文档,通常对人类来说也是最友好的,因为好的逻辑都追求简洁、明确和高信号强度。

    ”
    J

    Generated by Jiaying

    Input question

    Explain Anthropic's reasoning for preferring HTML over Markdown for LLM contexts (e.g., prompt engineering and context caching). Discuss best practices for internal engineering documentation, specifically comparing repo-based documentation (committing docs alongside code) versus Notion, addressing the user's concerns about Notion's MCP API limitations. Provide a strategy for maintaining a central architectural overview that combines auto-generation from code/metadata with visual diagrams to ensure the AI doesn't have to re-scan the entire codebase for every query.

    Host voices
    Lenaplay
    Lenaplay
    Knowledge sources
    Using Claude Code: The Unreasonable Effectiveness of HTML
    link
    https://simonwillison.net/2026/May/8/unreasonable-effectiveness-of-html/
    Less Documentation, More Signal | Alex Rezvov
    link
    https://blog.rezvov.com/less-documentation-more-signal
    How to Build an LLM Context Stack: A Practical Playbook for Developers (2026)
    link
    https://hivetrail.com/blog/how-to-build-llm-context-stack/
    jgravelle/notion-code-mirror
    link
    https://github.com/jgravelle/notion-code-mirror
    LLM Context Window Optimization for Developers: Stop Dumping Code, Start Sending Signal.
    link
    https://hivetrail.com/blog/pass-large-codebase-to-llm
    Contextual Retrieval in AI Systems \ Anthropic
    link
    https://anthropic.com/engineering/contextual-retrieval

    Frequently Asked Questions

    虽然 Markdown 简洁高效,但 HTML 在 AI 交互中具有更强的语义表达能力和结构化优势。HTML 可以携带复杂的元数据、SVG 矢量图、交互式组件以及页面内导航。这使得 AI 不仅能输出文字,还能直接生成带交互功能的 3D 实景地图式的文档,其信息密度和展示维度远超传统的黑白 Markdown 文本。

    这主要源于“注意力竞争”和“迷失在中间”(Lost in the Middle)现象。AI 的注意力机制是有限的,当文档中充斥着大量“长得像信号的噪声”时,核心逻辑会被淹没。研究表明,AI 对开头和结尾的信息记忆最准,如果关键约束被埋在几十页文档中间,AI 很容易产生幻觉或忽略重要指令。

    上下文栈是一种精准投喂信息的策略,而非将所有文件丢给 AI。它通常分为四层:任务定义、项目背景(技术栈)、任务相关数据(如特定的代码段或接口定义)以及输出格式要求。通过只提供与当前任务直接相关的几千个 token,而不是整个代码库,可以显著提升 AI 的任务成功率并降低 token 消耗。

    上下文腐烂是指在长对话中,过时的报错信息、废话和弃用的逻辑堆积,干扰 AI 的判断。解决办法是采用“HANDOFF.md”模式:在一个任务阶段结束时,让 AI 总结当前进度、核心决策和剩余问题,然后开启一个全新的会话窗口,只将这份精简的总结贴入,从而实现“清空缓存”并保留精髓的效果。

    将文档与代码“共址”(Co-location)可以确保同步更新,避免文档失效。Notion 等工具在 AI 自动化处理时存在限制,例如不支持原子化的块级操作,AI 修改一个数字可能需要重读重写整个页面。而将文档(如 CLAUDE.md)放在代码仓库根目录,不仅方便 AI 扫描,也能让开发者在修改代码时顺手维护文档,保持高信号强度。

    From Columbia University alumni built in San Francisco

    BeFreed Brings Together A Global Community Of 1,000,000 Curious Minds
    See more on how BeFreed is discussed across the web

    "Instead of endless scrolling, I just hit play on BeFreed. It saves me so much time."

    @Moemenn
    platform
    star
    star
    star
    star
    star

    "I never knew where to start with nonfiction—BeFreed’s book lists turned into podcasts gave me a clear path."

    @Chloe, Solo founder, LA
    platform
    comments
    12
    likes
    117

    "Perfect balance between learning and entertainment. Finished ‘Thinking, Fast and Slow’ on my commute this week."

    @Raaaaaachelw
    platform
    star
    star
    star
    star
    star

    "Crazy how much I learned while walking the dog. BeFreed = small habits → big gains."

    @Matt, YC alum
    platform
    comments
    12
    likes
    108

    "Reading used to feel like a chore. Now it’s just part of my lifestyle."

    @Erin, Investment Banking Associate , NYC
    platform
    comments
    254
    likes
    17

    "Feels effortless compared to reading. I’ve finished 6 books this month already."

    @djmikemoore
    platform
    star
    star
    star
    star
    star

    "BeFreed turned my guilty doomscrolling into something that feels productive and inspiring."

    @Pitiful
    platform
    comments
    96
    likes
    4.5K

    "BeFreed turned my commute into learning time. 20-min podcasts are perfect for finishing books I never had time for."

    @SofiaP
    platform
    star
    star
    star
    star
    star

    "BeFreed replaced my podcast queue. Imagine Spotify for books — that’s it. 🙌"

    @Jaded_Falcon
    platform
    comments
    201
    thumbsUp
    16

    "It is great for me to learn something from the book without reading it."

    @OojasSalunke
    platform
    star
    star
    star
    star
    star

    "The themed book list podcasts help me connect ideas across authors—like a guided audio journey."

    @Leo, Law Student, UPenn
    platform
    comments
    37
    likes
    483

    "Makes me feel smarter every time before going to work"

    @Cashflowbubu
    platform
    star
    star
    star
    star
    star

    From Columbia University alumni built in San Francisco

    BeFreed Brings Together A Global Community Of 1,000,000 Curious Minds
    See more on how BeFreed is discussed across the web

    "Instead of endless scrolling, I just hit play on BeFreed. It saves me so much time."

    @Moemenn
    platform
    star
    star
    star
    star
    star

    "I never knew where to start with nonfiction—BeFreed’s book lists turned into podcasts gave me a clear path."

    @Chloe, Solo founder, LA
    platform
    comments
    12
    likes
    117

    "Perfect balance between learning and entertainment. Finished ‘Thinking, Fast and Slow’ on my commute this week."

    @Raaaaaachelw
    platform
    star
    star
    star
    star
    star

    "Crazy how much I learned while walking the dog. BeFreed = small habits → big gains."

    @Matt, YC alum
    platform
    comments
    12
    likes
    108

    "Reading used to feel like a chore. Now it’s just part of my lifestyle."

    @Erin, Investment Banking Associate , NYC
    platform
    comments
    254
    likes
    17

    "Feels effortless compared to reading. I’ve finished 6 books this month already."

    @djmikemoore
    platform
    star
    star
    star
    star
    star

    "BeFreed turned my guilty doomscrolling into something that feels productive and inspiring."

    @Pitiful
    platform
    comments
    96
    likes
    4.5K

    "BeFreed turned my commute into learning time. 20-min podcasts are perfect for finishing books I never had time for."

    @SofiaP
    platform
    star
    star
    star
    star
    star

    "BeFreed replaced my podcast queue. Imagine Spotify for books — that’s it. 🙌"

    @Jaded_Falcon
    platform
    comments
    201
    thumbsUp
    16

    "It is great for me to learn something from the book without reading it."

    @OojasSalunke
    platform
    star
    star
    star
    star
    star

    "The themed book list podcasts help me connect ideas across authors—like a guided audio journey."

    @Leo, Law Student, UPenn
    platform
    comments
    37
    likes
    483

    "Makes me feel smarter every time before going to work"

    @Cashflowbubu
    platform
    star
    star
    star
    star
    star

    "Instead of endless scrolling, I just hit play on BeFreed. It saves me so much time."

    @Moemenn
    platform
    star
    star
    star
    star
    star

    "I never knew where to start with nonfiction—BeFreed’s book lists turned into podcasts gave me a clear path."

    @Chloe, Solo founder, LA
    platform
    comments
    12
    likes
    117

    "Perfect balance between learning and entertainment. Finished ‘Thinking, Fast and Slow’ on my commute this week."

    @Raaaaaachelw
    platform
    star
    star
    star
    star
    star

    "Crazy how much I learned while walking the dog. BeFreed = small habits → big gains."

    @Matt, YC alum
    platform
    comments
    12
    likes
    108

    "Reading used to feel like a chore. Now it’s just part of my lifestyle."

    @Erin, Investment Banking Associate , NYC
    platform
    comments
    254
    likes
    17

    "Feels effortless compared to reading. I’ve finished 6 books this month already."

    @djmikemoore
    platform
    star
    star
    star
    star
    star

    "BeFreed turned my guilty doomscrolling into something that feels productive and inspiring."

    @Pitiful
    platform
    comments
    96
    likes
    4.5K

    "BeFreed turned my commute into learning time. 20-min podcasts are perfect for finishing books I never had time for."

    @SofiaP
    platform
    star
    star
    star
    star
    star

    "BeFreed replaced my podcast queue. Imagine Spotify for books — that’s it. 🙌"

    @Jaded_Falcon
    platform
    comments
    201
    thumbsUp
    16

    "It is great for me to learn something from the book without reading it."

    @OojasSalunke
    platform
    star
    star
    star
    star
    star

    "The themed book list podcasts help me connect ideas across authors—like a guided audio journey."

    @Leo, Law Student, UPenn
    platform
    comments
    37
    likes
    483

    "Makes me feel smarter every time before going to work"

    @Cashflowbubu
    platform
    star
    star
    star
    star
    star

    "Instead of endless scrolling, I just hit play on BeFreed. It saves me so much time."

    @Moemenn
    platform
    star
    star
    star
    star
    star

    "I never knew where to start with nonfiction—BeFreed’s book lists turned into podcasts gave me a clear path."

    @Chloe, Solo founder, LA
    platform
    comments
    12
    likes
    117

    "Perfect balance between learning and entertainment. Finished ‘Thinking, Fast and Slow’ on my commute this week."

    @Raaaaaachelw
    platform
    star
    star
    star
    star
    star

    "Crazy how much I learned while walking the dog. BeFreed = small habits → big gains."

    @Matt, YC alum
    platform
    comments
    12
    likes
    108

    "Reading used to feel like a chore. Now it’s just part of my lifestyle."

    @Erin, Investment Banking Associate , NYC
    platform
    comments
    254
    likes
    17

    "Feels effortless compared to reading. I’ve finished 6 books this month already."

    @djmikemoore
    platform
    star
    star
    star
    star
    star

    "BeFreed turned my guilty doomscrolling into something that feels productive and inspiring."

    @Pitiful
    platform
    comments
    96
    likes
    4.5K

    "BeFreed turned my commute into learning time. 20-min podcasts are perfect for finishing books I never had time for."

    @SofiaP
    platform
    star
    star
    star
    star
    star

    "BeFreed replaced my podcast queue. Imagine Spotify for books — that’s it. 🙌"

    @Jaded_Falcon
    platform
    comments
    201
    thumbsUp
    16

    "It is great for me to learn something from the book without reading it."

    @OojasSalunke
    platform
    star
    star
    star
    star
    star

    "The themed book list podcasts help me connect ideas across authors—like a guided audio journey."

    @Leo, Law Student, UPenn
    platform
    comments
    37
    likes
    483

    "Makes me feel smarter every time before going to work"

    @Cashflowbubu
    platform
    star
    star
    star
    star
    star
    1.5K Ratings4.7
    Start your learning journey, now
    BeFreed App
    BeFreed

    Learn Anything, Personalized

    DiscordLinkedIn
    Featured book summaries
    Crucial ConversationsThe Perfect MarriageInto the WildNever Split the DifferenceAttachedGood to GreatSay Nothing
    Trending categories
    Self HelpCommunication SkillRelationshipMindfulnessPhilosophyInspirationProductivity
    Celebrities' reading list
    Elon MuskCharlie KirkBill GatesSteve JobsAndrew HubermanJoe RoganJordan Peterson
    Award winning collection
    Pulitzer PrizeNational Book AwardGoodreads Choice AwardsNobel Prize in LiteratureNew York TimesCaldecott MedalNebula Award
    Featured Topics
    ManagementAmerican HistoryWarTradingStoicismAnxietySex
    Best books by Year
    2025 Best Non Fiction Books2024 Best Non Fiction Books2023 Best Non Fiction Books
    Featured authors
    Chimamanda Ngozi AdichieGeorge OrwellO. J. SimpsonBarbara O'NeillWinston ChurchillCharlie Kirk
    BeFreed vs other apps
    BeFreed vs. Other Book Summary AppsBeFreed vs. ElevenReaderBeFreed vs. ReadwiseBeFreed vs. Anki
    Learning tools
    Knowledge VisualizerAI Podcast Generator
    Information
    About Usarrow
    Pricingarrow
    FAQarrow
    Blogarrow
    Careerarrow
    Partnershipsarrow
    Ambassador Programarrow
    Directoryarrow
    BeFreed
    Try now
    © 2026 BeFreed
    Term of UsePrivacy Policy
    BeFreed

    Learn Anything, Personalized

    DiscordLinkedIn
    Featured book summaries
    Crucial ConversationsThe Perfect MarriageInto the WildNever Split the DifferenceAttachedGood to GreatSay Nothing
    Trending categories
    Self HelpCommunication SkillRelationshipMindfulnessPhilosophyInspirationProductivity
    Celebrities' reading list
    Elon MuskCharlie KirkBill GatesSteve JobsAndrew HubermanJoe RoganJordan Peterson
    Award winning collection
    Pulitzer PrizeNational Book AwardGoodreads Choice AwardsNobel Prize in LiteratureNew York TimesCaldecott MedalNebula Award
    Featured Topics
    ManagementAmerican HistoryWarTradingStoicismAnxietySex
    Best books by Year
    2025 Best Non Fiction Books2024 Best Non Fiction Books2023 Best Non Fiction Books
    Learning tools
    Knowledge VisualizerAI Podcast Generator
    Featured authors
    Chimamanda Ngozi AdichieGeorge OrwellO. J. SimpsonBarbara O'NeillWinston ChurchillCharlie Kirk
    BeFreed vs other apps
    BeFreed vs. Other Book Summary AppsBeFreed vs. ElevenReaderBeFreed vs. ReadwiseBeFreed vs. Anki
    Information
    About Usarrow
    Pricingarrow
    FAQarrow
    Blogarrow
    Careerarrow
    Partnershipsarrow
    Ambassador Programarrow
    Directoryarrow
    BeFreed
    Try now
    © 2026 BeFreed
    Term of UsePrivacy Policy

    Key Takeaways

    1

    丢掉 Markdown:为什么 AI 时代需要“彩色”文档

    0:00
    0:30
    0:56
    1:05
    1:33
    1:46
    2:08
    2

    信号还是噪声:二十页 Wiki 真的不如三十行代码

    2:22
    2:43
    2:50
    3:14
    3:20
    3:45
    3:58
    4:18
    3

    走出 Notion 的围城:为什么 Repo-based 才是未来

    4:32
    4:52
    4:54
    5:12
    5:19
    5:36
    5:40
    6:05
    6:21
    4

    构建“上下文栈”:别再给 AI 塞垃圾桶了

    6:34
    6:42
    6:58
    7:02
    7:21
    7:23
    7:52
    8:06
    8:25
    8:31
    5

    自动化架构图:让文档自己“生长”

    8:56
    9:11
    9:21
    9:30
    9:52
    9:57
    10:11
    10:33
    10:39
    10:43
    6

    避坑指南:为什么你的 AI 助手越来越“笨”

    11:13
    11:28
    11:34
    10:43
    11:59
    12:04
    12:26
    9:30
    12:48
    12:57
    7

    实战清单:从明天起,这样管理你的代码库

    13:11
    13:23
    13:44
    13:48
    14:04
    14:10
    14:32
    14:48
    15:06
    8

    终局思考:当文档不再是文字,而是“活”的系统

    15:12
    15:24
    15:35
    15:47
    15:53
    16:07
    16:22
    16:36
    16:43
    16:45

    More like this

    The Markdown Insurgency in AI Memory book cover
    Extend Claude CodeClaude Code Skills: Why Code Scripts Outperform Markdown Instructions for Agent Tasks | MindStudioOrchestrate teams of Claude Code sessionsAgent Memory in 2026 · MEMORY.md, frameworks, vector DBs, and hybrids — Jake Cuth.
    6 sources
    The Markdown Insurgency in AI Memory
    Complex vector databases are being replaced by simple text files. Discover why file-based memory often outperforms heavy infrastructure for AI agents.
    24 min
    From HTML Artifacts to Inline Protocols: AI's Interface Revolution book cover
    From MCP to A2A to AG-UI: The Evolution of Agent ProtocolsThe A2UI Protocol: A 2026 Complete Guide to Agent-Driven InterfacesFrom MVC to MVA: The Architectural Paradigm Shift for Autonomous AI Agents | by Vinkius | Feb, 2026 | MediumAgentic Interfaces in Action: How Generative UI Turns AI from Chatbot to Co-Pilot - Thesys
    6 sources
    From HTML Artifacts to Inline Protocols: AI's Interface Revolution
    Miles and Blythe explore how conversational AI is evolving from static interfaces to dynamic, security-first protocols that let agents create real-time user experiences, fundamentally reshaping human-AI collaboration.
    10 min
    Meta-Harness: AI Designing Its Own Interface book cover
    [8d6ac41f-8c3e-4a48-92be-2d60c5c4e626:c0000] Meta Harness.pdf p1-1[8d6ac41f-8c3e-4a48-92be-2d60c5c4e626:c0001] Meta Harness.pdf p1-1[8d6ac41f-8c3e-4a48-92be-2d60c5c4e626:c0002] Meta Harness.pdf p1-1[8d6ac41f-8c3e-4a48-92be-2d60c5c4e626:c0003] Meta Harness.pdf p1-1
    13 sources
    Meta-Harness: AI Designing Its Own Interface
    Poor interfaces often limit AI performance. Discover how Meta-Harness uses evolutionary loops to optimize model code, boosting accuracy by 10%.
    1357 min
    DESIGN.md: The AI Design Blueprint book cover
    What is DESIGN.md — format, structure and usage with AI agentsdesign.md file: how to write a design system AI agents actually followStop reinventing your design system every project — use DESIGN.md instead | by Divya Patel | Apr, 2026 | MediumVoltAgent/awesome-design-md: A collection of DESIGN.md ... - GitHub
    5 sources
    DESIGN.md: The AI Design Blueprint
    Stop fighting generic AI code. Learn how a single Markdown file can align your AI agents with your brand's specific design system for consistent UI.
    14 min
    Prompt engineering for better AI reasoning book cover
    Every Prompt Engineering Technique Explained: The Research-Backed Guide (2026) | SurePromptsPrompt Engineering Guide 2026: Advanced Techniques That Actually Work | Happycapy GuidePrompt Engineering Best Practices: Tips, Tricks, and Tools | DigitalOceanMastering Prompt Engineering: An In-depth Look at Key Techniques - Jon Bishop
    7 sources
    Prompt engineering for better AI reasoning
    Stop guessing which prompts work. Learn how to use Chain of Thought and Tree of Thoughts to improve accuracy and build reliable AI architectures.
    28 min
    Context Engineering: Beyond Perfect Prompts book cover
    Think Like a FreakHow to Measure AnythingThe Design Thinking WorkbookDesign thinking
    26 sources
    Context Engineering: Beyond Perfect Prompts
    Discover why crafting perfect prompts is obsolete and learn context engineering - the new framework for controlling how AI systems build their information ecosystem and deliver reliable results.
    31 min
    The Context Engineer: Advanced Prompting book cover
    Advanced Prompting Techniques for ChatGPT and LLMs: A Full-Stack Playbook For Power Users, Builders, and Agent Engineers - Kingy AIAdvanced Prompt Engineering Techniques That Actually Work in 202612 Prompt Engineering Techniques That Actually Work12 Advanced Prompt Engineering Techniques With Examples (2026) | AI Prompt Library
    7 sources
    The Context Engineer: Advanced Prompting
    Stop hitting the ceiling of shallow AI responses. Learn how to architect information through reasoning patterns that turn generic outputs into precision.
    13 min
    Claude Code and the Roadmap-Free Future book cover
    Claude Code's product lead talks usage limits, transparency, and the "lean harness" - Ars Technica
    1 source
    Claude Code and the Roadmap-Free Future
    AI tools are evolving faster than developers can plan for them. Explore Anthropic's lean philosophy for managing 80x growth and agentic workflows.
    16 min

    Recommended Learning Plans

    AI 提示词高手:从生活妙招到创意助手
    LEARNING PLAN

    AI 提示词高手:从生活妙招到创意助手

    在生成式 AI 普及的今天,提示词能力已成为个体的核心竞争优势。本课程专为希望将 AI 转化为高效助手和创意伙伴的学习者设计,通过从基础架构到高级思维模型的系统训练,帮助你实现从零基础到提示词高手的跨越。

    1 h 12 m•3 Sections
    AI Writing for Professionals
    LEARNING PLAN

    AI Writing for Professionals

    In an era of automated content, the ability to direct AI with precision is a critical competitive advantage. This plan is designed for busy professionals who need to scale their output without sacrificing their unique voice or professional standards.

    1 h 30 m•3 Sections
    AI 架构师:从 API 调用到自主系统
    LEARNING PLAN

    AI 架构师:从 API 调用到自主系统

    随着生成式 AI 进入落地阶段,企业急需能够设计复杂自主系统的架构人才。本路径专为希望超越简单接口调用、深入底层原理并解决生产环境挑战的开发者与架构师量身打造。

    2 h 18 m•5 Sections
    OpenAI Codex: The Non-Coder's Masterclass
    LEARNING PLAN

    OpenAI Codex: The Non-Coder's Masterclass

    As AI transforms software development, the ability to command code through natural language is becoming a vital superpower for non-technical professionals. This masterclass is designed for entrepreneurs and creators who want to build functional web applications without the traditional learning curve of programming languages.

    1 h 12 m•3 Sections
    Ai learning
    LEARNING PLAN

    Ai learning

    As AI reshapes every industry, understanding its technical core and ethical boundaries is no longer optional. This plan is ideal for professionals and tech enthusiasts who want to transition from passive users to active creators of intelligent systems.

    4 h 42 m•4 Sections
    我想学习ai
    LEARNING PLAN

    我想学习ai

    This comprehensive roadmap bridges the gap between theoretical AI concepts and hands-on technical implementation. It is ideal for aspiring developers and tech enthusiasts looking to transition from basic understanding to building advanced neural networks.

    5 h 28 m•4 Sections
    Master AI & design writing
    LEARNING PLAN

    Master AI & design writing

    As AI transforms how we create, communicate, and design products, professionals need to understand both the technology and how to apply it thoughtfully. This learning plan is ideal for content creators, UX designers, product managers, and marketers who want to harness AI's potential while maintaining the human touch that makes great work resonate.

    3 h 59 m•4 Sections
    Architecting AI Affiliate Engines
    LEARNING PLAN

    Architecting AI Affiliate Engines

    This plan is essential for developers and marketers looking to leverage autonomous AI for large-scale affiliate operations. It addresses the transition from manual content creation to automated, agent-driven ecosystems with robust technical tracking.

    1 h 24 m•3 Sections