Skip to content

Conversation

@hegasz
Copy link

@hegasz hegasz commented May 31, 2025

What

This PR introduces a remote permission mode to Codex CLI, enabling the agent to request command approval decisions from a remote permission server.

Why

I needed this for a project I'm working on; this is the minimal set of features I needed for my use-case but happy to polish and extend if this is something people want. Remote permission opens the door for quite a lot of downstream applications. For example, as these things get increasingly capable and people start wanting to run many in parallel, something like this is needed to avoid ending up stuck staring at dozens of tmux panels.

How

  • Added new CLI flags: --remote-permission, --permission-server-url, and --agent-id to configure the remote permission workflow.
  • Implemented a socket.io-based websocket client (requestRemotePermission) to connect to the server.
  • Added runRemoteMode to cli.tsx - similar to existing runQuietMode.

@github-actions
Copy link

github-actions bot commented May 31, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@hegasz
Copy link
Author

hegasz commented May 31, 2025

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request May 31, 2025
@codex-maintainers
Copy link
Collaborator

Thanks for the contribution! We're primarily focused on the native/Rust implementation of Codex CLI and would love to see if this feature is still relevant on the latest version. If it is, we're happy to take a look at a PR to the codex-rs/ implementation.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants