-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Allow running agent markdown files directly from URLs, converting web-hosted instructions into executable agents via into.md.
Proposed Usage
# Run an agent hosted on a gist
ma https://gist.github.com/user/abc123
# Run an agent from a documentation site
ma https://example.com/agents/code-reviewer.html
# Run from a raw markdown URL (no conversion needed)
ma https://raw.githubusercontent.com/user/repo/main/AGENT.mdHow It Would Work
- Detect if the file argument is a URL (already partially implemented in
src/remote.ts) - If URL ends in
.mdor is a raw content URL, fetch directly - Otherwise, pipe through into.md to extract markdown from HTML
- Parse frontmatter and execute as normal
- Clean up temp file after execution
Use Cases
- Shared Agents: Team shares agent definitions via gists or wikis
- Agent Marketplace: Community-published agents runnable by URL
- Documentation-as-Agent: Tutorial pages that are also executable
- No-Install Distribution: Share an agent without requiring git clone
Security Considerations
- Warn user when running remote agents (already implemented:
printRemoteWarning) - Consider
--trust-remoteflag for CI/automation - Sandbox by default? Show frontmatter before execution?
Implementation Notes
- Extend
src/remote.tsto use into.md for HTML pages - Detect content type from response headers
- Cache remote agents locally with TTL?
Questions for Discussion
- Should we require explicit
--remoteflag for safety? - How to handle authentication for private gists/repos?
- Should converted HTML agents be cached?
Related
This is part of exploring into.md integration opportunities.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request