Skip to content

cross-review: optional review-only codex settings folder - #37

Closed
arlenskh wants to merge 1 commit into
mainfrom
chore/cross-review-codex-home
Closed

arlenskh wants to merge 1 commit into
mainfrom
chore/cross-review-codex-home

Conversation

@arlenskh

Copy link
Copy Markdown

Codex reviews from /cross-review take their reasoning effort from your main codex config. With no effort set there, a review can run at effort "none" and come back shallow. Raising the effort globally makes every codex use slower, not just reviews.

What changes

  • Review-only codex settings (opt-in). If SKYHOOK_REVIEW_CODEX_HOME is set, cross-review runs codex with that folder as its settings home. You can keep high effort there without touching your everyday codex setup. The one-time setup is documented, including a separate codex login for that folder. Sharing the login file between folders isn't safe, because codex rotates login tokens.
  • Missing plugin fails loudly. If the codex plugin isn't installed, cross-review now says so with the install commands, instead of quietly falling back to something else.
  • README. The codex prerequisite now includes the install step and points to the review-only setup.

What doesn't change: without the new variable, cross-review behaves exactly as before.

Code pointers
  • plugins/skyhook-skills/commands/cross-review.md: Step 1 (new env var), Step 3 codex block (effort note, review-only settings, plugin check)
  • README.md: Prerequisites → codex

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Add optional review-only Codex settings to /cross-review

✨ Enhancement 📝 Documentation 🕐 10-20 Minutes

Grey Divider

AI Description

• Allow Codex reviews to use separate settings for higher reasoning effort without changing everyday
 Codex use.
• Stop with installation guidance when the Codex plugin is missing instead of silently falling back.
• Document plugin installation and the separate login required for review-only settings.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 1 capability

  • 1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
  • The changed instructions govern one bounded review integration: resolving and invoking the configured secondary Codex reviewer.
  • README.md only documents the same setup and is not an independently executing capability.
Behavioral complexity 🟢 Low 🧩 Straightforward

  • Before: cross-review used the resolved Codex companion with the user's normal Codex settings.
  • After: an optional environment variable supplies CODEX_HOME for the Codex invocation and the instructions add setup/stop guidance.
  • New correctness condition: the alternate settings home must be applied only to Codex review calls and must have independent valid authentication.
  • This is a direct configuration-selection rule; it introduces no new algorithm, concurrency protocol, persistent-state invariant, or interacting application states.
Potential damage 🟢 Low 🩹 Reversible

  • The affected capability is the ability to obtain a cross-model review.
  • A bad optional settings home can prevent that review or require the user to authenticate/configure the separate home, but reverting the command change or unsetting the variable restores the prior path.
  • There is no evidence of persistent state mutation, data loss, financial effect, or downstream production capability impact.
  • Revert the command/documentation change or unset SKYHOOK_REVIEW_CODEX_HOME; if the isolated mode is desired, create the folder and complete its separate codex login.
  • No persistent-state repair or external compensation is required.
Assessed commit db590bd
Diagram

graph TD
 A["/cross-review"] --> B{"Reviewer?"} -->|codex| C{"Plugin installed?"} -->|yes| D{"Review home set?"} -->|no| F["Codex companion"]
 B -->|cursor| G["Cursor CLI"]
 C -->|no| H["Install guidance"]
 D -->|yes| I["Review-only config"] --> F
Loading
High-Level Assessment

Keep the opt-in CODEX_HOME override: it isolates review effort while preserving existing behavior when unset. Raising effort in the main Codex configuration would also slow non-review use, and the companion does not offer a review --effort flag.

Files changed (2) +21 / -3

Enhancement (1) +20 / -2
cross-review.mdGuide optional Codex home selection and missing-plugin failure +20/-2

Guide optional Codex home selection and missing-plugin failure

• Instructs the command to use SKYHOOK_REVIEW_CODEX_HOME as CODEX_HOME for Codex calls when set, with separate settings and login instructions. Adds an explicit stop with installation guidance if the companion script is missing.

plugins/skyhook-skills/commands/cross-review.md

Documentation (1) +1 / -1
README.mdDocument Codex installation and review-only settings +1/-1

Document Codex installation and review-only settings

• Adds the plugin installation command and explains how a separate Codex settings folder can raise review effort. Points readers to the command guide for setup.

README.md

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (2) 📘 Rule violations (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. Missing plugins still trigger a Node error 🐞 Bug ≡ Correctness
Description
The Codex command block runs node "$SCRIPT" before the new instruction to check whether SCRIPT
is empty. When the plugin is absent, the discovery command leaves SCRIPT empty, so following the
block as written attempts an invalid Node invocation before reaching the intended installation
guidance.
Code

plugins/skyhook-skills/commands/cross-review.md[R65-67]

+- Check the companion is installed before running: if `$SCRIPT` is empty, say the
+  codex plugin is missing (`/plugin marketplace add openai/codex-plugin-cc`, then
+  `/plugin install codex@openai-codex`) and stop. Don't fall back silently.
Evidence
The script discovery suppresses missing-file errors, and the next line in the runnable block invokes
Node unconditionally. The newly added check is below that block; the sibling Codex command instead
places its empty-result check between discovery and execution.

plugins/skyhook-skills/commands/cross-review.md[42-67]
plugins/skyhook-skills/commands/codex-review.md[22-31]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The runnable Codex block attempts to invoke Node with an empty script path when the plugin is missing, before the later prose check can guide the user.
## Fix Focus Areas
- plugins/skyhook-skills/commands/cross-review.md[42-67]
## Recommended Fix
Put the nonempty `SCRIPT` check between discovery and invocation in the executable instructions, and stop with the installation commands when it fails.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational

2. Readers cannot find the setup guide 🐞 Bug ≡ Correctness
Description
The README points to commands/cross-review.md for the one-time review-only setup, but that path
does not exist from the repository root. Readers following the new prerequisite need
plugins/skyhook-skills/commands/cross-review.md to find the configuration and login commands.
Code

README.md[190]

+  - **codex** — needs the official [`codex` plugin](https://github.com/openai/codex-plugin-cc) (`/plugin marketplace add openai/codex-plugin-cc`, then `/plugin install codex@openai-codex`); defaults to `gpt-6.1-sol`, the latest Sol tier. Review depth follows codex's `model_reasoning_effort`; to raise it for reviews only, set `SKYHOOK_REVIEW_CODEX_HOME` to a separate codex settings folder with `model_reasoning_effort = "high"` and its own `codex login` (setup in `commands/cross-review.md`).
Evidence
The README supplies the shorter setup path, while the setup instructions are in the plugin command
file at the longer path.

README.md[189-190]
plugins/skyhook-skills/commands/cross-review.md[53-64]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The new README setup pointer omits the plugin directory, so it does not identify a file at the repository root.
## Fix Focus Areas
- README.md[190-190]
## Recommended Fix
Replace the setup pointer with a Markdown link to `plugins/skyhook-skills/commands/cross-review.md`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Context sources
✅ Cross-repo context — repo relationships
Review mode: Auto: ⚖️ Balanced: Runtime command behavior and authentication settings warrant careful review.

Grey Divider

Tip of the day
💡 Did you know, you can type 'qodo, fix this' on a finding and the fix lands right on your PR

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@arlenskh arlenskh closed this Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant