task-workspace

task-workspace is a command for Claude Code from Mozurok/fhorja.dev. It costs 92 tokens per session (4,346 once invoked), scanned A, original, MIT.

A git workflow command that creates, reports, or attaches a dedicated worktree and branch for a task. A worktree is a separate working folder connected to the same Git repository.

In plain words
What is it for?
Use it to set up durable task isolation, inspect the current task worktree, or attach an existing task to one.
Why use it?
It lets several tasks proceed on the same repository without sharing one checked-out folder or branch.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: reads .claude/ paths; reads ~/.codex paths; mentions Codex.

Good fit Use it to set up durable task isolation, inspect the current task worktree, or attach an existing task to one.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mozurok/fhorja.dev/task-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/Mozurok/fhorja.dev

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 task-workspace

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/mozurok/fhorja.dev/task-workspace"><img src="https://agentmods.dev/badge/commands/mozurok/fhorja.dev/task-workspace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,346 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.00092 $0.04346
Opus 5.5 $0.00037 $0.01738
Sonnet 5.5 $0.00018 $0.00869
Haiku 4.5 $0.00009 $0.00435

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

Security

Grade A, and why

task-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 1mo 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/task-workspace.md · 125 lines

How it starts

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

task-workspace

Act as a senior/staff engineering workflow workspace operator.

Goal: Provision a dedicated git worktree and branch for the active task on a git-backed project (or report the current one, or attach one to a task already in progress), so several tasks run in parallel on the same repository without colliding on one working tree or one checked-out branch. This is opt-in, git-gated, and additive: when isolation is not requested or the project is not a git repo, this command is a no-op and every other command behaves exactly as today.

This command is distinct from:

  • implement-fleet: which creates ephemeral, slice-level worktrees for parallel slices inside one task and tears them down at the wave merge. task-workspace creates one durable worktree for the whole task. When a task worktree is active, fleet slice worktrees branch from the task branch, not the repo base (ADR-0074 D-3).
  • task-init: which creates the task memory folder and can invoke this command during initialization when isolation is requested. On an attended run with a remote, task-init also creates the task branch in place, with no worktree (ADR-0233); this command is for a task that needs a second working tree. task-workspace owns only the git worktree lifecycle, not the task-memory files.
  • task-close: which owns teardown. task-workspace never removes a worktree; task-close runs git worktree remove plus git worktree prune with an unclean-tree guard (ADR-0074 D-5, D-6).

See ADR-0074 for the contract this command implements.

Mandatory context bootstrap (before any output):

  • Resolving the spec and wos/<topic>.md: canonical repository FIRST. Otherwise use active-adapter docs: ~/.claude/workflow-docs (CLAUDE_WORKFLOW_DOCS_DIR), ~/.cursor/workflow-docs (WORKFLOW_DOCS_DIR; project .cursor/workflow-docs on project installs), ~/.codex/workflow-docs (CODEX_WORKFLOW_DOCS_DIR), or <kimi-home>/workflow-docs (KIMI_WORKFLOW_DOCS_DIR). Nonempty overrides win. Kimi home: KIMI_CODE_HOME, else existing ~/.kimi-code, else existing ~/.kimi, default ~/.kimi-code. Use one root for both paths; try other adapters if absent or unknown. Report resolved root, fallback to other adapters, or missing mandatory context in ### Command transcript. Installed snapshots refresh and prune retired topics only on sync.
  • Read these sections in WORKFLOW_OPERATING_SYSTEM.md first:
    • ## LLM execution contract
    • ## Editor mode policy (mode definitions only; the tool mapping table is lazy-loaded in wos/editor-mode-mappings.md and needed only for non-Claude-Code tools)
    • ## Global output contract (including Adaptive handoff and Mode selection rule)
    • ## Cross-cutting workflow guardrails
  • Read additional sections only when relevant to this command's role:
    • ## Multi-repo support (v1) (the SOURCE_OF_TRUTH workspace schema this command reads and writes; full detail in wos/multi-repo-support.md)
  • Read the active task's memory:
    • SOURCE_OF_TRUTH.md (active codebase path, active or base branch, and any existing ## Workspace section)
    • TASK_STATE.md (task slug, current phase, whether isolation was requested)
  • Read canonical command inventory when a clone is available; otherwise use installed Fhorja commands and skills.
  • Align all routing recommendations and next-command suggestions with the current command set.
  • Official next-command names only: every recommended next command (including the handoff Run now line) MUST use a registered canonical command name or available installed Fhorja command or skill. Never invent names (invalid: worktree-add, task-worktree, provision). One exception: Run now: none with Mode: N/A declares that the chain has ended and no following command would be honest, defined under ### Official command names (routing integrity) (ADR-0126); use it only when nothing honest remains, never to end a chain that has a real next step.

Required inputs:

  • active task folder path (projects/<client>__<project>/active/YYYY-MM-DD_<task-slug>/)
  • SOURCE_OF_TRUTH.md (the target codebase path and its base branch)
  • TASK_STATE.md (the task slug, used to derive the branch and worktree names)
  • the requested action: provision (default), status, or attach (retrofit a worktree onto an in-flight task)
  • intended editor mode (Agent to actually run git and persist the SOURCE_OF_TRUTH write; Ask or Plan to dry-run the proposed commands without touching the filesystem)

Read the full file on GitHub · 125 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. 1mo ago Changed · +92 tokens per session 5418237a2971
  2. 1mo ago Changed · +1 lines 0b830aa84882
  3. 2mo ago Changed · -1 lines ddcf63abdb98
  4. 2mo ago Changed · +2 lines 42fababf9073
  5. 2mo ago First seen · 123 lines · 0 tokens per session scan A 930968b0ca18

Subscribe to this mod's changes

task-workspace is a command published in the GitHub repository Mozurok/fhorja.dev (10 stars, last pushed 1mo ago), licensed MIT. It adds 92 tokens to every session and 4,346 once invoked, about $0.0004 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

task-workspace compared with commands from other repositories

task-workspace next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
task-workspaceMozurok/fhorja.devCommand101mo agoMITA92Claude Code
ijfw-shipFerroxLabs/ijfwCommand214todayMITA32Claude Code
autocommitrandomittin/heimdallCommand54d agoMITA32Claude Code
taskstoissuesChappygo-OS/Atomic-SpecCommand1024d agoMITA21Claude Code
release-builderzxpmail/ReqForgeCommand1812d agoMITA10Claude Code
reqforge-greenkeeperzxpmail/ReqForgeCommand1812d agoMITA10Claude Code
worktreepermanu/superskillCommand1920d agoApache-2.0A14Claude Code, OpenCode