Skip to content

Optional Codex SessionStart bootstrap docs for deterministic startup behavior #898

Closed

Description

@gustavofondaik
  • I searched existing issues for this IDE/platform

Which IDE or platform?

OpenAI Codex CLI
https://github.com/openai/codex

Does this tool have a plugin or extension system?

Not in the same sense as Claude Code plugins, but it does have:

  • native skill discovery via ~/.agents/skills/
  • hook support via ~/.codex/hooks.json
  • native hook events including SessionStart

I manually adapted the Superpowers SessionStart bootstrap for Codex on Windows by using a small .cmd wrapper that delegates to the existing upstream hooks/run-hook.cmd and hooks/session-start scripts.

Have you tried manual installation?

Yes.

The current Codex docs are already correct that Superpowers works through native skill discovery with no extra configuration required for basic usage.

What we found is narrower and optional:

  • Codex already discovers using-superpowers automatically through ~/.agents/skills/
  • however, an optional SessionStart hook can make the first-turn bootstrap more deterministic
  • this is especially relevant for people who want behavior closer to the existing Superpowers startup flow

We validated this manually on Windows:

  • startup fires
  • resume fires
  • clear fires

One important difference from the upstream Claude-oriented hook config:

  • upstream Superpowers uses startup|clear|compact
  • Codex SessionStart uses startup|resume|clear instead
  • compact is not a valid SessionStart source in Codex's current schema, so resume is the closest adaptation

I am not proposing this as required installation or as a replacement for the current Codex docs.

I am proposing a small optional documentation addition, for users who want a more explicit startup bootstrap:

  • note that native skill discovery is usually enough
  • optionally document SessionStart hook setup for Codex
  • mention that [features] codex_hooks = true may need to be enabled
  • document the event mapping difference (compact vs resume)

If this direction sounds reasonable, I can open a small docs-only PR.

Activity

  1. obra commented on Mar 23, 2026

    @obra
    Owner

    Ooh! Are hooks now GA in codex?

  2. gustavofondaik commented on Mar 23, 2026

    @gustavofondaik
    Author

    Ooh! Are hooks now GA in codex?

    Not fully GA, I think. They worked for me, but only with features.codex_hooks = true in Codex config, so I’m treating them as still experimental/feature-gated.

  3. GoinsSouthernLegacy commented on Mar 23, 2026

    @GoinsSouthernLegacy

    I play on Roblox and am just starting out on building everything and all myself with no collaborators or any help really. So would this be something that would be of use in Roblox? And could it be used in form of Lau/Scripts for Roblox Studios?

  4. added
    enhancement
    codex
    documentation
    hooks
    on Mar 29, 2026
  5. obra commented on Apr 18, 2026

    @obra
    Owner

    Plug-in hooks are, however, not yet there

  6. added
    upstream-bug
    on Apr 18, 2026
  7. marked Add Hooks to Codex #1519 as a duplicate of this issue on May 11, 2026
  8. theoyiorkas commented on May 17, 2026

    @theoyiorkas

    @gustavofondaik can you share the .cmd wrapper file you created to make superpowers hook to work on Windows?

  9. arittr commented on Jun 1, 2026

    @arittr
    Collaborator

    Implemented on dev by #1540.

    The merged change goes beyond the optional/manual docs proposed here: the Codex plugin now ships native SessionStart hook packaging via .codex-plugin/plugin.json, hooks/hooks-codex.json, and hooks/session-start-codex, giving Codex users deterministic using-superpowers startup bootstrap through the plugin path.

    Closing as implemented on dev; this should ship in the next release.

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

    codexdocumentationenhancementhooksupstream-bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions