Skip to main content
connic

Keep the agent code.
Stop running the stack around it.

Your team stops maintaining the infrastructure around each agent and spends the time on the agents themselves. Move them over one at a time, from any framework, and keep your tool code as it is.

platform / contract-review!214

Move contract-review to connic

Merged

−525lines of infrastructure removed

tools/contracts.pyunchanged

Removed files

worker/queue_consumer.py−112
k8s/deployment.yaml−84
scripts/deploy.sh−63

Four agents off Kubernetes, and no cluster left to maintain

An insurance group's platform team ran contract review and three other agents on its own Kubernetes cluster, each with a queue worker and a deploy script. They moved the agents to connic one at a time while the old services kept running. The tool code came along unchanged, and the contracts database stayed in their network.

More examples

  • Callers move over one at a time while the old service stays up

    The moved agent runs on staging with its own webhook URL. Callers switch over one by one, and the old service keeps running until the last one has moved.

  • The contracts database stays in your network

    A bridge container next to the database connects out to connic. Security approves one allowed host and no new inbound rules.

  • Month-end renewals checked overnight, without scaling a cluster

    Every contract up for renewal lands in a queue at night. connic runs as many at once as your limit allows, and legal ops reviews only the flagged ones in the morning.

The infrastructure around each agent becomes connic's job.

Most of a self-hosted agent project is code and config around a few files of agent logic. Each piece has a counterpart on connic.

Self-hosted
Your agent code
On connic
Your agent code
connic

Images and manifests

Self-hosted: Dockerfile, image builds and cluster manifests

On connic: connic installs requirements.txt and builds each deployment from a push or connic deploy

See reliability, latency and cost without your own monitoring stack.

connic records every run, so the figures you pulled from your tracing and metrics tools are on each agent's page and in dashboards.

  • Success rate

    Successful and failed runs per agent, with every failure linked to its trace.

  • Latency

    How long runs take per agent, on average and for the slowest ones.

  • Cost per agent

    Model cost per agent, with alerts and hard limits per environment or agent.

  • Queue depth

    Queued runs and the oldest waiting run per environment. On enterprise, run drains forward them to your own monitoring.

A release that fails its tests doesn't go live.

Every deploy runs your tests first, and they can check each merge request too. A deployment with a failing case stays inactive while the current one keeps serving.

Rollback without a rebuild
Activate an earlier deployment, and it serves again with the connectors it declared.
Secrets per environment, changes on record
Variables are stored encrypted per environment, and the audit log records who changed what.
Model calls in the EU
connic/* models run in the EU, and your existing provider keys keep working.
#231 · Shorter playbook prompt
code.example.com/platform/contract-review/merge-requests/231
platform / contract-review
Shorter playbook prompt #231
Openshorter-prompt → main · opened by jonas.weber
Pipeline failed
connic/pr-tests1 of 10 test(s) failedDetails
Merge blocked until connic/pr-tests passes.
Merge

Your tool code moves over.

The prompt, model and tool list become one agent file, your provider key keeps working, and the tool functions keep their bodies. On LangChain or Google ADK, connic migrate writes both files for you.

Tools stay plain functions
A tool is a function with type hints and a docstring. Framework decorators come off, and the logic stays as it is.
LangChain and Google ADK in one command
connic migrate converts agents, tools, static prompts and model names, lints the result and lists what still needs work in a migration report.
Only a variable changes
CONTRACTS_DB_HOST now holds the bridge hostname of contracts-db, set in the environment's variables. The Postgres client and queries stay the same.
agents/contract-review.yaml
version: "1.0"
name: contract-review
description: "Flags clauses that break the legal playbook"
model: openai/gpt-6.2-sol
fallback_model: connic/mistral-large-4-0
max_concurrent_runs: 20
system_prompt: |
  Check the contract against the legal playbook.
  Flag every clause that breaks it, with the clause number.
tools:
  - contracts.fetch_contract
  - contracts.find_clauses
  - contracts.flag_risk
tools/contracts.py
import os

import psycopg

def fetch_contract(contract_id: str) -> dict:
    """Return a contract's title and full text.

    Args:
        contract_id: Contract ID from the review request
    """
    with psycopg.connect(
        host=os.environ["CONTRACTS_DB_HOST"],
        port=5432,
        dbname="contracts",
        user="reviewer",
        password=os.environ["CONTRACTS_DB_PASSWORD"],
    ) as conn:
        row = conn.execute(
            "SELECT title, body FROM contracts WHERE id = %s", (contract_id,)
        ).fetchone()
    return {"title": row[0], "body": row[1]}

Frequently Asked Questions

Start with one agent. Move its tool functions over and write the agent file, or run connic migrate on a LangChain or Google ADK project. Test it, deploy it to staging, then point one caller at it while your other agents keep running where they are.

Tool functions keep their bodies, and prompts move into the agent YAML. Framework wiring such as graphs and the HTTP server is replaced by sequential agents, sessions and connectors.

Through a connic bridge running in that network. It opens an outbound connection to connic, and tools connect through a bridge hostname. The database never needs a public endpoint.

With a fallback model set, the run switches to it after the first failed request. Without one, the request is retried with backoff. Finished tool calls keep their results either way, and switched runs are marked so you can find them later.

Tools and business logic are plain code that runs anywhere. The agent YAML, connector files and connic's helper functions are specific to connic and would need adapting on another platform.

Compare the whole stack: compute, cluster upkeep, CI, tracing tools and on-call time against your connic plan and usage. The pricing page lists the plans, and the usage page shows model cost per agent once it runs.