local-agency
БесплатноЗапускает вложенные скриптыНе проверенUse when the adopter asks to delegate to local agents (OpenCode / OSS agency) against a READY local runtime instead of orchestrator-session subagents.
от iTestFlow★ 32 звезды на GitHubОб этом скилле
Local agency (OpenCode)
Optional local coding agency path. Not a workflow owner; select the canonical workflow in execution workflows first.
Local agency vs session agents
| Path | When | Owner |
|---|---|---|
| Session subagents / Task | Default orchestrator labor on the host | Host adapter + delegation |
| Local agency (this skill) | Adopter asked for OpenCode / local OSS agency against local weights | This skill + READY runtime |
Hard rails (never regress)
- Prefer a READY local runtime: FreeToken (
:1919), then Ollama / LM Studio / llamacpp via local-openai-compat, then Colibri (:8000) via colibri (frontier MoE; prefer FreeToken for coding agency). - Configure OpenCode with ephemeral
OPENCODE_CONFIG/OPENCODE_CONFIG_CONTENTthat setsenabled_providersto the READY local provider. OpenCode merges global config; the allowlist keeps other providers out of that process.--pureonly disables external plugins. - Never write into durable
~/.config/opencode(helper refuses those paths), neverft launch/ft serve, never start local servers from CE. - Do not silently fall back to cloud OmniRoute. Missing local runtime:
tell the operator; continue with session agents /
SOLO/ OmniRoute only when the adopter explicitly asked for that path. - Do not install OpenCode from this skill. Operator install stays on vendor docs (README third-party table).
- Installer / doctor / status must not fail because OpenCode or a local runtime is missing.
- Never bind or probe a non-loopback URL from ChaosEngine.
- ROG FreeToken bind: Task/box writers must not claim FreeToken.
dispatch.py resolve --prefer freetokenandrequire_rog_freetoken.pyfail closed unless the hostname looks like ROG, cwd is the operator ROG checkout (see local-agency guide (repo-onlychaos-engine/guides/local-agency.md)), orCE_ALLOW_BOX_LOCAL_AGENCY=1. Process-owner Shell withmachineIdon ROG is mandatory for ROG FreeToken/OpenCode writers. Do not dispatch those writers via Task until Grok Bot exposesmachineIdto Task/executor Shell. Diagnostic:assert_parent_rog_shell.py. Clear error when FreeToken is not READY on this host.
Probe → resolve → ephemeral OpenCode
Helper:
chaos-engine/skills/local-agency/scripts/dispatch.py. ROG gate: require_rog_freetoken.py.
python3 .chaos-engine/skills/local-agency/scripts/dispatch.py resolve
python3 .chaos-engine/skills/local-agency/scripts/dispatch.py --prefer freetoken config
python3 .chaos-engine/skills/local-agency/scripts/dispatch.py argv --prompt '…' --workdir '<worktree>'
resolve ranks FreeToken, then OpenAI-compat peers, then Colibri. Use --prefer colibri when the adopter asked for Colibri. On READY, config /
argv emit ephemeral OpenCode material (OPENCODE_CONFIG path). Run OpenCode
yourself with that env; do not persist the config into the durable user file.
argv defaults include --pure and --variant (medium; use low or
medium for tool loops). --no-pure exists for callers that already isolate
plugins. --pure still only disables plugins.
CE brief (design turns)
For design/spec-shaped local turns, build a locator-only system brief with ce_brief.py or via dispatch:
python3 .chaos-engine/skills/local-agency/scripts/dispatch.py brief --json
python3 .chaos-engine/skills/local-agency/scripts/dispatch.py --prefer llamacpp config --with-ce-brief
python3 .chaos-engine/skills/local-agency/scripts/dispatch.py --prefer llamacpp chat --prompt '…' --with-ce-brief
Do not dump full SKILL bodies into the model context.
Unit/eval contracts: ce-brief-unit-fixtures.json.
CE project pointers (OpenCode preflight)
Before emitting config / argv OpenCode material, dispatch.py fail-closes unless the
target worktree has ChaosEngine project pointers:
AGENTS.md.agents/skills/chaos-engine/(install-generated skill adapter)
--pure only disables external plugins; it does not load ChaosEngine and does not
replace those pointers. Missing pointers → state=UNHEALTHY with ce_pointers.missing.
Dispatch modes
--mode mechanical (default for small local coding models / 7B tool loops): treat the
prompt as one bounded apply command; do not auto-attach CE brief (still allowed via
--with-ce-brief).
--mode design: attach the locator-only CE brief (same as --with-ce-brief) for richer
design/spec turns. Prefer this only when the host coach wants a design draft, not for
mechanical apply.sh loops.
Design/spec turns must follow
Установить local-agency в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл local-agency?
Use when the adopter asks to delegate to local agents (OpenCode / OSS agency) against a READY local runtime instead of orchestrator-session subagents.
Как установить скилл local-agency?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл local-agency запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic