anomalyco / anomalyco/opencode

[FEATURE]: Add a /permissions command to set specific permissions for the agent

Open
#40,909 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

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

Instead of it being ask or auto-approve for all tools, I would like a settings section accessed from slash command like /permissions or similar, where you are able to choose specific permissions for tools. Things like is MCP use allowed, web search, safe commands and dangerous commands are also able to be set. Plus, with things like read and write, as in is the agent auto approved to read your project files, is it allowed to read all of your files, same with write. This would help a lot if I'm deep in a session and I don't want to use confusing commands and do something I don't want too, or have to edit my opencode.json.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the slash-command entry point for /permissions and reviewing how permission settings are currently represented in opencode.json. Define how users choose MCP, web search, safe and dangerous commands, and read/write scopes, with completion demonstrated by those settings changing approval behavior without manual config edits.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authorization, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.