KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
opencode-dir
★ 24
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
IPTVMIR
:
🔥 DropTV — 9000+ рабочих IPTV каналов | Еженедельное обновление | RAW плейлист
sunoh-music
:
No description available.
tokenrouter
:
One OpenAI-compatible endpoint for all your AI providers
WhoCitesMe
:
Find the bigshots who cite me
projdevbench
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
opencode-dir
?
Download (.md)
# opencode-dir Directory operations for [opencode](https://opencode.ai) sessions. Change directory, move sessions, and grant access to additional directories at runtime. When working across monorepos or multiple repositories, sessions get stuck in the directory they were started in. This plugin adds `/cd`, `/mv`, `/add-dir`, and `/remove-dir` commands to manage directory context without restarting. ## Setup Add to `opencode.json`: ```json { "plugin": ["opencode-dir"] } ``` Restart opencode. The plugin auto-installs commands on first load. ## Commands ### `/cd <path>` Change the session's working directory. Tools (`bash`, `glob`, `grep`, `read`, `write`, `edit`) will operate in the new directory immediately. Message history is left untouched. ### `/mv <path>` Same as `/cd`, but also rewrites `path.cwd` and `path.root` in all existing assistant messages to point to the new directory. Use when you want the full conversation history to reflect the new location. ### `/add-dir <path>` Grant tool access to an additional directory without changing the session's working directory. Use when you need to read or write files in a secondary project or monorepo package. Can be called multiple times to add several directories. ### `/remove-dir <path>` Revoke tool access to a directory previously granted via `/add-dir`. The session working directory is unchanged; only the permission entries for the given path are removed. ## After moving The session is fully operational in the new directory. System prompt, tools, and permissions are all updated immediately. When you next open opencode from the target directory, the session will appear under that project's session list. ## License MIT