-
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 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 insrc/imports.ts
Use Cases
- Live Data Agents:
!@https://status.example.comfor current system status - Research Workflows: Pull in relevant articles/docs dynamically
- Competitive Analysis:
!@https://competitor.com/pricingto 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.mdImplementation Notes
- Add
!@pattern tosrc/imports.ts - Reuse into.md client from URL imports feature
- Consider timeout for slow pages
- Error handling for unreachable URLs
Questions for Discussion
- Is
!@urlintuitive 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.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request