claude-code-companion

claude-code-companion is a skill for Claude Code, Codex from lzhgus/cc-plugin-codex. It costs 50 tokens per session (1,106 once invoked), scanned C, original, Apache-2.0.

A bridge that lets Codex use a locally installed Claude Code command-line tool for code reviews and delegated work.

In plain words
What is it for?
Use it to check setup, request code reviews, delegate repository tasks, transfer work, and check or cancel ongoing work.
Why use it?
It avoids switching tools when you want Claude Code to inspect changes, continue a task, or help recover from a problem.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to check setup, request code reviews, delegate repository tasks, transfer work, and check or cancel ongoing work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lzhgus/cc-plugin-codex/claude-code-companion
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lzhgus/cc-plugin-codex --skill claude-code-companion
Clone the repo
git clone --depth 1 https://github.com/lzhgus/cc-plugin-codex

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for claude-code-companion

README.md
[![agentmods](https://agentmods.dev/badge/skills/lzhgus/cc-plugin-codex/claude-code-companion/github.svg)](https://agentmods.dev/skills/lzhgus/cc-plugin-codex/claude-code-companion)
Your own site
<a href="https://agentmods.dev/skills/lzhgus/cc-plugin-codex/claude-code-companion"><img src="https://agentmods.dev/badge/skills/lzhgus/cc-plugin-codex/claude-code-companion/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for claude-code-companion

Your own site · 80×15
<a href="https://agentmods.dev/skills/lzhgus/cc-plugin-codex/claude-code-companion"><img src="https://agentmods.dev/badge/skills/lzhgus/cc-plugin-codex/claude-code-companion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,106 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.01106
Opus 5.5 $0.00020 $0.00442
Sonnet 5.5 $0.00010 $0.00221
Haiku 4.5 $0.00005 $0.00111

Measured 2mo ago against content hash 154a2bc7d414, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

claude-code-companion scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- Run `cc_setup` once before any other tool. If it reports `claude installed: no` or `authenticated: no`, stop and tell the user how to fix it (`!curl -fsSL https://claude.ai/install.sh | bash` on macOS/Linux/WSL, `!irm

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Run `cc_setup` once before any other tool. If it reports `claude installed: no` or `authenticated: no`, stop and tell the user how to fix it (`!curl -fsSL https://claude.ai/install.sh | bash` on macOS/Linux/WSL, `!irm
plugins/cc/skills/claude-code-companion/SKILL.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Claude Code companion

Overview

This plugin wraps the locally installed claude CLI (headless mode) and exposes it to Codex as MCP tools under the claude-code server. Use these tools when the user wants Claude Code to review code, take on a task, or continue work started in Codex.

The plugin uses the same claude install, login, and config the user already has. It does not bundle Claude Code.

Prerequisites

  • claude is on PATH and logged in (OAuth or ANTHROPIC_API_KEY).
  • Run cc_setup once before any other tool. If it reports claude installed: no or authenticated: no, stop and tell the user how to fix it (!curl -fsSL https://claude.ai/install.sh | bash on macOS/Linux/WSL, !irm https://claude.ai/install.ps1 | iex on Windows PowerShell, and/or !claude login).
  • For tools that operate on a repository, pass repo_path with the absolute path to the current Codex project/repository. Plugin MCP servers run from the plugin cache, not from the user's repository, so process.cwd() is not enough.

Tools

Tool Use when
cc_setup Readiness check. Always first.
cc_review Read-only review of current uncommitted changes or a branch vs --base. Pass repo_path.
cc_adversarial_review Read-only steerable review that challenges the design; accepts focus. Pass repo_path.
cc_rescue Delegate a task (bug, fix, investigation, follow-up) to Claude Code. Can mutate files. Pass repo_path.
cc_transfer Hand the current Codex session transcript to Claude Code; get a claude --resume <id> command. Pass repo_path.
cc_status List running/recent background jobs for this repo. Pass repo_path.
cc_result Read the stored output of a finished job + its Claude session id. Pass repo_path.
cc_cancel Kill a running background job. Pass repo_path.

When to use which

  • Review the diff → cc_review. For a branch review, pass base: "main" (or another ref).
  • Challenge the approach → cc_adversarial_review with focus describing the concern (auth, data loss, race conditions, rollback, etc.).
  • Hand off a task → cc_rescue. Pass the task as task. Prefer background: true for anything non-trivial, then surface progress via cc_status / cc_result.
  • Continue a prior run → cc_rescue with resume: "<session-id>" (get the id from cc_status / cc_result). Use fresh: true to force a new session.
  • Move the conversation to Claude Code → cc_transfer.

Read the full file on GitHub · 70 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 70 lines · 50 tokens per session scan C 154a2bc7d414

Subscribe to this mod's changes

claude-code-companion is a skill published in the GitHub repository lzhgus/cc-plugin-codex (11 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 50 tokens to every session and 1,106 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

claude-code-companion compared with skills from other repositories

claude-code-companion next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
claude-code-companionlzhgus/cc-plugin-codexSkill114mo agoApache-2.0C50Claude Code, Codex
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code