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.
git clone --depth 1 https://github.com/HigorAlves/orcWrote 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.
[](https://agentmods.dev/commands/higoralves/orc/env)<a href="https://agentmods.dev/commands/higoralves/orc/env"><img src="https://agentmods.dev/badge/commands/higoralves/orc/env/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.
<a href="https://agentmods.dev/commands/higoralves/orc/env"><img src="https://agentmods.dev/badge/commands/higoralves/orc/env.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.01479 |
| Opus 5.5 | $0.00014 | $0.00592 |
| Sonnet 5.5 | $0.00007 | $0.00296 |
| Haiku 4.5 | $0.00003 | $0.00148 |
Grade A, and why
env 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 29d 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.
How it starts
The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
$orc-env
Give the current project (or workspace) a running dev environment — the same one $orc-qa and $orc-flow boot before browser QA. Standalone uses: "I want to poke at the app", pre-warming the env before a QA run, checking what's up, tearing down.
When NOT to use
Production deploys, remote/cloud environments, Kubernetes — out of scope by design (see orc-docker-best-practices's hand-off list). This command provisions local dev environments only.
Arguments
up(default) — provision or attach. Honors the full detection ladder fromorc-env-provisioning.status— read-only: state file + livedocker compose psverification + orphan sweep.down— tear down the current branch's environment. Destructive; previews and confirms first.--containerize-app— force a full app container when nothing exists (default is hybrid: services in Docker, app on host).--rebuild— force--buildon boot regardless ofbuildInputsHash.--fresh— ignore reusable state:downfirst, then re-provision from scratch.--down-volumes— withdown: also remove named volumes (default keeps them so the next boot reuses DB data).--wait-timeout <s>— healthcheck wait budget (default 120).--repos a,b/--repo a/--all-repos/--this-repo— workspace-mode targeting. Seeorc-workspace-mode.
Workflow
Phase 0 — Detect context
Run orc-workspace-detect --banner in the working repository and read its output before continuing.
Run context detection explicitly; shell environments do not persist between calls. In workspace mode, resolve target repos from flags or the available user-question tool (or ask in chat) — iron rule: no silent broadcast.
Phase 1 — Resolve the verb + state path
$verb is the first argument (up when empty). State file: orc-docker-env state-path "$ORC_STATE_DIR" <sanitized-branch> — in workspace mode the workspace-level state dir; single-repo mode the repo's.
Phase 2 — up
- Invoke the
orc-env-provisioningskill (announce it). Quick attach check first:orc-docker-env is-ready <state-file>—ready→ echo the reuse line (project, services, appUrl, "reused") and skip to step 3. - Dispatch
orc-env-provisionerviaTask. Pass:repoPath(worktree),stateDir,sessionId(sanitized branch perorc-state-protocol), the flags, and — workspace mode —repos[]/repoPaths,webSurfaceRepo(from the plan's "Repo touchpoints" when present), plan path for dependency order. Onfailedverdict: re-print the agent's 🛑 callout andthe available user-question tool (or ask in chat)— retry /--freshretry / abort. Onfallback: re-print the ⚠️ callout and continue. - Register the session. If
.orc/orc.jsonhas an in-progress session for this branch, appenddocker_env_status: <status> (…)to its checkpoint. Otherwise register a lightweight entry (command: "env",status: "in_progress", branch,startedAt) so$orc-statusshows the running environment and$orc-cleanupcan find it. - Echo: state path, appUrl + serviceEndpoints, boot seconds, reused flag.
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.
- 29d ago Changed 87e692e4588f
- 3mo ago First seen · 102 lines · 34 tokens per session scan A b02ec73d446a
env is a command published in the GitHub repository HigorAlves/orc (7 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 1,479 once invoked, about $0.0001 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-08-31.
env compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| envHigorAlves/orc | Command | 7 | today | MIT | A | 34 | Claude Code |
| parallax-statusMaster0fFate/parallax-claudecode | Command | 0 | 1mo ago | MIT | A | 13 | Claude Code |
| checklistgithub/spec-kit | Command | 154k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 154k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 154k | today | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 154k | today | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 154k | today | MIT | A | 35 | Claude Code |