workspace-mode

workspace-mode is a skill for Claude Code from HigorAlves/orc. It costs 50 tokens per session (1,254 once invoked), scanned A, original, MIT.

A guide for working in a folder that contains multiple related Git repositories, with rules for detecting and selecting those repositories.

In plain words
What is it for?
Use it to choose one repository, several repositories, or all repositories in a shared workspace and manage linked pull requests.
Why use it?
It helps coordinate one development task across several repositories while keeping each repository's work separate.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: $skill-name invocation.

Good fit Use it to choose one repository, several repositories, or all repositories in a shared workspace and manage linked pull requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/higoralves/orc/workspace-mode
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 HigorAlves/orc --skill workspace-mode
Clone the repo
git clone --depth 1 https://github.com/HigorAlves/orc

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-mode

README.md
[![agentmods](https://agentmods.dev/badge/skills/higoralves/orc/workspace-mode/github.svg)](https://agentmods.dev/skills/higoralves/orc/workspace-mode)
Your own site
<a href="https://agentmods.dev/skills/higoralves/orc/workspace-mode"><img src="https://agentmods.dev/badge/skills/higoralves/orc/workspace-mode/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 workspace-mode

Your own site · 80×15
<a href="https://agentmods.dev/skills/higoralves/orc/workspace-mode"><img src="https://agentmods.dev/badge/skills/higoralves/orc/workspace-mode.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,254 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.00050 $0.01254
Opus 5.5 $0.00020 $0.00502
Sonnet 5.5 $0.00010 $0.00251
Haiku 4.5 $0.00005 $0.00125

Measured 25d ago against content hash a6de5153c042, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

workspace-mode 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 25d 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.

codex/orc/content/skills/workspace-mode/SKILL.md · 84 lines

How it starts

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

Workspace mode

Overview

orc auto-detects two contexts at session start:

  • repo — cwd is inside a git repo. Single-repo mode (the original orc behavior).
  • workspace — cwd is not inside a git repo, but ≥2 immediate child directories are git repos.

In workspace mode, one orc flow can span multiple repos: a single shared plan, the same branch name created in each targeted repo, per-repo implementers running in parallel, and N linked PRs at ship time.

Announce at start: "I'm using the workspace-mode skill because the SessionStart banner showed orc context: workspace[…]."

Detection

The session-start hook (hooks/scripts/session-start-using-orc.sh) sources lib/workspace-detect.sh and emits a banner. Commands that need the same context source the helper themselves:

. "${PLUGIN_ROOT}/lib/workspace-detect.sh"
eval "$(orc_detect_context)"
# now: $ORC_CONTEXT, $ORC_WORKSPACE_ROOT, $ORC_WORKSPACE_NAME,
#      $ORC_WORKSPACE_REPOS (comma-sep), $ORC_REPO_ROOT, $ORC_STATE_DIR

Detection precedence:

  1. git rev-parse --show-toplevel succeeds → repo.
  2. ≥2 immediate child dirs of cwd are git repos → workspace.
  3. Otherwise → loose (commands refuse with a hint to cd).

The helper is the single source of truth — never reimplement detection inline.

Flag precedence (repo-touching commands)

When the context is workspace, every repo-touching command ($orc-flow, $orc-plan, $orc-start, $orc-ship, $orc-address, $orc-qa, $orc-debug, $orc-cleanup, $orc-resume, $orc-code-review, $orc-fan-out) honors:

Flag Meaning
--repos a,b,c Broadcast to the listed repos.
--repo a Narrow to one. Mutually exclusive with --repos.
--all-repos Broadcast to every detected repo. Skips the prompt.
--this-repo Pin to cwd's repo (escape hatch from workspace prompts).
(no flag) Prompt via the available user-question tool (or ask in chat). Options: "all N detected repos / pick a subset / just this repo / cancel".

Read the full file on GitHub · 84 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 25d ago Changed a6de5153c042
  2. 1mo ago Changed · -168 lines ae09213b35da
  3. 2mo ago First seen · 252 lines · 50 tokens per session scan A 70094cbf21a6

Subscribe to this mod's changes

workspace-mode is a skill published in the GitHub repository HigorAlves/orc (7 stars, last pushed 3d ago), licensed MIT. It adds 50 tokens to every session and 1,254 once invoked, about $0.0002 per session on Opus 5.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-09-03.

Related

workspace-mode compared with skills from other repositories

workspace-mode next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
workspace-modeHigorAlves/orcSkill73d agoMITA50Claude Code
fable-shipdebabsah/fable-methodSkill04mo agoMITA46Claude Code
changelogwesammustafa/Claude-Code-Everything-You-Need-to-KnowSkill3.7k2d agononeA28Claude Code
land-and-deployFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A41Claude Code
review-prFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A45Claude Code
release-notes-generatorFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A59Claude Code
release-notesFlorianBruniaux/claude-code-ultimate-guideSkill7.6ktodayCC-BY-SA-4.0A13Claude Code