Skip to main content

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:

  1. receives a trigger: a chat message, a GitLab issue comment, a webhook, a CRON, an alert...
  2. lets the model reason with instructions (we keep them as versioned markdown skills next to the code)
  3. exposes tools through MCP2 or the platform API, always with the permissions of the caller and never more
  4. loops on the tool results with a bounded number of rounds, then produces a final answer
  5. asks for a confirmation (preview first, then write) before any destructive action
  6. 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. For cwc, 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
CLIScopeDocumentation
cwcThe whole CWCloud platformtutorial
qwctlQuickwit logs and traces, Alertmanager-compatible alertingtutorial
edtctlDynatrace (extends dtctl), Alertmanager-compatible alertingtutorial
cwclockTime trackingtutorial
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 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:

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"
warning

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.

Footnotes​

  1. Large language models ↩

  2. Model Context Protocol ↩