/tunaLlama:delegate-to-ollamafrom tunaLlama
Delegates coding tasks (generate, review, refactor, test) to a local/cloud LLM via tunaLlama MCP tools. Fetches project context for the subagent, then verifies output.
Ships in tunaLlama. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
tuna_* MCP tools delegate coding work to a local/cloud LLM. This is the
Opus-with-Sonnet-subagent pattern: a smaller model handles the actual code
generation, while you stay the architect.
The local LLM's window is smaller than yours, so the architect's job before delegation is fetching the context the subagent lacks. Use them when:
The user asks for code generation and you have clear requirements.
Use tuna_generate_code instead of generating the code yourself.
The user asks to review or analyze a file.
Use tuna_review_file (passing the path) instead of reading the file first.
The file content stays out of your context — major token savings.
The user asks for refactoring or test writing with a defined scope.
Use tuna_refactor_code or tuna_write_tests.
The user asks a question about multiple files.
Use tuna_analyze_files so file contents bypass your context.
tuna_recall to surface relevant past
work in this project. The local LLM doesn't share your conversation
context - relevant snippets help it avoid reinventing or contradicting.tunallama://memory/state should
auto-attach. If not visible, call tuna_load_memory once per session.tuna_* tool.tuna_fix_code with a specific error description.tuna_recall searches past delegation outputs (tuna_* calls). Useful
before delegating non-trivial work in a familiar codebase - the local LLM
gets relevant prior decisions and patterns that wouldn't otherwise reach
its context window. Korean queries work (Kiwi morpheme indexing).
Different from tuna_load_memory, which returns the curated state.md
(conventions + active decisions + constraints + anti-patterns) - the
project's rules of the road. Use both: state.md for rules, tuna_recall
for relevant past work.
~/.tunallama/projects/<hash>/state.md holds the project's conventions /
active decisions / constraints / anti-patterns.
Important (v0.5.1 measurement): MCP resource tunallama://memory/state
auto-attach does NOT work in current Claude Code or Codex CLI versions. The
SessionStart hook (Phase 8) outputs state content via stdout but is not yet
universally honored.
Action required: call tuna_load_memory once at session start before
any delegation - if you don't, you'll miss the project's
Constraints / Anti-patterns and the local LLM will repeat known mistakes.
Honor Constraints and avoid Anti-patterns observed in delegation
prompts - the local LLM will only see them if you include them in the
spec or recall_prefix.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
llm-delegation, local-llm, tunallama, context-fetching, code-generation
npx claudepluginhub hang-in/tunallama --plugin tunaLlamaOther plugins' skills for the same job