[PR #7266] feat: add /cd command for changing working directory #12327

Closed
opened 2026-02-16 18:17:14 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7266

State: closed
Merged: No


Summary

  • Add /cd <path> command to change the working directory mid-conversation
  • Support !cd shell mode for directory navigation
  • Add CdTool for agents to change directories programmatically
  • Add POST /cd endpoint and plugin API (setDirectory) for programmatic use
  • Fix TUI event routing to survive directory changes via GlobalBus
  • Regenerate SDK with /cd endpoint and EventInstanceDirectoryChanged type

Fixes #2177

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7266 **State:** closed **Merged:** No --- ## Summary - Add `/cd <path>` command to change the working directory mid-conversation - Support `!cd` shell mode for directory navigation - Add `CdTool` for agents to change directories programmatically - Add `POST /cd` endpoint and plugin API (`setDirectory`) for programmatic use - Fix TUI event routing to survive directory changes via GlobalBus - Regenerate SDK with `/cd` endpoint and `EventInstanceDirectoryChanged` type Fixes #2177
yindo added the pull-request label 2026-02-16 18:17:14 -05:00
yindo closed this issue 2026-02-16 18:17:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12327