by tsonglew
macOS default app manager for files and URL schemes, with a CLI, MCP server, and agent skills
# Add to your Claude Code skills
git clone https://github.com/tsonglew/dutisdutis is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by tsonglew. macOS default app manager for files and URL schemes, with a CLI, MCP server, and agent skills. It has 259 GitHub stars.
dutis's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/tsonglew/dutis" and add it to your Claude Code skills directory (see the Installation section above).
dutis is primarily written in Rust. It is open-source under tsonglew on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh dutis against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
A Rust application for inspecting and safely managing macOS default handlers for filename extensions, UTIs, MIME types, and URL schemes. It includes an interactive terminal interface, script-friendly JSON, an agent skill, and a local MCP server that starts in read-only mode.
duti commandduti (brew install duti) when changing default applications; the Homebrew formula installs it automaticallybrew install tsonglew/tap/dutis
The tap installs universal dutis and dutis-event-http binaries for Apple
Silicon and Intel Macs, together with the duti runtime dependency.
For requests such as "which app opens PDFs?" or "make VS Code the default for Markdown files", install the Dutis skill as well as the CLI. Installing Dutis with Homebrew alone does not register the skill with your agent. With Node.js installed, make the skill available to Codex globally:
npx skills add tsonglew/dutis --skill dutis --global --agent codex
For Claude Code, replace codex with claude-code. Omit --global to install
for the current project only. The command above installs the latest skill from
GitHub; to use the copy bundled with your installed Homebrew release instead:
npx skills add "$(brew --prefix dutis)/share/dutis/skills/dutis" --skill dutis --global --agent codex
Restart the agent session after installation so it can discover the skill. The
skill guides the agent through inspection, preview, and verification; it does
not install the dutis executable. See the Homebrew guide
for a direct symlink option. The skill also has a
skills.sh page and is available on
ClawHub for OpenClaw users.
To expose Dutis as read-only MCP tools, register its local server with your client. For example, for Codex:
codex mcp add dutis -- dutis mcp
For Claude Code and other clients, see the MCP server guide.
MCP registration and skill installation are separate: either can be used on its
own, and both require the local dutis executable. The server advertises write
tools only when explicitly enabled.
Browsing applications does not require duti. To change a default application, install it with:
brew install duti
# Clone the repository
git clone https://github.com/tsonglew/dutis.git
cd dutis
# Build the project
cargo build --release
# Run the application
cargo run
cargo install --path .
Run dutis without a subcommand to open the guided terminal menu. It lets you:
[y/N] confirmation. Declining or pressing
Enter leaves the system unchanged.duti is available for
mutations.Every interactive mutation passes through the same policy, safety snapshot, audit, and post-change verification pipeline as the non-interactive CLI. Every submenu supports a clear path back to the main menu.
When stdin, stdout, and stderr are attached to a capable terminal, Dutis uses a compact
keyboard-first interface: arrow keys move the selection, Enter opens it, Esc or
q returns, and application lists support type-to-filter fuzzy search. When
input is piped or the terminal is non-interactive, Dutis automatically falls
back to the numbered text interface so scripts and accessibility workflows
remain predictable. Set DUTIS_TUI=plain to request the text interface
explicitly.
Use explicit commands from shell scripts or AI agents. A leading dot on an extension is optional.
# Inspect installed applications and supported handlers
dutis list
dutis query md
dutis get .md
# Inspect typed Launch Services handlers
dutis handler query uti public.plain-text --role viewer
dutis handler query mime text/plain --role editor
dutis handler query url-scheme https
dutis handler get uti public.plain-text --role viewer
dutis handler get mime text/plain --role editor
dutis handler get url-scheme https
dutis handler defaults extension txt --json
# Emit a versioned JSON response
dutis query json --json
# Preview a change without mutating the system
dutis set md com.microsoft.VSCode --dry-run --json
# Apply and verify a change; --yes is required for non-interactive writes
dutis set md com.microsoft.VSCode --yes
# Preview a typed handler change (URL schemes use the implicit `all` role)
dutis handler set uti public.plain-text com.apple.TextEdit --role viewer --dry-run
dutis handler set url-scheme https com.apple.Safari --yes
# Check local readiness
dutis doctor --json
Manage several associations as one reviewed, idempotent plan:
cp dutis.example.toml dutis.toml
dutis plan dutis.toml --json
dutis diff dutis.toml
dutis apply dutis.toml --dry-run
dutis apply dutis.toml --plan-digest <reviewed-digest> --yes
apply rebuilds the plan immediately before changing the system and rejects a
stale digest. Every change is verified, unchanged entries are skipped, and
partial failures include a result for every association. See the
declarative configuration guide for the
schema and safety contract.
Typed queries return compact application candidates with the exact matching
Info.plist declarations. Full list --json output also includes each
application's registered handlers and imported/exported type definitions. See
application metadata for evidence and role
matching rules.
Role-specific handler get queries and verification use native macOS Launch
Services reads. handler defaults returns the complete role matrix. See
native Launch Services reads.
Create, inspect, and restore local snapshots:
dutis snapshot create --config dutis.toml
dutis history
dutis rollback <snapshot-id> --dry-run
dutis rollback <snapshot-id> --yes
Real declarative applies and rollbacks automatically store a safety snapshot before the first mutation. See snapshots and rollback for storage, recovery behavior, and the safe limitation around removing an association.
Run the local MCP server in its default read-only mode:
dutis mcp
Mutation tools are registered only with --allow-writes and require b