Add Dir Opencode
Description
the add-dir command from claude code but for opencode
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
/add-dir for OpenCode
Add working directories to your [OpenCode](https://opencode.ai) session — inspired by Claude Code's [`/add-dir`](https://docs.anthropic.com/en/docs/claude-code/cli-usage#add-dir) command.
When you need an agent to read, edit, or search files outside the current project, this plugin grants access without permission popups. 
Quick Start
opencode plugin opencode-add-dir -g
Restart OpenCode. The plugin auto-registers itself in your `tui.json` — no manual config needed.
Alternative: local developmentgit clone https://github.com/kuzeofficial/add-dir-opencode.git
cd add-dir-opencode
bun install && bun run deploy
Add the local path to both configs:
// ~/.config/opencode/opencode.json
{ "plugin": ["/path/to/add-dir-opencode"] }
// ~/.config/opencode/tui.json
{ "plugin": ["/path/to/add-dir-opencode"] }
Commands
All commands are interactive TUI dialogs — type the command and select from autocomplete.
| Command | Dialog | Description |
|---|---|---|
/add-dir |
Text input + remember checkbox | Add a working directory. Toggle [x] Remember with tab to persist across sessions. |
/list-dir |
Alert | Shows all added directories. |
/remove-dir |
Select list + confirm | Pick a directory to remove, then confirm. |
How It Works
The plugin has two parts: a **TUI plugin** for the interactive dialogs and a **server plugin** for silent permission handling.
TUI Plugin
Handles all three slash commands via dialogs. Directories are stored in two files under `~/.local/share/opencode/add-dir/`:
directories.json— Persisted dirs, survive restarts.session-dirs.json— Session-only dirs, cleared automatically on startup.
Which file gets written depends on the "Remember across sessions" toggle in `/add-dir`.
Respects `XDG_DA
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11