Skip to content

ubiquity-os-storage/command-codex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

command-codex (skeleton)

This is a starter skeleton for a marketplace plugin repo ubiquity-os-marketplace/command-codex.

It is intended to be run as a GitHub Actions plugin (via workflow_dispatch) and invoked from the kernel via:

  • /codex <task>
  • @ubiquityos codex <task>

What’s included

  • manifest.json: declares a single codex command (no tool parameters; task is extracted from the comment body).
  • .github/workflows/compute.yml: a first-pass workflow that:
    • decompresses the kernel event payload
    • validates explicit invocation + basic authorization
    • checks out the target repo using the kernel-provided authToken
    • runs Codex via openai/codex-action@v1 (codex exec)
    • commits & pushes changes to a branch
    • creates a draft PR and comments back with the PR link

This mirrors the patterns used by:

  • lib/command-ask/.github/workflows/compute.yml (decompress + checkout target repo)
  • lib/hello-world-plugin/manifest.json (simple command declaration)

Required secrets (in the plugin repo)

openai/codex-action is API-key based, so you need:

  • OPENAI_API_KEY

Set secrets in GitHub Actions Environments (development and main) or repo secrets.

Kernel config (example)

In the target repo’s .github/.ubiquity-os.config.yml (or dev variant), enable the plugin:

plugins:
  ubiquity-os-marketplace/command-codex@development:
    with:
      allowedAuthorAssociations:
        - OWNER
        - MEMBER
        - COLLABORATOR
      denyForkPRs: true
      requireExplicitInvocation: true
      sandbox: workspace-write # set to danger-full-access for full runner + network access
      safetyStrategy: drop-sudo
      codexArgs: "" # extra `codex exec` flags (optional)
      passAuthTokenToCodex: false # set true to expose GH_TOKEN to Codex (dangerous)
      draftPr: true

Notes

  • This skeleton is intentionally conservative: it does not pass GitHub tokens to Codex.
  • For fork PRs and other edge cases, refine policies in compute.yml.
  • openai/codex-action has its own workflow-actor permission gate; the workflow sets allow-bots: true because kernel-triggered workflow_dispatch runs are typically started by a bot/App actor.

About

Ubiquity OS Command Codex Plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •