Spherse: Command for Claude Code

.opencode/commands/new-task.md

new-task is a command for Claude Code, OpenCode from mengrru/Spherse. It costs 12 tokens per session (66 once invoked), scanned A, original, MIT.

A command that starts a coding task on a new branch based on the latest development branch. A branch is a separate line of work in Git.

In plain words
What is it for?
It helps fetch the latest origin/dev branch, create a randomly named branch from it, and then begin the requested task.
Why use it?
It gives the task an isolated workspace and stops first if the current worktree contains uncommitted changes that could be affected.

Command for Claude CodeOpenCode

Written for Claude Code and OpenCode: $ARGUMENTS substitution, but also installed under .opencode/.

This is mengrru/Spherse's own configuration. It tells Claude Code and OpenCode how to work on Spherse itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Spherse configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mengrru/Spherse. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mengrru/Spherse/main/.opencode/commands/new-task.md
Clone the repo
git clone --depth 1 https://github.com/mengrru/Spherse

Made for: Claude Code, OpenCode.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/mengrru/spherse/new-task"><img src="https://agentmods.dev/badge/commands/mengrru/spherse/new-task.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 66 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.00012 $0.00066
Opus 5.5 $0.00005 $0.00026
Sonnet 5.5 $0.00002 $0.00013
Haiku 4.5 $0.00001 $0.00007

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

Security

Grade A, and why

new-task 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.

.opencode/commands/new-task.md · 8 lines

What it actually says

先从最新 origin/dev 新建一个随机名分支(git fetch origin dev && git checkout -b origin/dev),工作区不干净时停止并告知用户;然后开始任务:

$ARGUMENTS

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 First seen · 8 lines · 12 tokens per session scan A 06f96b340706

Subscribe to this mod's changes

new-task is a command published in the GitHub repository mengrru/Spherse (92 stars, last pushed 3d ago), licensed MIT. It adds 12 tokens to every session and 66 once invoked, about $0.0000 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-30.

Related

Other commands, from other repositories

tag

Create an annotated git tag with an auto-generated summary of changes since the last tag.

alibaba/open-code-review · 0 tokens

commit

Please summarize your current changes, generate a commit message in English, then add and commit. Never include any AI tool or model as a Co-Author in commit messages. No Co-Authored-By lines referencing AI assistants.

alibaba/open-code-review · 0 tokens

WorkbenchCommandHost

A page-level host for workbench commands, panels, keyboard shortcuts, and a command palette. It mounts and unmounts with the page, but is not mounted in Lab pages.

notnotype/neuro-book · 0 tokens

create-pr

Create a GitHub pull request from a pushed branch with ticket-aware title and body generation. Not for: committing, pushing, merging, releasing, or editing an existing PR. Output: a dry-run gh pr create command by default, or the created PR URL after explicit execution.

hmj1026/dhpk · 56 tokens

create-release

Cuts a new release of a software project or plugin, coordinating release configuration, version files, changelog, validation, and the fixed git/PR/tag/CI sequence. Not for: PHP package publication or ordinary commits. Output: a validated release preparation or publication result with the human merge gate preserved.

hmj1026/dhpk · 60 tokens

git-worktree

Manage Git worktree lifecycle with exact native git targets, branch/path validation, and dirty-worktree safety. Covers adding, listing, removing, and pruning worktrees. Not for: branch merging, broad cleanup, or removing or pruning without confirmation. Output: exact commands plus resulting worktree status.

hmj1026/dhpk · 59 tokens