ollama-agent-queue

Serialize local Ollama model calls with a queue and callback files.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/CivicOSInstitute/civicos-institute.github.io --skill ollama-agent-queue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ollama-agent-queue
Source: https://github.com/CivicOSInstitute/civicos-institute.github.io/tree/main/skills/ollama-agent-queue
Command: npx skills add https://github.com/CivicOSInstitute/civicos-institute.github.io --skill ollama-agent-queue

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Queue manager for serializing local Ollama invocations; ensures only one model call runs at a time across skills to prevent VRAM saturation and stalls.

Core Features & Use Cases

  • Enforces one-at-a-time execution via a queue and queue.lock.
  • Writes structured results to callback files for caller polling.
  • Supports pause/resume/clear controls and offline handling for Ollama outages.

Quick Start

Enqueue a request from another skill and poll for results via the callback file.

Frequently Asked Questions about ollama-agent-queue

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent local Ollama model calls from stalling due to VRAM saturation?

Serialize local Ollama model calls using a queue manager to ensure only one invocation runs at a time, preventing VRAM saturation and stalls across multiple skills.

How do I serialize concurrent Ollama agent invocations across different skills?

Serialize concurrent Ollama agent invocations by enqueuing requests into a queue.json file and using a queue.lock to enforce one-at-a-time execution across skills.

How do I retrieve results from a queued local model call?

Retrieve queued local model call results by polling structured callback files written by the queue manager after the serialized execution completes.

Can I pause and resume a queue of Ollama agent calls?

Pause and resume a queue of Ollama agent calls using built-in status commands, which also support clearing the queue and handling offline Ollama outages.

What happens if Ollama goes offline while processing the queue?

If Ollama goes offline while processing the queue, the queue manager handles the outage through timeout and error handling, keeping queued requests intact for later resumption.

Does queue serialization work with multiple skills calling the local model simultaneously?

Queue serialization works with multiple skills calling the local model simultaneously by coordinating cross-skill requests, ensuring sequential execution via a lock file and callback polling.