workspace

workspace is a command for Claude Code from Kenmege/codex-claude-companion. It costs 13 tokens per session (781 once invoked), scanned A, original, Apache-2.0.

A compatibility command that sends Claude Code to work in a writable background workspace and opens Claude's agents panel in another terminal.

In plain words
What is it for?
Use it for older background-workflow setups where Claude needs native permission controls and a separate agents panel; new durable jobs should use delegation.
Why use it?
It lets Claude edit files and run tests while the current Codex task remains the planner, coordinator, verifier, and reviewer.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions Claude Code; mentions Codex.

Good fit Use it for older background-workflow setups where Claude needs native permission controls and a separate agents panel; new durable jobs should use delegation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kenmege/codex-claude-companion/workspace
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.

Clone the repo
git clone --depth 1 https://github.com/Kenmege/codex-claude-companion

Made for: Claude Code.

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 workspace

README.md
[![agentmods](https://agentmods.dev/badge/commands/kenmege/codex-claude-companion/workspace.svg)](https://agentmods.dev/commands/kenmege/codex-claude-companion/workspace)
Your own site
<a href="https://agentmods.dev/commands/kenmege/codex-claude-companion/workspace"><img src="https://agentmods.dev/badge/commands/kenmege/codex-claude-companion/workspace.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 781 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00013 $0.00781
Opus 5 $0.00006 $0.00391
Sonnet 5 $0.00003 $0.00156
Haiku 4.5 $0.00001 $0.00078

Measured 8d ago against content hash 2ea0597153e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

workspace scanned grade A with 0 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/workspace.md · 82 lines

How it starts

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

/claude-review:workspace

Compatibility lane: use /claude-review:delegate for new durable tmux-owned jobs with recovery, collaboration, delivery acknowledgement, and independent verification.

Purpose

Keep this Codex task active as the planner, orchestrator, verifier, and reviewer. Dispatch Claude Code as a writable background worker, then open Claude's native agents control panel in a separate terminal. Claude may edit files, run tools, and execute tests under its native permission controls. Existing review commands remain isolated and read-only.

Preflight

  1. Prefer codex-claude on PATH; fall back to codex-claude-review.
  2. Record the branch, git status --short, and the repository's real verification commands. Preserve all pre-existing user changes.
  3. Keep the exact user request as the worker prompt. Never add a permission-bypass flag or start another Codex process in this legacy lane.

Dispatch

Use an explicit option terminator before the coding request so request text that starts with a dash can never be reinterpreted as a plugin option:

codex-claude workspace [workspace-flags] -- "<coding request>"

The command returns the authoritative short Claude session ID immediately. Claude continues under its background supervisor and its agents panel opens in another terminal. This Codex task must remain responsive; do not attach Claude to the Codex terminal or wait synchronously for the panel to close.

Claude defaults to the rolling opus selector. The user may pass --model <selector> or change models through Claude's native controls. --plan is analysis-only; normal mode is full coding with native approvals. The GPT-side model is inherited automatically because this active Codex task performs the orchestration—there is no nested GPT model selection.

Supervise

  1. Poll codex-claude workspace-status --path <directory> --all --json at a reasonable cadence while continuing to communicate progress.
  2. Use codex-claude workspace-logs <session-id> only when detail is needed.
  3. The user may interact directly in the separate Claude panel. Do not compete with user input or overwrite user-owned work.
  4. If a focused repair is needed, dispatch it with codex-claude workspace --path <directory> --no-panel -- "<repair request>" to avoid duplicate panels.
  5. Use codex-claude workspace-stop <session-id> only when the user asks, the task is obsolete, or continuing would be unsafe.

Read the full file on GitHub · 82 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. 8d ago First seen · 82 lines · 13 tokens per session scan A 2ea0597153e9

Subscribe to this mod's changes

workspace is a command published in the GitHub repository Kenmege/codex-claude-companion (2 stars, last pushed 5d ago), licensed Apache-2.0. It adds 13 tokens to every session and 781 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.