delegar-ollama
Skill by MauricioPerera
Launches and verifies any Ollama-served model in headless mode through `ollama launch claude`. It is a base layer for other skills that delegate work to a model via Ollama.
Install delegar-ollama
Built from the published package, never by AI.
git clone --depth 1 https://github.com/MauricioPerera/KDD /tmp/KDD && mkdir -p ~/.claude/skills && cp -r /tmp/KDD/skills/delegar-ollama ~/.claude/skills/delegar-ollamaRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/MauricioPerera/KDD /tmp/KDD && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/KDD/skills/delegar-ollama ~/.gemini/antigravity-cli/skills/delegar-ollamaAntigravity 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
delegar-ollama is a base skill that explains how to run any model served by Ollama, such as glm-5.2:cloud or kimi-k2.7-code:cloud, in headless mode through `ollama launch claude`. It covers the launch command, a liveness probe, the required `< /dev/null` redirect, a minimal MCP config, anti-hang rules, and checks that the model actually did the work instead of only saying it finished. It also covers quota behavior, such as empty or false "done" replies near the weekly limit.
The skill is written to be model and task agnostic. It does not decide what to delegate or validate CCDD contracts, since the source says that belongs to the skill that calls it. The source names pm-glm-ccdd and delegar-glm-ccdd as examples of skills that can build on it. It is aimed at developers who orchestrate Ollama-hosted models and need reliable background runs, with guidance on recovering work after a host crash and on limiting parallel runs.
Written from the project's SKILL.md and checked against it.
What it can do
- Headless launch commandRuns `ollama launch claude` with a prompt file, MCP config and permission flags.
- Liveness probeSends a short test prompt to confirm the model responds before real work.
- Tools probeAsks the model to create a file and checks the file exists, to detect degraded replies.
- Anti-hang rulesGuidance on foreground servers, background tasks and processes that must exit on their own.
- /goal variantKeeps the model working until a stated condition is met, with a required turn cap.
- Subagents and agent teamsNotes on using subagents and experimental agent teams inside a delegated run.
- Host crash recoverySteps to audit disk and relaunch the same spec after the host application dies.
- Staggered launchesSpacing launches 25-35 seconds apart to avoid a plan verification error.
What you need
- Ollama with access to cloud models (ollama signin)
- Claude Code CLI, run as claude through ollama launch claude
- Claude Code 2.1.139 or later for the /goal variant
Try asking
- Run a liveness probe on glm-5.2:cloud through ollama launch claude
- Launch kimi-k2.7-code:cloud headless with a prompt file and log output
- Check that the delegated model created the expected file, not just said LISTO
Good to know
- Cloud usage limits apply to the whole Ollama account, not to one model.
- agy (Antigravity) and codex hang in non-interactive mode and should not be used for delegation.
- About 3 concurrent cloud models is the practical cap.
- Does not decide which task to delegate or validate CCDD contracts.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/delegar-ollama/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to delegar-ollama
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
delegar-ollama: common questions
Why must I add < /dev/null to the launch command?
Without it, claude waits for stdin and the launch exits with code 0 and no work done.
Why does an empty log not mean the run is stuck?
In headless -p mode the log is written only at the end. Check modification times of deliverables and build artifacts to see if the run is still active.
Does switching models fix a quota error?
No. The limit belongs to the Ollama account, so the source suggests restoring quota, waiting for the reset, or using a local model.
How do I install delegar-ollama?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is delegar-ollama free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is delegar-ollama safe to use?
It scores 61 of 100. Grades: maintenance A, licence A, quality C. 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 delegar-ollama?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
