Trellis

Context for AI Agents

Give your agent the evidence first.

Ask a coding agent for a retry change and it may see only the function in front of it. Connected to Trellis, it can find the other caller, the decision that constrains retries and the issue behind the request, and cite them in its proposal.

One request

One request, two answers.

Two engineers reviewing a printed draft change before accepting it.
Illustrative team scene · AI-generated

YouAdd retries to sendDelivery so timeouts stop failing deliveries.

Agent, with only the open file

I’ll wrap sendDelivery in a retry loop: three attempts with exponential backoff on any error, including timeouts.

  • A replay job also calls sendDelivery, so both paths now retry.
  • A retry without the original delivery key can deliver twice.
  • A timeout doesn’t mean the delivery failed.

Agent, connected to Trellis

kg_callerssendDelivery2 callers
deliverEvent       Function   call site line 27
replaySavedEvents  Function   call site line 63
kg_searchdelivery retriesdecision 014
“Preserve the event’s delivery key on another attempt. Enable automatic retries only for destinations with a confirmed duplicate-handling contract.”
kg_work_item_searchtimeout duplicateDL-217
“The destination recorded the event. Our worker saw a timeout. The later replay appeared as a second delivery.”

Two callers share this function, and decision 014 requires the same delivery key on every attempt. I propose retries off by default; on destinations that support the key, at most three attempts for rate limits and server errors. I’ve left timeouts out until DL-217 is reproduced.

Cites replaySavedEvents · 014-delivery-retries.md · DL-217

An illustrative repository, decision and issue; results are shortened. What comes back depends on the sources you connect and the search options you turn on. Free includes six connectors (GitHub, GitHub Actions, GitHub Issues, and Claude Code, Codex and Cursor sessions); paid plans include every connector.

Review

A person still decides

The proposal arrives with its sources, so the reviewer can check the claims instead of re-deriving them. The tools only read; nothing ships until someone on the team approves the change.

Review requestedRetry policy for sendDelivery

  • Done: Destination contract recognizes the same key on every attempt
  • Done: Attempt limit and backoff covered by tests
  • Open: Replay job behavior checked
  • Open: Lost-response case (DL-217) reproduced

Reviewer

“The proposal names the live worker. What changes for replay? Let’s check that path before we merge.”

Illustrative review; the checks and comment are invented for this example.

Your agent, your model

Works with the agent and model you choose

Connect a coding agent that supports MCP, such as Claude Code, Codex or Cursor. You choose the model and provider in that agent; Trellis supplies the code, documents and work items it has indexed from your sources.