-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Add a new frontmatter key docs: that fetches and includes entire documentation sites as agent context using into.md.
Proposed Syntax
---
harness: claude
model: sonnet
docs: https://docs.astro.build/
---
Help me build an Astro site with these requirements...How It Would Work
- Parse
docs:URL(s) from frontmatter - Fetch the root page through into.md
- Optionally spider linked pages (configurable depth)
- Concatenate all converted markdown as context
- Inject before the prompt body (similar to
context:globs)
Use Cases
- Instant Expert Agents: Create an agent that "knows" a specific library's docs
- Version-Specific Context: Point to
/v2/vs/v3/docs for the right version - Framework Helpers: Build agents specialized in Next.js, Remix, SvelteKit, etc.
Configuration Options
docs:
url: https://docs.example.com/
depth: 2 # How many levels to spider (default: 1)
include: /api/** # URL patterns to include
exclude: /blog/** # URL patterns to skip
cache: 24h # Cache durationImplementation Notes
- New frontmatter key in
src/types.tsandsrc/schema.ts - Spider logic with depth limiting
- Respect robots.txt? Or trust user intent?
- Token budget awareness (docs can be huge)
Questions for Discussion
- How do we handle docs that exceed context limits? Summarize? Truncate? Error?
- Should we show a progress indicator while spidering?
- Is
docs:the right key name, or something likeweb-context:?
Related
This is part of exploring into.md integration opportunities.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request