Summary
Add a command inline syntax that fetches and converts URLs to markdown on-the-fly, complementing the existing !`cmd` syntax with into.md integration.
Proposed Syntax
# Existing command inline (unchanged):
!`git status`
# New URL inline:
!@https://example.com/current-status
# Or explicit into.md call:
!`into https://news.ycombinator.com`
How It Would Work
- Add new pattern:
!@<url> for URL inlines
- Fetch URL through into.md API
- Replace inline with converted markdown
- Process at the same time as
!`cmd` inlines in src/imports.ts
Use Cases
- Live Data Agents:
!@https://status.example.com for current system status
- Research Workflows: Pull in relevant articles/docs dynamically
- Competitive Analysis:
!@https://competitor.com/pricing to inform decisions
- News-Aware Agents: Include current headlines in context
Alternative: CLI Helper
Could also expose as a standalone command:
# Standalone usage
into https://example.com > context.md
# Pipe to agent
into https://example.com | ma ANALYZER.md
Implementation Notes
- Add
!@ pattern to src/imports.ts
- Reuse into.md client from URL imports feature
- Consider timeout for slow pages
- Error handling for unreachable URLs
Questions for Discussion
- Is
!@url intuitive or confusing? Alternatives: !web(url), !fetch(url)
- Should we support selectors?
!@https://example.com#main-content
- Rate limiting / caching between runs?
Related
This is part of exploring into.md integration opportunities.
Summary
Add a command inline syntax that fetches and converts URLs to markdown on-the-fly, complementing the existing
!`cmd`syntax with into.md integration.Proposed Syntax
How It Would Work
!@<url>for URL inlines!`cmd`inlines insrc/imports.tsUse Cases
!@https://status.example.comfor current system status!@https://competitor.com/pricingto inform decisionsAlternative: CLI Helper
Could also expose as a standalone command:
Implementation Notes
!@pattern tosrc/imports.tsQuestions for Discussion
!@urlintuitive or confusing? Alternatives:!web(url),!fetch(url)!@https://example.com#main-contentRelated
This is part of exploring into.md integration opportunities.