local-agency
Skill by ShaftHQ
Delegates bounded coding work to local OSS agents through OpenCode, using a READY local runtime such as FreeToken, Ollama, LM Studio, llamacpp or Colibri. Meant for adopters who ask for OpenCode or local agency.
Install local-agency
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ShaftHQ/SHAFT_ENGINE /tmp/SHAFT_ENGINE && mkdir -p ~/.claude/skills && cp -r /tmp/SHAFT_ENGINE/chaos-engine/skills/local-agency ~/.claude/skills/local-agencyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ShaftHQ/SHAFT_ENGINE /tmp/SHAFT_ENGINE && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/SHAFT_ENGINE/chaos-engine/skills/local-agency ~/.gemini/antigravity-cli/skills/local-agencyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
local-agency is an agent skill for routing coding work to OpenCode running against local model runtimes. A helper script, dispatch.py, probes which runtimes are READY and ranks FreeToken first, then OpenAI-compatible peers such as Ollama and LM Studio, then Colibri. It emits an ephemeral OPENCODE_CONFIG that allows only the chosen local provider, so the durable user config is never changed.
The skill defines two dispatch modes. A mechanical mode treats the prompt as one bounded apply command, and a design mode attaches a locator-only brief for spec turns. The skill does not install OpenCode, start servers, or silently fall back to cloud OmniRoute. It is aimed at operators and coding assistants who want to hand bulk or private edits to a local model while a coach checks the output.
Written from the project's SKILL.md and checked against it.
What it can do
- Runtime resolveProbes local runtimes and ranks FreeToken, OpenAI-compatible peers, then Colibri.
- Ephemeral OpenCode configEmits OPENCODE_CONFIG material that limits OpenCode to the READY local provider.
- Mechanical dispatchRuns a small local coder on one bounded apply script with a default mode.
- Design dispatchAttaches a locator-only CE brief for richer design and spec turns.
- Session token usageRecords OpenAI-compatible usage from chat calls to the session ledger by runtime class.
- Coach loop guidanceDescribes how a coach verifies artifacts from a local writer before it finishes.
- ROG FreeToken gateFails closed for FreeToken writers unless the host and checkout checks pass.
What you need
- OpenCode, installed by the operator from vendor docs
- A READY local runtime such as FreeToken, Ollama, LM Studio, llamacpp or Colibri
- Python 3 to run dispatch.py
Try asking
- Resolve which local runtime is READY and show the OpenCode config for it.
- Run a mechanical dispatch of apply.sh to a local coder in my worktree.
- Draft a design spec with the local agency design mode and a CE brief.
Good to know
- OpenCode must be installed separately by the operator; the skill does not install it.
- Never falls back to cloud OmniRoute unless the adopter explicitly asks for it.
- The OpenCode bash timeout is 120 seconds, so apply scripts must be idempotent.
- FreeToken writers on ROG must use the process-owner shell, not Task dispatch.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: chaos-engine/skills/local-agency/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to local-agency
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
local-agency: common questions
Does local-agency install OpenCode?
No. The source says OpenCode installation stays on vendor docs, and the operator handles it.
Will it send my coding tasks to a cloud model if no local runtime is ready?
No. The source says it must not silently fall back to cloud OmniRoute and only continues on other paths when the adopter explicitly asks.
Does the skill save OpenCode settings to my user config?
No. It uses ephemeral OPENCODE_CONFIG settings, and the helper refuses to persist them under the durable user config directory.
How do I install local-agency?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is local-agency free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is local-agency safe to use?
It scores 73 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to local-agency?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
