Skip to content

Plugin-scoped capability requests for bundled agent workflows #51020

Open

Description

@coreycoto

What variant of Codex are you using?

Codex Desktop and CLI. The local packaging and command-rule probes were run
with codex-cli 0.160.0 on macOS arm64.

What feature would you like to see?

Allow a plugin to declare the capabilities its bundled workflows and custom
agents need, then let the Codex host review, grant, enforce, and revoke those
capabilities for a specific workspace and plugin revision.

This is an integration proposal about scoped capability requests and their
lifecycle
. The existing agent-packaging and hook issues remain the component
requests:

Problem and motivation

I maintain reusable workflow plugins across several repositories and a
production monorepo. I want one reviewed package to distribute the workflow
skills, purpose-specific agent definitions, supporting tools, and an explicit
description of the access required to do the work.

Today, agent definitions need separate installation into user or project
configuration, and supporting command policy is maintained separately again.
An installer must track copies, conflicts, upgrades, and restart requirements.
Moving repository policies into global configuration also loses their intended
workspace boundary.

The security distinction matters: Codex command rules with decision = "allow"
permit execution outside the sandbox. A plugin that automatically installs
broad command prefixes such as gh api or bun run test would not provide
scoped sandbox access. A command prefix also does not bind a mutable repository
script to reviewed code or restrict an API call to a particular repository and
operation.

The desired outcome is extended agent work inside a reviewed access boundary,
with fewer repeated interruptions for operations already covered by that
boundary.

Use cases

  1. Repository analysis: A Git Slop workflow reads a selected repository and
    its Git history and writes its reports and owned diagnostic state. It does
    not need general home-directory access or remote publication authority.
  2. GitHub stewardship: A workflow inspects backlog state, prepares a change
    plan, and applies approved operations to selected repositories/resources.
    Read, edit, merge, and release permissions remain distinguishable.
  3. Implementation and verification: Specialized explorer, reviewer, and
    architecture roles carry their own model and reasoning defaults. Build and
    test workflows use selected workspace paths, caches, network destinations,
    and local services without removing the sandbox.
  4. Reuse across runtimes: The same package declares its needs in local and
    remote environments. Each host reports which capabilities it supports;
    local installation does not imply cloud availability or authorization.

Requested behavior

  • A Codex client extension can declare bundled roles and requested execution
    capabilities, with required and optional capabilities distinguished. The
    manifest requests access; it cannot grant itself access.
  • The host presents the effective requested access through a native review
    form, including workspace, operations, filesystem/network boundaries, and
    duration. The user can approve a bounded workflow scope that supports an
    extended task without making every operation a new approval.
  • Grants bind to the reviewed package revision and workspace. Plugin code,
    helpers, arguments, or policy that determine the granted operation have
    explicit integrity and scope checks; broad interpreter or script-name
    prefixes are insufficient.
  • Existing administrator restrictions and parent-agent ceilings remain
    authoritative. A delegated agent cannot obtain broader access by selecting a
    plugin role. Model-facing instructions and rule justifications are not
    enforcement mechanisms.
  • Capability increases on upgrade require review. Disabling or uninstalling
    the plugin revokes its grants, with clear behavior for running work and
    preservation of unrelated user/project configuration.
  • The active-session inventory exposes the selected role, source revision,
    granted capabilities, and any reload or restart requirement. A startup hook
    can announce verified availability and routing guidance rather than infer it
    from files that happen to exist.

Local filesystem/network permission profiles, escalated command approval, MCP
and connector authorization, and browser permissions have different enforcement
boundaries. The host should distinguish them and report unsupported controls;
a local command permission must not silently stand in for an external-tool
grant. Credentials should remain host-managed, outside the distributed plugin.

A phased implementation could start with local command capability requests
bound to the existing permission system, alongside native plugin role loading,
and then add supported adapters for other tool surfaces. Maintainer guidance on
the manifest contract and preferred tracking issue would be helpful.

Additional information

I have an isolated local prototype for role onboarding and upgrades, plus a
zero-inference hook-discovery reproduction. Those checks establish package and
installer behavior; they do not establish that an already-running Desktop
session has activated the roles, or that plugin capability isolation already
exists.

Activity

  1. added
    enhancement
    app
    skills
    sandbox
    subagent
    on Oct 5, 2026
  2. coreycoto commented on Oct 6, 2026

    @coreycoto
    Author

    Implementation update (October 6): the public Product Development and Project Management plugin pilot now works in a live Codex Desktop chat.

    The implementation is merged in coreycoto/agent-plugins PR #3; the current Codex adapter source is here.

    Native Setup forms successfully handled agent installation/upgrades. After native hook review and a Desktop restart, the public plugins' packaged role names were available in the active spawn tool. pm_merge_reviewer completed a real PR readiness review, and a native SubagentStart receipt confirmed the selected role. Other roles were not individually exercised in this rollout; Cloud/ChatGPT Work discovery remains unverified.

    This proves the installer workaround can support useful Desktop work. It still requires generated Codex compatibility bundles for portable hooks, installer-managed agent copies, separate hook review and a restart/reload. It does not resolve #18308, #36855 or #47925, or demonstrate plugin-scoped capability isolation.

    The cleaner host contract remains direct loading of plugin-owned agents, portable OpenAI hook support, host-reported role/source/reload state, and scoped capability review during Setup/upgrades. Capability increases should require review and respect workspace boundaries and parent permissions.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    appenhancementsandboxskillssubagent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions