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.
npx skills add ishida-supsys/oretachi --skill background-commandgit clone --depth 1 https://github.com/ishida-supsys/oretachiWrote 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/skills/ishida-supsys/oretachi/background-command)<a href="https://agentmods.dev/skills/ishida-supsys/oretachi/background-command"><img src="https://agentmods.dev/badge/skills/ishida-supsys/oretachi/background-command/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/skills/ishida-supsys/oretachi/background-command"><img src="https://agentmods.dev/badge/skills/ishida-supsys/oretachi/background-command.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.00120 | $0.03055 |
| Opus 5.5 | $0.00048 | $0.01222 |
| Sonnet 5.5 | $0.00024 | $0.00611 |
| Haiku 4.5 | $0.00012 | $0.00305 |
Grade A, and why
background-command scanned grade A with 1 finding 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 3mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- 出力を即 grep / 解析したい短命スクリプト(`curl`, `git log`, `ls` 等) How it starts
The opening of the file, as written. The whole thing — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.
background-command スキル
長時間常駐するコマンド(開発サーバ・ファイル監視・watch ビルド・HTTP サーバ等)を実行するとき、Claude Code の bash tool の run_in_background を使うのではなく、oretachi の MCP ツールで oretachi UI 上に新しいターミナルタブを追加してそこで実行する。
これにより:
- 出力ログが xterm.js でユーザーに可視化される
- ユーザーが任意タイミングで Ctrl-C / kill できる
- 他ワークツリーへの切替・detach 等の oretachi 既存 UI が活用できる
- Claude Code 終了後もプロセスを残せる
いつこのスキルを使うか
使う(長時間常駐するコマンド):
pnpm dev,pnpm run dev,pnpm run tauri dev,npm start,yarn devnext dev,vite,nuxt dev,astro devnodemon,tsc --watch,cargo watch,cargo run(HTTP サーバ等)docker compose up(-dなし),rails s,flask run,python -m http.server- その他、Ctrl-C しない限り終了しないコマンド全般
使わない(短命コマンド or 出力をすぐ後処理したいケース):
pnpm test,pnpm run build,cargo build,cargo check,tsc --noEmit,eslint .,prettier --check- ビルド・テスト・lint・型チェック等、終了コードを判定したいもの
- ユーザーが明示的に「bash で background 実行して」と指示した場合
- 出力を即 grep / 解析したい短命スクリプト(
curl,git log,ls等)
判断基準: 「実行後ずっと起動し続けるか?」「Yes」ならこのスキル、「No」なら通常の bash。
ただし oretachi 設定の 「AI からの background コマンドを oretachi ターミナルで起動する」が OFF の場合は、上記判定で「Yes」でも本スキルは使わず Claude Code の bash tool(run_in_background: true)でフォールバック起動する。Step 0 で確認する。
手順
Step 0: グローバル設定を確認する
最初に oretachi_get_app_options を呼び、戻り値の useOretachiTerminalForBackground を見る。
oretachi_get_app_options({})
// => { "useOretachiTerminalForBackground": true | false }
true: Step 1 以降に進む。false(既定): 本スキルは使わない。Claude Code の bash tool でrun_in_background: trueを指定して起動する(例:bashtool でpnpm devを実行、run_in_background: true)。oretachi UI には新タブを作らない。以降の Step もスキップ。
このトグルは oretachi 設定タブ → Terminal セクションの「AI からの background コマンドを oretachi ターミナルで起動する」に対応する。
Step 1: ワークツリーを特定する
oretachi_get_worktree_status を呼び、現在の作業ディレクトリ(PWD)と一致する worktree の name と id を取得する。
複数の worktree が同名だった場合は id も使う。
Step 2: ターミナルを起動してコマンドを流し込む
oretachi_spawn_terminal({
worktree_name: "<Step 1 で取得した name>",
worktree_id: "<必要なら id を指定>",
command: "pnpm dev",
title: "pnpm dev", // タブ表示名
reason: "ローカルサーバ起動" // ログ用メモ(任意)
})
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.
- 3mo ago First seen · 186 lines · 120 tokens per session scan A 2c4ff487a03f
background-command is a skill published in the GitHub repository ishida-supsys/oretachi (2 stars, last pushed 17d ago), licensed MIT. It adds 120 tokens to every session and 3,055 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
background-command compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| background-commandishida-supsys/oretachi | Skill | 2 | 17d ago | MIT | A | 120 | Claude Code |
| add-new-agent-supportskill-mill/agent-skill-porter | Skill | 25 | 8mo ago | none | A | 21 | Claude Code |
| neo4j-snowflake-graph-analytics-skillneo4j-contrib/neo4j-skills | Skill | 122 | 11d ago | MIT | A | 222 | Claude Code |
| neo4j-aura-agent-skillneo4j-contrib/neo4j-skills | Skill | 122 | 11d ago | MIT | A | 158 | Claude Code |
| neo4j-aura-graph-analytics-skillneo4j-contrib/neo4j-skills | Skill | 122 | 11d ago | MIT | A | 204 | Claude Code |
| neo4j-document-import-skillneo4j-contrib/neo4j-skills | Skill | 122 | 11d ago | MIT | A | 187 | Claude Code |
| neo4j-driver-dotnet-skillneo4j-contrib/neo4j-skills | Skill | 122 | 11d ago | MIT | A | 187 | Claude Code |