Noureddine RAMDI / xURL: a unified CLI abstraction for multi-agent AI workflows with a custom URI scheme

Created Mon, 04 May 2026 10:23:02 +0000 Modified Sat, 23 May 2026 20:41:27 +0000

Xuanwo/xurl

xURL tackles the fragmentation problem in the AI agent CLI space by introducing a unified URI scheme that acts as a protocol-level abstraction over multiple provider-specific command line tools. Instead of juggling different CLIs with varying commands and flags for Codex, Claude, Copilot, Gemini, and others, xURL lets you interact with all of them through a consistent agents:// URI grammar.

what xurl does and how it’s built

At its core, xURL is a Rust CLI tool that defines and implements a custom URI scheme agents://. This scheme abstracts the underlying complexity of dealing with multiple AI agent CLIs, each with their own syntax and semantics. The design supports CRUD operations on conversations: you can read conversation threads as markdown, query threads filtered by keywords, providers, paths, or roles, discover metadata with HEAD-like requests, and write to start or continue conversations.

The URI scheme itself is quite flexible. It supports an optional scheme prefix, targets specific providers, accepts conversation tokens, and can address child or subagent IDs. Query string parameters allow filtering, forwarding arguments to the underlying provider CLIs, and more. This makes the scheme expressive enough to cover a broad range of use cases while maintaining a consistent external interface.

Under the hood, the tool is implemented in Rust, which suggests a focus on performance, reliability, and a small footprint. The codebase includes both the standalone CLI binary and integration as an “agent skill” that can be consumed by other systems. Error handling is designed with agents in mind: errors are emitted on stderr with actionable recovery instructions, improving usability and debugging.

The architecture positions xURL as a meta-agent CLI that orchestrates calls to many different provider CLIs, normalizing their input and output. This reduces the cognitive load on developers who need to interact with multiple AI agents in their workflows.

technical strengths and tradeoffs

What stands out is the protocol-level abstraction embodied by the agents:// URI scheme. Most multi-agent tools rely on wrappers or adapters, but xURL defines a clean, human-readable URI grammar that maps to operations across multiple providers. This makes scripting and automation easier, as you can pass around these URIs instead of provider-specific CLI commands.

The code quality, from what is visible, is solid. Rust’s type safety and error handling capabilities enable a robust implementation. The agent-native stderr error output with recovery steps is a nice touch for DX, making it easier to diagnose and fix issues without digging through logs.

The tradeoff is complexity: the abstraction has to keep up with the quirks and updates of many underlying CLIs. Also, forwarding query parameters to provider CLIs means that users still need some familiarity with the individual tools. This design choice favors flexibility over strict encapsulation.

Another consideration is that the project supports multiple installation methods — Homebrew, Cargo, npm, Python uv tool — which broadens accessibility but requires maintenance across ecosystems.

quick start

xURL can be installed either as an agent skill or as a standalone CLI. To add it as an agent skill:

npx skills add Xuanwo/xurl

To install the CLI standalone:

brew tap xuanwo/tap && brew install xurl   # Homebrew
cargo install xurl-cli                      # Cargo
uv tool install xuanwo-xurl                 # Python / uv
npm install -g @xuanwo/xurl                 # npm

Once installed, you can query an agent to summarize a conversation thread like this:

Please summarize this thread: agents://codex/xxx_thread

This example shows how the unified URI scheme integrates directly into conversational prompts or scripting, making it simple to reference specific agent conversations across different backends.

verdict

xURL is a thoughtful attempt to unify a fragmented AI agent CLI landscape under a single URI scheme. It’s particularly relevant for developers or teams working with multiple AI providers who want a consistent CLI interface for conversation management and querying.

The Rust implementation promises reliability and performance, and the design choice to provide agent-native error output with recovery hints improves developer experience. However, the abstraction layer inevitably inherits the complexity of underlying CLIs, and users will need some knowledge of provider-specific parameters for advanced use.

If you’re building multi-agent workflows, managing AI conversations programmatically, or need a uniform way to script across Codex, Claude, Copilot, Gemini, and others, xURL is worth evaluating. For those focused on a single AI provider or very advanced provider-specific features, direct use of native CLIs might still be preferable.

Overall, xURL solves a real pain point with a clean, extensible design and should be in the toolkit of anyone working seriously with multi-agent AI CLI integrations.


→ GitHub Repo: Xuanwo/xurl ⭐ 319 · Rust