How Medic works

A rules-first diagnostic engine that shows evidence, not guesswork. Here is exactly what happens when you paste your logs.

What inputs we analyze

Medic accepts any text-based log output. Paste directly from your terminal, or upload files. We support common config formats too.

๐Ÿ–ฅ๏ธ

Terminal Output

Copy-paste raw terminal output, including ANSI colors and escape codes โ€” we strip those automatically.

๐Ÿ“‹

Error Logs

Application logs, stack traces, and error messages from any AI agent runtime โ€” structured or unstructured.

โš™๏ธ

Config Files

Upload JSON, YAML, TOML, or .env config files. We cross-reference config values with log errors for more accurate diagnosis.

๐Ÿ“

File Uploads

Drop multiple files at once. We support .txt, .log, .md, .json, .yaml, .yml, .toml, .env, and more.

How rules and parsing work together

We do not feed your logs to an LLM and hope for the best. Instead, we use a multi-step deterministic pipeline.

๐Ÿงน

Parse & Normalize

We clean the input, strip artifacts, identify line types, and extract structured entities โ€” timestamps, error codes, providers, model names, file paths, and API key patterns.

๐Ÿงฉ

Pattern Match

25+ diagnostic rules fire against the parsed data. Each rule has specific trigger patterns, exclusion conditions, and severity levels. Only rules that match are reported.

๐Ÿ“Š

Score Confidence

Confidence is based on how many trigger patterns matched within each rule. More evidence = higher confidence. We never claim certainty without evidence.

๐Ÿ“

Generate Report

Results are formatted into a structured diagnosis: what happened, why, evidence excerpts, root cause chain, fix recommendations, and a copyable support summary.

Why this is different from generic AI chat

โœ— Generic AI Chat

  • โ€ข Guesses from context
  • โ€ข No evidence cited
  • โ€ข Gives 5-10 "maybe try this" suggestions
  • โ€ข No confidence level
  • โ€ข Your logs are sent to a third party
  • โ€ข Different answer each time

โœ“ Medic

  • โ€ข Matches known patterns deterministically
  • โ€ข Shows exact evidence from your logs
  • โ€ข One best fix + alternatives + "do not"
  • โ€ข Shows confidence level (high/medium/low)
  • โ€ข Logs never leave your browser
  • โ€ข Same input = same output

Your data stays with you

Medic runs entirely in your web browser. There is no backend server processing your logs. The analysis engine is a client-side JavaScript module that runs locally on your device.

๐Ÿ”’

Zero Transmission

No HTTP requests are made with your log data. Everything runs in the browser.

๐Ÿ—‘๏ธ

Nothing Stored

We do not save your logs anywhere. Close the tab and the data is gone.

๐Ÿ‘๏ธ

Fully Auditable

The analysis engine is open-source. You can inspect exactly what it does.

๐Ÿ” Try It Now โ€” Analyze Logs