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 — Allow writes to /tmp by default without permission prompt · Issue #5386 · anomalyco/opencode

Allow writes to /tmp by default without permission prompt #5386

New issue
Copy link
New issue
Copy link
Closed
Closed
Allow writes to /tmp by default without permission prompt#5386
Copy link
Assignees
rekram1-node

Description

@remorses
remorses
opened on Dec 11, 2025
Issue body actions

Currently opencode prompts for permission when the model writes to /tmp. Models frequently use /tmp for temporary files during tasks, and requiring approval adds friction without meaningful security benefit since /tmp is ephemeral and outside the user's project.

Writes to /tmp (and $TMPDIR) should be allowed by default.

Related: #4743

Reacted by Pete Cornish and Vlad Ionescu

Activity

  1. rekram1-node commented on Dec 11, 2025

    @rekram1-node
    rekram1-node
    on Dec 11, 2025
    Member
    More actions

    Yeah agree, lets allow it

  2. rekram1-node
    self-assigned this
    on Dec 11, 2025
  3. remorses commented on Dec 11, 2025

    @remorses
    remorses
    on Dec 11, 2025
    ContributorAuthor
    More actions

    I can open a PR if you want

  4. rekram1-node commented on Dec 11, 2025

    @rekram1-node
    rekram1-node
    on Dec 11, 2025
    Member
    More actions

    yeah ill merge it

    afk rn but when i get back ill look

  5. remorses
    added a commit that references this issue on Dec 12, 2025

    feat: allow writes to /tmp by default without permission prompt

    This issue will close once commit ea53b55 is merged into the 'dev' branch.
    ea53b55
  6. remorses commented on Jan 24, 2026

    @remorses
    remorses
    on Jan 24, 2026
    ContributorAuthor
    More actions

    Clsoing. Now you can pass in opencode.json

      "permission": {
        "edit": "allow",
        "bash": "allow",
        "external_directory": {
          "*": "ask",
          "/tmp": "allow",
          "/tmp/*": "allow",
          "/private/tmp": "allow",
          "/private/tmp/*": "allow",
          "env:$TMPDIR": "allow",
          "env:$TMPDIR/*": "allow"
        },
    
      },
    
    Reacted by Ernesto Cruz Olivera, Denis, tomshaffner, Adi and Pete Cornish
    Reacted by Colin Mollenhour, Pat Riehecky, Denis, Doug Richardson, tomshaffner and Adi
  7. remorses
    closed this as completedon Jan 24, 2026
  8. diegonix commented on Mar 8, 2026

    @diegonix
    diegonix
    on Mar 8, 2026
    More actions

    Still an issue as of v1.2.21 (Mar 2026).
    My use case: a multi-agent writes a shared payload file to /tmp/ so that subagents can read it (avoids repeating large context inline). Subagents with "read": "allow" silently fail to read files under /tmp/ because external_directory defaults to "ask" — and subagents never surface the permission prompt.
    Workaround: explicitly setting "external_directory": { "/tmp/**": "allow" } per subagent in opencode.json. Works, but verbose.
    +1 for a first-class $TMPDIR / /tmp allow option — or at minimum, making external_directory: "ask" actually prompt for subagents instead of silently blocking.

    Reacted by Ben Hansen and Rex Ng
  9. djtuBIG-MaliceX commented on Sep 3, 2026

    @djtuBIG-MaliceX
    djtuBIG-MaliceX
    on Sep 3, 2026
    More actions

    Also it's $TEMP or %TEMP% in some platforms. should be env:$TEMP/**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

No labels
No labels

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.