비용 한도 설정 및 검증 가능한 증거를 통해 코딩 에이전트가 병렬 서브태스크를 시작할 수 있도록 지원하는 로컬 위임 스케줄러입니다.
다른 이름 tedin7/subtask, subtask-mcp
- 스타
- 0
- Tools
- 5
- 다운로드, 30일
- 2,058
- 최신 버전
- 0.5.9
- 마지막 커밋
- 2026년 11월 14일
- 라이선스
- MIT
subtask MCP란?
subtask은(는) MCP server입니다. 비용 한도 설정 및 검증 가능한 증거를 통해 코딩 에이전트가 병렬 서브태스크를 시작할 수 있도록 지원하는 로컬 위임 스케줄러입니다. 5개 도구를 제공합니다. 예: context_refs, invariants, allowed_paths.
프로젝트 README에서 생성된 요약
subtask MCP server 정보
복잡하고 병렬적인 작업을 실행해야 하는 코딩 에이전트는 subtask를 사용하여 전문 엔진에 작업을 위임할 수 있습니다. 이 로컬 스케줄러를 사용하면 Claude Code, Codex, Kimi Code 또는 OpenCode와 같은 도구가 여러 서브태스크를 동시에 시작하고, 비용 한도로 관리하며, 완료 시 검증 가능한 요약을 받을 수 있습니다. 이 도구는 MCP server 및 CLI로 작동하며, 검색, 테스트 및 실험이 메인 호출 컨텍스트와 격리되도록 서로 다른 프로세스 간의 리소스를 관리합니다.
사용자는 sonnet-api, haiku-api, opus-api, codex, opencode-go, kimi, dsh를 포함한 다양한 엔진 중에서 선택할 수 있습니다. 시스템은 호스트 환경을 보호하기 위해 worktree, sandbox, bubblewrap을 통한 isolated와 같은 다양한 격리 수준을 지원합니다. 개발자는 start_many 및 wait 명령을 사용하여 비효율적인 폴링 루프를 예산 예약 및 증거 기반 결과가 포함된 구조화된 워크플로우로 대체할 수 있습니다. 서버는 모든 작업이 단순한 주장이 아닌 종료 코드 및 관찰된 명령과 같이 검증 가능한 증거를 바탕으로 수행되도록 보장합니다.
활용 사례
- 1테스트를 통한 코드 변경 사항 검증에이전트에게 결과 커밋에 대해 특정 검증 명령을 실행하도록 지시하여 작업이 성공했는지 확인할 수 있습니다.
- 2자동 git bisect 수행병렬 worktree에서 커밋을 테스트하여 회귀를 발생시킨 특정 커밋을 식별합니다.
- 3합의 기반 문제 해결 실행동일한 프롬프트를 여러 엔진에서 실행하여 솔루션을 비교하고 단일 검증된 답변을 찾습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
subtask MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 subtask MCP 설치
$ claude mcp add subtask -- uvx subtask-mcpCursor에 subtask MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"subtask": {
"command": "uvx",
"args": [
"subtask-mcp"
]
}
}
}VS Code에 subtask MCP 설치
.vscode/mcp.json
{
"servers": {
"subtask": {
"type": "stdio",
"command": "uvx",
"args": [
"subtask-mcp"
]
}
}
}VS Code CLI에 subtask MCP 설치
$ code --add-mcp '{"name":"subtask","type":"stdio","command":"uvx","args":["subtask-mcp"]}'Claude Desktop에 subtask MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"subtask": {
"command": "uvx",
"args": [
"subtask-mcp"
]
}
}
}Codex에 subtask MCP 설치
$ codex mcp add subtask -- uvx subtask-mcpCodex config.toml에 subtask MCP 설치
~/.codex/config.toml
[mcp_servers.subtask] command = "uvx" args = ["subtask-mcp"]
Gemini CLI에 subtask MCP 설치
$ gemini mcp add -s user subtask uvx -- subtask-mcpGemini settings.json에 subtask MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"subtask": {
"command": "uvx",
"args": [
"subtask-mcp"
]
}
}
}subtask MCP 도구 5
README에서 감지됨context_refsinvariantsallowed_pathsoracle_cmdtier
| context_refs | — | |
| invariants | — | |
| allowed_paths | — | |
| oracle_cmd | — | |
| tier | — |
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능tedin7/subtask is public and reachablegithub.com/tedin7/subtask ↗통과
- 패키지가 이 저장소를 소스로 명시subtask-mcp names tedin7/subtask as sourcepypi.org/project/subtask-mcp/ ↗통과
- 빌드 출처(Sigstore 증명)Sigstore attestation for subtask-mcppypi.org/project/subtask-mcp/ ↗통과
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-12github.com/tedin7/subtask ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from subtask-mcp통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음32 resolved dependencies checked; no critical advisoryosv.dev ↗통과
- 모델에 대한 숨겨진 지침 없음5 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨No tool named like delete, drop or exec통과
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기subtask
A local delegation scheduler for coding agents. One MCP server (and a twin CLI) lets Claude Code, Codex, Kimi Code or OpenCode start work in parallel, wait for it with a single call, and read back a short summary with evidence. It picks an engine that can take the job, books money and slots safely across processes, and says honestly how isolated each run is.
start_many([{task: "Fix the flaky test in tests/test_sync.py", repo: "/src/app", verify: "pytest -q tests/test_sync.py"},
{task: "List every caller of parse_date()", kind: "read", readonly: true, cwd: "/src/app"}])
-> st-4f2a91 started · sonnet-api · branch subtask/st-4f2a91 · sandbox
st-77c0de started · haiku-api · /src/app · readonly
wait(["st-4f2a91", "st-77c0de"]) # Claude Code shows: Subtask · 01:16 · 1/2 ended — st-4f2a91 running tests: pytest -q
-> st-4f2a91 done · sonnet-api · 6m · 0.412$ · verified · ...
## Summary (≤10 lines: the answer, files, commits, tests, what is left)
result("st-4f2a91", evidence=True) # JSON: base/head, changed files, observed commands, verify exit code, cost
Why
- Save the caller's context. The worker's search, test runs and dead ends stay in its own session; the caller reads about ten lines.
- Few round trips.
start_many+ onewaitreplace a polling loop. - Use whatever has room.
engine="auto"filters engines that can enforce the requested isolation, are installed, fit the budget and have quota, then ranks them with an explicit utility (subtask routing explain). - Money is a primitive. Paid engines reserve their budget before any work, under one lock with the slot; every reservation is closed exactly once.
- Evidence, not claims.
verify="..."runs your check on the commit the worker left;result(evidence=True)separates what subtask observed from what the worker reported.
Install
The distribution is subtask-mcp (the PyPI name subtask is an unrelated
project). Full guide, per client, with native commands: docs/install.md.
uv tool install "git+https://github.com/tedin7/subtask@main" # or: uv tool install /path/to/checkout
subtask install --client all # prints the plan for every detected client
subtask install --client all --yes # applies it: MCP server + skill
subtask doctor --client all # checks app, config entry and a real handshake
subtask --version reports the installed Git commit when the installer records it.
For local, editable, or registry installations without Git provenance it reports commit unknown.
Jev provides advisory workflow checks automatically, or only when requested:
subtask jev # policy, key availability and the current process's budget limits
subtask jev setup # guided setup; key input is hidden
subtask jev auto # automatic routing, feedback and final delivery advice
subtask jev manual # explicit review submissions only
subtask jev off # block new Jev submissions
New installations start in manual mode. The policy and private key are shared by
the configured clients. Enter keys through hidden subtask jev setup input or
explicit stdin, never chat, argv or tool arguments. In auto, start_many
appends routing advice, reply includes feedback advice, and final wait / result
include evidence consistency and risk triage. Read this advice together with the existing
baseline output. Routing and feedback preserve authorized work and worker
instructions. manual requires explicit submissions; off blocks new ones.
These extra checks share the existing cap and deduplicate identical content.
skipped, blocked and unknown are not passes; never retry an unknown send.
Distinguish raw provider_choice from filtered assessment: a failed verification
can veto supported deterministically, without being a Jev finding. Suggested
next actions grant no authority, replace no checks, and trigger no automatic model
fallback, merge, retry or release. See Jev setup and limits
and the workflow study and its limits. These
instructions describe the upcoming release; they do not certify a live install.
Claude Code plugin: claude plugin marketplace add tedin7/subtask then
claude plugin install subtask@subtask. Codex: codex plugin marketplace add tedin7/subtask.
API engines read ANTHROPIC_API_KEY from ~/.config/subtask/env (chmod 600).
Engines
| engine | pays with | read-only | isolation it can enforce |
|---|---|---|---|
haiku-api, sonnet-api, opus-api |
API key, monthly cap | yes | sandbox (Claude Code OS sandbox) |
codex |
Codex login (quota from local session files) | yes | sandbox (workspace-write), isolated |
opencode-go |
opencode-go subscription | no | worktree, isolated |
kimi |
Kimi login | no | worktree, isolated |
dsh |
DeepSeek key, same cap (subtask-mcp[dsh]) |
no | worktree |
opencode |
OpenCode default provider (manual only) | no | worktree, isolated |
Add an engine without touching the core: an EngineAdapter registered under the
subtask.engines entry point (see CONTRIBUTING.md).
Isolation, honestly
worktree(default): a git worktree and branch per writing job. It prevents collisions; it is not a host sandbox.sandbox: the engine's own sandbox. Same user: a guard rail.isolated: bubblewrap. Read-only system, writable worktree and git dir only, a private HOME with only the engine's own state. Needsbwrap.untrusted: sandbox or stronger, and no network for the worker's commands.
A job that cannot get the policy it asked for is refused, never downgraded. Output is redacted for common secret formats before it is saved or shown; redaction is a second layer, not a guarantee. See SECURITY.md.
Tools (MCP) and CLI
| tool | what it does |
|---|---|
start(task, kind, repo, cwd, files, readonly, engine, max_usd, effort, base, max_turns, policy, verify, isolation, max_retries, adversarial, context_refs, auto_repomap, tier, invariants, allowed_paths, symbol_scope, oracle_cmd) |
start one job (see below) |
start_many(tasks) |
start several; partial success is listed per item. Items with id and depends_on form a group (grp-…) run as a DAG without extra turns; foreach=<parent id> makes one copy per item of the parent's .subtask/fanout.json (at most 8), and dependents wait for every copy; after="any" starts when one parent succeeded |
integrate(ids, action="apply", auto_resolve=False) |
worktree jobs back: diff, apply (all or nothing, uncommitted), discard; auto_resolve starts a reconciliation job on conflict |
consensus(prompt, engines, verify_cmd, isolation="worktree") |
2 to 4 engines solve it blind in their own worktrees, then one job compares their diffs as anonymous patches and writes one solution, checked by verify_cmd and the invariants; returns a group id |
bisect(good_ref, bad_ref, test_cmd, parallelism=4, auto_fix=False) |
first commit that makes test_cmd fail, testing up to parallelism (max 8) commits per round in temporary worktrees; returns the commit, author and diff; auto_fix starts a verified fix job |
map_reduce(glob_pattern, prompt_template, batch_size=5, concurrency=3, verify_cmd, isolation="worktree") |
one job per batch of files ({{files}} in the template), at most concurrency at a time; returns a group id |
wait(ids, timeout=300, mode="all", since=None, stall_timeout=None) |
block until they end (any: the first; first_success: the first done and verified, the others are stopped); returns early on a stalled job; progress notifications while waiting; since cursor for clients without progress |
steer(id, action, instruction=None) |
hint (queued, sent as a reply when the attempt ends), abort, retry (fresh job with the instruction) |
inspect(id, tail=80, grep=None) |
raw log lines, only when the summary is not enough |
status(id) / result(id, full, evidence) |
one line / summary or full text or JSON envelope |
reply(id, message) / stop(id) / cleanup(id) |
continue / stop the work / remove a clean worktree (branch kept) |
engines() |
capacity per engine with source, freshness and confidence, plus spend |
Options of start:
isolation="worktree": own worktree and branch (likerepo=), plusSUBTASK_PORT(from 18100),SUBTASK_IDand a privateTMPDIR. The result listsfiles_modifiedanddiff_stat. This also applies toreadonly=True;repo=alone keeps read-only jobs in the original directory. The CLI exposes the same choice throughstart --isolation worktree.verify+max_retries: a failed check resumes the job with the output; when every retry fails, a worktree goes back to its best attempt (scored from "N passed / N failed").adversarial=True: a Breaker job writes edge-case tests from the spec only; they are copied into the Builder's worktree and run withverify.context_refs:file:PATH[:A-B],git:diff[:REF],subtask:ID:summary|diff, resolved before start.auto_repomap=Trueadds tracked files with their top-level symbols (cached per HEAD).invariants(default["no_test_deletion", "no_suppression"],[]turns them off): beforeverifycounts, test functions may not decrease, no new skip/xfail markers, no new# type: ignore,# noqaor# pragma: no cover. A violation is a failed check with the reason, so a retry sees it.allowed_paths: files changed outside these paths are put back and the revert is committed.symbol_scope=["path.py::name", ...]: only those top-level functions or classes may change in those files.integratethen merges several jobs' edits to one Python file symbol by symbol; overlaps, import or constant changes, and symbols changed on the target meanwhile are a conflict, never a guess.oracle_cmd: after a passingverify, runs the command on the job's base and on its result at the same time and reports whether exit code and stdout match, plusduration_ms_before,duration_ms_after,speedup_pct.tier:fast(effort low),deep(effort high, kind hard),free_only. Past 75% of the monthly cap,autoandbalancedroute automatically selected engines to free engines and the reply carriesbudget_warning. For these tiers, an explicitly selected paid engine remains allowed with a warning.fastanddeepdo not change or emit this warning at this threshold. Explicitfree_onlystill rejects paid engines. The monthly cap remains subject to the separate budget admission check.- Kimi's default K3-256k and supported managed model aliases accept
low,highandmaxeffort. Subtask mapsmediumtohighandxhightomaxfor those models, which can consume more quota. New sessions retain the effective effort when resumed; custom model aliases keep the requested value.
Memory: when a check fails and a retry fixes it, subtask stores a short lesson for that repository in
$SUBTASK_HOME/engrams/ (at most 50, least recently used dropped). Jobs on the same paths get the top three.
Groups have a blackboard file for shared notes; new notes show in wait(since=...).
CLI only: subtask board [--json] (the view the OpenCode plugin renders), subtask doctor, gc [--apply], du, roi, routing explain|calibrate,
watch ID..., install, uninstall, and --model, --no-sandbox, --untrusted on start.
The gc preview reads recorded job states without settling workers; jobs recorded as active are kept.
gc does not calculate file sizes, so its output reports folder counts rather than reclaimed bytes.
Run subtask du separately for disk usage; scanning large stores can take time.
A copy with files in .reports is kept until a collector leaves a receipt, the regular file .reports/.collected (any content; its mtime must be at least that of the newest report). Empty .reports needs no receipt.
Progress in the chat
| client | during a wait |
|---|---|
| Claude Code 2.1 (TUI) | live line under the tool call, verified |
| OpenCode 2.0 | notifications received, not shown: use wait(since=...) |
| Kimi Code 2.1 | client does not request progress: wait(since=...) |
| Codex 0.162 | not yet verified (account at its usage limit) |
Details and evidence: docs/progress-matrix.md.
Settings
| variable | default |
|---|---|
SUBTASK_HOME |
~/.local/share/subtask (jobs, worktrees, ledger, telemetry) |
SUBTASK_ENV_FILE |
~/.config/subtask/env |
SUBTASK_MONTHLY_CAP_USD / SUBTASK_DEFAULT_MAX_USD / SUBTASK_MAX_JOB_USD |
180 / 2 / 20 |
SUBTASK_MAX_RUNNING |
4 (global across all processes) |
SUBTASK_ROUTING |
~/.config/subtask/routing.json (weights, "mode": "legacy") |
SUBTASK_JOB_RETENTION_DAYS / SUBTASK_TELEMETRY_DAYS |
30 / 90 |
SUBTASK_PROGRESS_MIN_S / SUBTASK_PROGRESS_HEARTBEAT_S |
2 / 10 |
SUBTASK_CODEX_JOB_HOME |
~/.codex-job, used if it has config.toml; otherwise a sanitized ~/.codex-jobs is prepared |
SUBTASK_CODEX_KEEP_MCP |
unset; set to keep the normal Codex home and its MCP servers |
Costs of API engines come from the SDK's estimate; a run whose real cost is
unknown is charged its whole reservation. Telemetry stays on this machine.
An existing job home is used as-is: its configuration and shared authentication
are managed by the operator. An explicit CODEX_HOME takes precedence. For
isolated jobs, the chosen home must be an absolute directory narrower than HOME.
Platforms
Linux: supported. macOS: degraded (no /proc start times for liveness, no
bwrap: isolated refused). Windows: not supported (fcntl).
Documentation
Architecture · Requirements matrix · Benefits and measurements · Benchmark protocol · Install · Releasing · Contributing
License
MIT
subtask MCP 질문
subtask MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add subtask -- uvx subtask-mcp를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
subtask MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
subtask MCP는 어떤 도구를 제공하나요?
5개 도구를 제공합니다. 예: context_refs, invariants, allowed_paths, oracle_cmd, tier.
코딩 에이전트에게 서브태스크는 어떤 역할을 하나요?
Claude Code 또는 Codex와 같은 에이전트가 작업을 병렬로 시작하고, 완료를 기다린 후 증거가 포함된 요약본을 받을 수 있도록 하는 로컬 위임 스케줄러 역할을 합니다.
서버에서 비용과 예산을 어떻게 관리하나요?
서버는 비용을 기본 단위로 취급하여, 작업 시작 전 유료 엔진을 위한 예산을 예약하고 모든 예약이 정확히 한 번씩 종료되도록 보장합니다.
서브태스크가 수행한 작업을 검증할 수 있나요?
네, verify 옵션을 사용하여 작업자가 남긴 커밋에 대해 체크를 실행할 수 있으며, 결과 도구를 통해 관찰된 명령 및 종료 코드를 포함한 증거를 확인할 수 있습니다.