Add search in five minutes or press ⌘K to watch it search these docs.

Overview

Introduction

hev ask distills an Astro docs site into an ask digest — a token-efficient form of your docs, designed for agents to discover progressively through the ask CLI and for readers through a ⌘K overlay.

Build the digest offline with the bundled skill (and your Claude Code subscription), then serve single-turn Q&A over your docs for a few cents per query. Perfect for technical documentation, internal wikis, and other medium-sized corpora.

       BUILD TIME (CLI / Skill)                RUNTIME (edge)
  ╔═════════════════════════════════╗    ╔════════════════════════════════════╗░
  ║  ask digest build               ║    ║  /api/ask   (prerender: false)     ║░
  ║                                 ║    ║                                    ║░
  ║  glob src/content/docs/**       ║    ║  ┌─── keyword mode · no key ────┐  ║░
  ║   → chunk by heading            ║    ║  │ prefilter chunks + glossary  │  ║░
  ║   → sha256 content hash         ║    ║  └──────────────────────────────┘  ║░
  ║   → Opus 4.8 builds the digest  ║    ║  ┌──── agentic loop · Haiku ────┐  ║░
  ║   → write .hev-ask/digest.json  ║    ║  │ system: digest ctx (cached)  │  ║░
  ║                                 ║    ║  │ tool: search(q)  ≤ 4 times   │  ║░
  ╚═════════════════════════════════╝    ║  │ then stream answer, no tools │  ║░
   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░    ║  │ grounded in /page#anchor     │  ║░
                                         ║  └──────────────────────────────┘  ║░
     .hev-ask/digest.json (committed)    ╚════════════════════════════════════╝░
           │                              ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
           ▼
     virtual:hev-ask/digest  ──── bundled into /api/ask ────▶

Build it with your coding agent

The digest is built inside your coding agent — the bundled Claude Code skill generates .hev-ask/digest.json using your existing agentic coding subscription, so there’s no ANTHROPIC_API_KEY and no per-build token spend. Commit the JSON, drop SearchOverlay.astro into a layout, and your site has search — instant keyword results as readers type, plus a Claude answer loop on Enter, every result deep-linked to the exact heading.

Who this is for

You’re building or maintaining an Astro 5 docs site whose content lives in a content collection as Markdown or MDX. You want search and answers that:

  • work out of the box without standing up a service or running a crawler,
  • deep-link to the right section instead of dumping the reader at the top of a long page,
  • can answer a question phrased in the reader’s words, not just match keywords, and
  • are queryable by your coding agent, not only by humans in a browser.

If you only need keyword search over a static site and never want an API key in the loop, Pagefind is simpler and a great fit — see Tradeoffs for an honest comparison.

Next steps

  • Quick start — add search to your site in five minutes.
  • Concepts — chunks, anchors, the agentic loop, and the ask digest.
  • Tradeoffs and Limits — what you’re choosing, and what hev ask deliberately doesn’t do.
  • CLI — build, verify, and query the digest from ask.
  • API reference — every option, the component props, and the endpoint contract.
esc