feat(session-start): report real Codex availability in status line - #52
Open
sepehrn0107 wants to merge 1 commit into
Open
feat(session-start): report real Codex availability in status line#52sepehrn0107 wants to merge 1 commit into
sepehrn0107 wants to merge 1 commit into
Conversation
Replace hardcoded 'Skills: ready' with a dynamic check against the Codex companion script at hook startup. The hook now discovers the companion via a glob over ~/.claude/plugins/ and ~/.claude/plugins/marketplaces/*/, runs it with --json, and sets CODEX_LABEL to 'available' or 'unavailable'. Claude's session-start instructions are updated to include the actual CODEX_AVAILABLE result in the status line format. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
~/.claude/plugins/paths and runs it with--jsonat startupCodex: availableorCodex: unavailableinstead of hardcodedSkills: readysession-start.mdtemplate to include the actualCODEX_AVAILABLEresult in the status line formatWhy
The previous
Skills: readylabel was hardcoded — it gave no real signal about whether Codex was installed and authenticated. This makes Codex status visible at session start without requiring the user or Claude to invokecodex:setupmanually to find out.How
The hook loops over
~/.claude/pluginsand~/.claude/plugins/marketplaces/*/to findcodex-companion.mjs, runs it with--json, and greps for"ready": true. This makes the check installation-path-agnostic.Test plan
Codex: availableCodex: unavailable