GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Support for `--dir` with `opencode run` for both local and remote sessions · Issue #12444 · anomalyco/opencode

[FEATURE]: Support for --dir with opencode run for both local and remote sessions #12444

New issue
Copy link
New issue
Copy link
Closed
#12443
Closed
[FEATURE]: Support for --dir with opencode run for both local and remote sessions#12444
#12443
Copy link
Assignees
thdxr
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Description

@BlankParticle
BlankParticle
opened on Feb 6, 2026
Issue body actions

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

The attach command supports --dir to specify the working directory, but run doesn't have this option when using --attach.

It would be useful to have --dir on run for both:

  • Local runs: change to that directory before starting
  • Remote runs with --attach: pass the directory to the remote server

Example usage:

opencode run --dir /path/to/project "do something"
opencode run --attach http://localhost:4096 --dir /path/to/project "do something"

I already made the PR before realising I needed the issue, #12443

Activity

  1. BlankParticle
    added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Feb 6, 2026
  2. github-actions
    assigned
    thdxr
    on Feb 6, 2026
  3. github-actions commented on Feb 6, 2026

    @github-actions
    github-actionsBot
    on Feb 6, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • Create session with a different root/working directory #1143: Create session with a different root/working directory
    • Allow explicitly changing working directory #2177: Allow explicitly changing working directory
    • [FEATURE]:Use attach to reference a local directory. #10615: [FEATURE]:Use attach to reference a local directory.
    • opencode attach --dir does not use project commands #11046: opencode attach --dir does not use project commands

    Feel free to ignore if none of these address your specific case.

  4. rekram1-node
    closed this as completedin #12443on Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @thdxr
    thdxr

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.