Skip to content

Greeting message hook #17518

Open
Open

Description

@tom-huntington

What variant of Codex are you using?

CLI

What feature would you like to see?

I would like a hook that runs git status after I open codex or run /new, to remind me if I have forgotten to commit my changes (Getting two sets of changes mixed up, is a real pain because you can't restore with git).

SessionStart runs only after the prompt is submitted, and its stdout is added to the context. I want the hook's stdout printed to the terminal (and not added to the model's context). I want the hook to run before I prompt.

Additional information

No response

Activity

  1. added
    CLIIssues related to the Codex CLI
    hooksIssues related to event hooks
    on Apr 12, 2026
  2. github-actions commented on Apr 12, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. oxysoft commented on May 8, 2026

    @oxysoft

    Indexed this hook ticket in the umbrella tracker: #21753

    Goal: collect the scattered Codex hook requests and bugs into one parity matrix for Full Claude Code Hook Parity (29+), while preserving this issue as the detailed thread for its specific behavior.

  4. jonath0n commented on Oct 2, 2026

    @jonath0n

    I'd like this too. Codex CLI rotates through stock greetings at startup. I'd prefer to use that space for something useful, such as a recent PR summary for the current repository.

    Please support disabling the stock greeting, replacing it with custom text, or displaying output from a user-configured startup command or hook in its place. The output should be visible before submitting the first prompt, without requiring a model turn just to display it.

    A brief summary of recent PR activity or the current branch's PR status would make this space useful every time I start a session.

    Related: #30827 requests hiding the startup banner, and #49009 raises concerns about the greeting copy itself.

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

    enhancementNew feature or requesthooksIssues related to event hooks

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions