AI agents and harnesses
CWCloud helps you build, deploy and operate AI agents for DevOps, platform engineering and the observability of production platforms. We don't only expose LLMs1: we develop and operate the harness around them (the loop, the tools, the guardrails and the telemetry), mostly in Go and Python.
What's a harness?β
A model alone only produces text. An agent needs a harness that:
- receives a trigger: a chat message, a GitLab issue comment, a webhook, a CRON, an alert...
- lets the model reason with instructions (we keep them as versioned markdown skills next to the code)
- exposes tools through MCP2 or the platform API, always with the permissions of the caller and never more
- loops on the tool results with a bounded number of rounds, then produces a final answer
- asks for a confirmation (preview first, then write) before any destructive action
- observes everything: audit of each call with the token usage, correlation IDs, OpenTelemetry traces and alerts
Building blocksβ
CLIs that are also MCP servers and agentsβ
All our CLIs written in Go share the same agentic harness. Each one can be used as:
- an MCP server (
ai mcp) exposing its commands as tools. Forcwc, the tool definitions are generated on the fly from the CLI commands, so every new subcommand becomes a tool without extra work - a terminal agent (
ai agent) which runs the tool-calling loop against the MCP server with the LLM provider of your choice - a web agent (
ai web-agent) exposed over HTTP, which can be used as a GitLab webhook triggered by issue comments, or registered as a CWCloud AI adapter
| CLI | Scope | Documentation |
|---|---|---|
cwc | The whole CWCloud platform | tutorial |
qwctl | Quickwit logs and traces, Alertmanager-compatible alerting | tutorial |
edtctl | Dynatrace (extends dtctl), Alertmanager-compatible alerting | tutorial |
cwclock | Time tracking | tutorial |
cwc ai mcp
cwc ai agent -p "List my instances that are not running" -s "http://127.0.0.1:8080/mcp" --provider anthropic
You'll find more details in these blogposts:
- CWCloud MCP server and AI agent
- CWCloud AI web agent
- CWCloud AI agent as GitLab webhook
- Quickwit CLI and CWCloud AI
CWCloud AI (CWAI)β
CWAI exposes the LLMs behind a normalized API and chat with conversation history and token usage accounting. Besides the built-in adapters, you can register external adapters (any HTTP endpoint such as one of our web agents) and share them with other users.
Serverless functions as agent runtimeβ
The low-code serverless engine lets you run agents and harnesses without managing any infrastructure:
- write your functions in Python, Go, JavaScript, Bash or with Blockly visual blocks
- trigger them over HTTP, webhooks or CRON
- push the results to HTTP, WebSocket or MQTT callbacks
- keep the state of your agents in the KV storage
- call the CWAI adapters (built-in or external) directly from your functions
Templated deploymentsβ
When an agent needs a long-running service (a self-hosted model, an MCP server, a vector database...), you can deploy it as a templated environment on virtual machines or Kubernetes, the GitOps way.
Interoperability with LLM providersβ
Your agents are not locked to a provider. Switching is a matter of a flag (--provider) or a configuration:
- Anthropic (Claude)
- OpenAI (GPT)
- Mistral AI
- DeepSeek
- Google (Gemini)
- OpenRouter
- self-hosted open source models: any OpenAI-compatible endpoint (Ollama, vLLM, LiteLLM...)
For example, to use a model served locally by Ollama:
cwc configure set openai_base_url "http://127.0.0.1:11434/v1"
cwc ai agent -p "Which DNS records are pointing to a deleted instance?" -s "http://127.0.0.1:8080/mcp" --provider openai -m "qwen3"
The CLIs are open source, but on premises instances of CWCloud need the Enterprise Edition (EE) to use the AI features. Please contact us for more information.