Overview of GitHub Integration
developmentsignal → agent → PR → merge → signal resolved without requiring write permissions on the customer's repository.repository·development·Indexed 26 days ago
https://github.com/latitude-dev/latitude-llmA platform for building self-healing AI agents featuring observability (traces, sessions, tool calls), automated issue grouping (signals), and agent dispatch to coding agents like Claude Code or Cursor. Includes a Helm chart for Kubernetes deployment, Pulumi infrastructure for AWS, and generated SDKs for TypeScript and Python, as well as a Rust CLI.
signal → agent → PR → merge → signal resolved without requiring write permissions on the customer's repository.This document catalogs the various uses of AI.generate within the system. Each usage is associated with specific telemetry tags and metadata structures. Note that AI.embed and AI.rerank calls are not wrapped in capture and are therefore not exported to Latitude.
Key Resources:
packages/domain/ai/src/ai-generate-telemetry.ts.packages/domain/evaluations/src/runtime/ai-telemetry.ts.Flaggers are automatic issue detectors authored by Latitude. They inspect settled sessions (after conversation-intelligence analysis) to identify defects. When a defect is found, they write SYSTEM-authored annotation scores that integrate into the same signal-discovery pipeline as human annotations.
Detection occurs in two distinct passes:
Agent dispatch allows you to automatically trigger a hosted coding agent when a Latitude signal requires engineering follow-up. Latitude acts as the trigger and context provider by sending the agent a prompt containing the signalId, a deep link, and sample trace IDs. The agent then uses the Latitude MCP (Model Context Protocol) connection to investigate the signal, root-cause the issue, and implement a fix.
Workflow:
Note: Latitude does not run the fix or manage the agent's completion loop; it only provides the trigger and data.
The @tools/ai-benchmarks package is an offline benchmark harness for Latitude's AI features (including flaggers, annotators, and evaluation runtimes).
For each benchmark target, the harness:
fixtures/<target>.jsonl.baselines/<target>.json to surface prompt changes as a flip list.The Observability platform migration tool is a self-serve feature designed to backfill historical observability data into Latitude. It allows users to import traces, spans, session identity, user identity, tags, metadata, messages, usage, and cost from external platforms like Langfuse, LangSmith, or Braintrust.
Key characteristics:
import.source, import.job_id).The Latitude MCP is a remote, OAuth-authenticated, streamable HTTP Model Context Protocol server located at https://api.latitude.so/v1/mcp. It allows AI agents (such as Claude, Cursor, Codex, Gemini, Zed, and OpenCode) to read and manage your Latitude workspace. The server dynamically generates tools from the Latitude API, enabling agents to manage projects, members, keys, traces, annotations, scores, searches, signals, and datasets.
To manage or revoke access for connected agents, navigate to your organization's Settings → Keys and locate the OAuth Keys section.
Simulations serve as the CI and regression-testing layer for the Latitude reliability system. They allow you to execute agent behavior locally or in CI, evaluate it using Latitude issue monitors or custom code, and optionally upload traces and scores back to the Latitude platform for hosted reporting.
Key characteristics:
*.sim.* entrypoints.In the Latitude system, a trace is considered a member of a signal if it carries that signal's signal_id.
Membership vs. Verdict:
signal_id on a score. Occurrence reads (e.g., counting how many times a signal happened) use signal_id and do not filter by the verdict.passed): Indicates the result of an evaluation or annotation.passed = true means the behavior was present (the detector matched).passed = true means a thumbs-up, while passed = false means a thumbs-down.Writing Scores:
signal_id on a score only when the verdict is present (passed = true).signal_id is null.Flaggers are Latitude's built-in automatic annotators that check completed traces for common failure categories. When a match is found, Latitude adds an annotation to the trace. These annotations can be used for:
Data destinations allow customers to forward telemetry (like spans) out of Latitude into external systems such as analytics tools, data warehouses, or object storage.
Key architectural principles:
sweep process runs every minute to identify due destinations and enqueues sync runs.rate_limited category), and how to map data to the destination's event shape.Latitude production infrastructure is hosted in AWS eu-central-1. The architecture follows a multi-tier security model:
8080. Key services include:web: Authenticated console and auth routes.api: Public API.ingest: Telemetry ingestion.workers: Asynchronous worker processes and Bull Board routing.workflows: Temporal worker process.