Skip to content

5-Minute Quickstart

Follow this guide to spin up a local Triage stack and capture your first Go crash with AI diagnostics.


Clone the repository and start the Docker Compose cluster:

Terminal window
git clone https://github.com/algotyrnt/triage.git
cd triage
docker compose up --build -d

This starts:

  • triage-db (:5432): PostgreSQL 16 database.
  • triage-engine (:8080): Core engine serving telemetry and REST APIs.
  • triage-dashboard (:3000): Studio Dashboard UI.

Open http://localhost:3000 in your browser. The initial setup wizard will guide you through:

  1. GitHub App Manifest Creation (One-click app registration).
  2. Repository Installation (Grant access to your Go repositories).
  3. OAuth Linking (Configure GitHub login).
  4. Gemini AI API Key (Enter your Google AI Studio API key).
  5. Verification (Engine self-test).

Once configured, copy your project API key (e.g. tr_live_...).


Install the official Go SDK:

Terminal window
go get github.com/algotyrnt/triage/sdk/go

Wrap your HTTP handler:

package main
import (
"net/http"
triage "github.com/algotyrnt/triage/sdk/go"
)
func main() {
mux := http.NewServeMux()
// An example endpoint that panics:
mux.HandleFunc("/crash", func(w http.ResponseWriter, r *http.Request) {
var ptr *int
*ptr = 42 // Nil pointer dereference panic!
})
// Wrap mux with Triage middleware:
handler := triage.Middleware(
"tr_live_your_api_key",
triage.WithGatewayURL("http://localhost:8080/api/v1/telemetry"),
triage.WithRepo("myorg/myrepo"),
)(mux)
http.ListenAndServe(":8081", handler)
}

Run your Go application and trigger the crash:

Terminal window
curl http://localhost:8081/crash

Your HTTP client will receive a generic 500 Internal Server Error without any sensitive internals exposed.

Now switch back to your Studio Dashboard at http://localhost:3000:

  1. You will see a new CRITICAL incident.
  2. The isolated *ast.FuncDecl code block will be highlighted.
  3. Gemini AI will display the exact root cause and suggested drop-in git patch.