Beyond the Chatbot: Event-Driven Agents in Action
A GitHub webhook-triggered agent workflow automatically detects "I finished the tutorial" pull requests on Docker's sample repos, generates an encouraging comment, and closes them without any chat interface. It is built with the TypeScript Mastra framework, local Qwen3 (analysis and execution) and Gemma3 (comment generation) models via Docker Model Runner, and the GitHub MCP server exposed through Docker MCP Gateway with tools filtered down to reduce context size, all wired together in Docker Compose. Key lessons: prompt iteration is still hard, small local models are easy to swap and compare via Compose, and deterministic steps like posting a comment and closing a PR are more reliable done programmatically than by an agent.
Related posts
- Breaking Free From AI Vendor Lock-in: Integrating GitHub Models with Docker cagent
Docker mediumAdeptDocker cagent, an open-source multi-agent runtime driven by declarative YAML, can use GitHub Models as a custom OpenAI-compatible provider. You point base_url at https://models.github.ai/inference and pass a GitHub personal access token as the API key, so one credential reaches models from OpenAI, Meta, Microsoft, Anthropic and DeepSeek. The walkthrough builds a podcast-generator agent whose root agent delegates to researcher and scriptwriter sub-agents that use DuckDuckGo and filesystem MCP servers through the Docker MCP gateway. The agent is then shared through Docker Hub with cagent push, pull and run.
- Building AI Agents with Docker MCP Toolkit: A Developer’s Real-World Setup
Docker mediumAdeptA GitHub repository question-answering agent is built by running the GitHub MCP Gateway (docker/mcp-gateway) as a container under Docker Compose and connecting a Python agent to it over streamable-http via MCPTools. The gateway lists files, fetches content and searches code, and GPT-4o reasons over the results. Setup takes a few commands: store a GitHub token with `docker mcp secret set`, run `docker compose up`, then run app.py. The main argument is that containerized MCP connectors keep integration code out of the agent and give consistent environments, and new tools such as Jira or Slack can be added as extra Compose services.
- Build a Multi-Agent System in 5 Minutes with cagent
Docker mediumAdeptcagent is an open-source Docker tool that defines multi-agent AI systems declaratively in a single YAML file. Each agent's model (OpenAI, Anthropic, Gemini or local via Docker Model Runner), instructions, MCP toolsets and sub-agents are specified there, and the runtime handles delegation and context passing. A three-agent example (coordinator, researcher with DuckDuckGo MCP, writer) runs with `cagent run` and can be pushed to Docker Hub so teammates run the identical setup. Example use cases include PR triage, research summarization and knowledge routing with PII redaction.
- Building AI agents made easy with Goose and Docker
Docker mediumAdeptA local, containerized AI agent can be assembled from Goose as the agent, Docker Model Runner serving a Qwen3 30B GGUF model through an OpenAI-compatible endpoint, and Docker MCP Gateway exposing a YouTube transcript tool over SSE, all wired together with Docker Compose. The walkthrough covers the Dockerfile (installing ttyd and Goose, baking in config.yaml and a .goosehints file for business logic), the compose models and services sections, and the Goose provider settings that point at model-runner.docker.internal rather than localhost. An optional cloudflared service exposes the browser-based ttyd session publicly. The setup is modular: models, MCP servers, prompt logic or even the agent framework can be swapped by editing config.
- From model to agent: Equipping the Responses API with a computer environment
OpenAI mediumAdept
OpenAI's Responses API now pairs with a shell tool and hosted container workspace so models can run multi-step agent workflows. The API orchestrates the loop itself: it streams command output back to the model, runs multiple commands concurrently in separate sessions, and truncates large outputs while keeping their beginning and end. Native compaction carries long-running sessions across context-window limits. The containers stage files and SQLite databases instead of stuffing prompts, route network egress through a sidecar proxy with allowlists and domain-scoped secret injection, and load versioned 'skills' bundles (SKILL.md plus resources) that the model explores via shell commands.