Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

incident.io 12 min read Case study mediumAdept

Lessons learned from building our first AI product

incident.io built suggested incident summaries with OpenAI: each time a responder posts an update, GPT proposes a new summary from the update, the Slack conversation and the previous summary, and a human accepts, edits or rejects it. Half of all summary updates are now AI-written. Suggestions are actioned 20% of the time; of those, 63% are accepted, 26% edited and 11% rejected, which is too little conviction to auto-apply summaries. Practical lessons: build a CLI to run prompts against real incident fixture files, force structured output with JSON mode (problem, impact, causes, steps to resolve), give one person uninterrupted time for trial-and-error prompt work, roll out to 10% of customers first, and involve legal early because adding OpenAI as a sub-processor needs customer notice. A shared prompt interface and a single RunPrompt entry point let later AI features reuse the same plumbing.

Related posts

  • We used GPT-4 during a hackathon—here's what we learned

    incident.io mediumAdept

    A two-day hackathon at incident.io prototyped GPT-3.5/GPT-4 features: incident handover summaries generated from full Slack channels, a reply-with-❓ jargon explainer, and natural-language incident filters. The team dropped all of them for the same reasons. Responses took 20-30 seconds, and the 4,096-token context limit covers prompt plus response, so only about 35% of a Slack channel fit. Filters needed huge name-to-ID mappings, and chunked 'summarize the summaries' workarounds would multiply latency. The other lessons were that prompt engineering is brittle, data-privacy controls would be needed before shipping, and latency and context size are the things to watch before revisiting.

  • Optimizing LLM prompts for low latency

    incident.io mediumAdept

    incident.io cut latency of an LLM prompt that plans Grafana dashboards for incident investigations from 11s to under 2.3s without changing its behaviour, mainly by shrinking output tokens. Dropping JSON reasoning fields halved output tokens (315 to 170) and saved about 40% latency. Replacing JSON dashboard definitions with a compact custom format cut input from 15k to 2k tokens but saved only about 20%. A terse non-JSON output format cut output tokens by a further 70% and latency by 60%, though the team held back from shipping it because models are more familiar with JSON and quality could suffer in subtle ways.

  • Building Investigations: what it takes to build an AI SRE

    incident.io mediumAdept

    Building a reliable AI SRE took incident.io two years, far longer than the first promising prototype suggested, and the hard work sat in four areas around the model. Accuracy is measured by backtesting against past incidents frozen in time, where the main difficulty is keeping future information (fix PRs, post-mortems, root-cause messages) from leaking into the inputs. The harness fans out across data sources and uses an adversarial agent to challenge each hypothesis; its findings data model went through five versions, from free-form essays to evidence-backed, discountable records written in waves. Heads-up messages must pass layered mechanical checks, 'vibe' checks and tone tuning, and are LLM-graded for novelty and accuracy. Telemetry queries are summarized and graphed for the agent, and a nightly 'Explore' process re-validates stored memories so they stay correct as the organization changes.

  • Tricks to fix stubborn prompts

    incident.io mediumAdept

    Six practical techniques fix prompts that resist the usual remedies. Split tasks that combine classification and explanation into separate, cheaper and parallelizable calls. Read the full prompt for contradictions, such as a user message saying a message "is related" that overrode the system instructions. Structure prompts with clear headers and the goal up front, have an LLM review prompts for hidden assumptions, and mark the most important rules explicitly. Try other models using your own evals rather than benchmarks; one suite went from 50% failing to 100% passing by switching from GPT-4o to Sonnet. Pre-process inputs, for example replacing merged_at timestamps with time_since_merged so the model doesn't have to calculate durations.

  • Break chatbot speed limits with speculative tool calls

    incident.io mediumAdept

    incident.io cut its incident chatbot's response latency by about 50% (saving 2-3s per interaction) by speculatively executing LLM tool calls in both directions. Tools are started in parallel with the main chat prompt when simple keyword matching suggests they will be needed, and the follow-up chat prompt is run optimistically by assuming the tool succeeded, then re-run on error. Side effects are prevented with a Go write barrier: speculative tools do all their LLM 'thinking' but block before writing until the main prompt confirms the call, otherwise the context is cancelled. The tradeoff is occasional wasted LLM spend, which effectively lets the team buy speed with money.

The quest for software engineering knowledge.

Look:
Layout: