{{if $.Static}}{{else}}{{end}} {{if $.Static}}{{else}}{{template "app-header" .}}{{end}}
{{if not $.Static}}{{icon "chevron-left"}}{{end}}

{{if .Session.Summary.AnalysisEnabled}}Report{{else}}Session{{end}}: {{.Session.Summary.SessionID}}

CWD: {{.Session.Summary.CWD}} Branch: {{.Session.Summary.GitBranch}} Mode: {{if .Session.Summary.ReviewMode}}{{.Session.Summary.ReviewMode}}{{else}}-{{end}} {{if eq .Session.Summary.ReviewMode "range"}} From: {{.Session.Summary.DiffFrom}} To: {{.Session.Summary.DiffTo}} {{end}} {{if eq .Session.Summary.ReviewMode "commit"}} Commit: {{.Session.Summary.DiffCommit}} {{end}} Model: {{.Session.Summary.Model}} {{if not .Session.Summary.AnalysisEnabled}}{{template "review-outcome" .Session.Summary}}{{end}}
{{if .Session.Summary.AnalysisEnabled}} {{end}}
{{if or (not .Analysis) .Static}}
{{if .Session.Summary.AnalysisEnabled}}
{{template "review-outcome" .Session.Summary}}
{{end}} {{if .Session.Summary.RunManifest}}

Coverage

Selected
{{.Session.Summary.SelectedCount}}
Completed
{{.Session.Summary.CompletedCount}}
Reused
{{.Session.Summary.ReusedCount}}
Failed
{{.Session.Summary.FailedCount}}
Waived
{{.Session.Summary.WaivedCount}}
{{end}}

Token Usage

Prompt Tokens
{{formatNumber .Session.TokenUsage.TotalPromptTokens}}
Completion Tokens
{{formatNumber .Session.TokenUsage.TotalCompletionTokens}}
Total Tokens
{{formatNumber (add .Session.TokenUsage.TotalPromptTokens .Session.TokenUsage.TotalCompletionTokens)}}
LLM Requests
{{formatNumber .Session.TokenUsage.RequestCount}}
{{if or .Session.TokenUsage.TotalCacheReadTokens .Session.TokenUsage.TotalCacheWriteTokens}}
Cache Read
{{formatNumber .Session.TokenUsage.TotalCacheReadTokens}}
Cache Write
{{formatNumber .Session.TokenUsage.TotalCacheWriteTokens}}
{{end}} {{if .Session.Summary.LLMFailures}}
LLM Failures
{{.Session.Summary.LLMFailures}}
{{end}}
{{with .Session.TokenUsage.FileTokenBreakdown}}
File breakdown {{countLabel (len .) "file" "files"}}
{{if or $.Session.TokenUsage.TotalCacheReadTokens $.Session.TokenUsage.TotalCacheWriteTokens}}{{end}} {{range .}} {{if or $.Session.TokenUsage.TotalCacheReadTokens $.Session.TokenUsage.TotalCacheWriteTokens}}{{end}} {{end}}
FilePromptCompletionCache ReadCache WriteTotal
{{sessionTaskLabel .FilePath | truncate 60}} {{formatNumber .PromptTokens}} {{formatNumber .CompletionTokens}}{{formatNumber .CacheReadTokens}}{{formatNumber .CacheWriteTokens}}{{formatNumber (add .PromptTokens .CompletionTokens)}}
{{template "pager" (dict "prefix" "token-breakdown" "label" "File breakdown pages")}}
{{end}}
{{if .Session.Comments}}

Review Comments ({{len .Session.Comments}} findings)

{{with severityCounts .Session.Comments}}
Severity: {{if .Critical}}{{end}} {{if .High}}{{end}} {{if .Medium}}{{end}} {{if .Low}}{{end}}
{{end}} {{with categoryCounts .Session.Comments}}
Category: {{if .Bug}}{{end}} {{if .Security}}{{end}} {{if .Performance}}{{end}} {{if .Maintainability}}{{end}} {{if .Test}}{{end}} {{if .Style}}{{end}} {{if .Documentation}}{{end}} {{if .Other}}{{end}}
{{end}}
{{range groupCommentsByFile .Session.Comments}} {{end}}
{{template "pager" (dict "prefix" "comments" "label" "Review comment pages")}}
{{end}} {{if .Session.Summary.FilesReviewed}}
Files Reviewed {{countLabel (len .Session.Summary.FilesReviewed) "file" "files"}}
    {{range .Session.Summary.FilesReviewed}}
  • {{.}}
  • {{end}}
{{template "pager" (dict "prefix" "files-reviewed" "label" "Reviewed file pages")}}
{{end}} {{if .Session.SessionTasks}}
Session Tasks {{countLabel (len .Session.SessionTasks) "task" "tasks"}}
{{range .Session.SessionTasks}} {{template "task-cards" .}} {{end}}
{{template "pager" (dict "prefix" "session-tasks" "label" "Session task pages")}}
{{end}} {{if .Session.Files}}
Conversations {{countLabel (len .Session.Files) "file" "files"}}
{{range .Session.Files}} {{template "task-cards" .}} {{end}}
{{template "pager" (dict "prefix" "conversations" "label" "Conversation pages")}}
{{end}}
{{end}} {{with .Analysis}}

Behavior and impact analysis

{{if .Status}}
Analysis status
{{if eq .Status "started"}}No final status{{else}}{{.Status}}{{end}}
{{end}} {{if .Comparison.ID}}
Changed files in scope
{{.InScope}}
Excluded changes
{{.Excluded}}
{{end}} {{if .DeclaredCompletion}}
Model assessment
{{.DeclaredCompletion}}
{{end}} {{if .Usage.TotalTokens}}
Total tokens
{{.Usage.TotalTokens}}
{{end}}
{{if .Notice}}

{{.Notice}}

{{end}} {{range .Errors}}

{{.}}

{{end}} {{if and .StopReason (ne .StopReason "none")}}

Stop reason: {{.StopReason}}

{{end}} {{if .Markdown}}
{{.Markdown}}
{{end}} {{if not $.Static}} {{if .ObservationIDs}}
Evidence {{len .CitedObservationIDs}} cited · {{len .ObservationIDs}} total
{{with .CitedObservationIDs}}{{template "evidence-group" (dict "title" "Cited in the report" "ids" . "selected" $.Analysis.Observation)}}{{end}} {{with .UncitedObservationIDs}}{{template "evidence-group" (dict "title" "Not cited in the report" "ids" . "selected" $.Analysis.Observation)}}{{end}}
{{end}} {{with .Observation}}

Evidence {{.ID}}

{{if .ToolName}}{{.ToolName}}{{end}}
{{if .Locations}}
    {{range .Locations}}
  • {{.Side}} · {{.Path}}{{if .StartLine}}:{{.StartLine}}{{if gt .EndLine .StartLine}}–{{.EndLine}}{{end}}{{end}}
  • {{end}}
{{end}}
{{.ReturnedContent}}
{{if .Truncated}}

Truncated result. {{.Continuation}}

{{end}}
{{end}} {{with .Requests}}
Conversations {{countLabel (len .) "request" "requests"}}
{{range .}}
{{template "request-header" .}} {{if eq .TaskType "memory_compression_task"}}Memory compression{{end}}
{{template "request-body" (dict "card" . "type" .TaskType)}}
{{end}}
{{template "pager" (dict "prefix" "analysis-conversations" "label" "Analysis request pages")}}
{{end}} {{if .HasTrace}}

Open execution log

{{end}} {{end}}
{{end}} {{if $.Static}}{{else}}{{end}}
{{define "breadcrumbs"}}/{{if $.Static}}{{.RepoName}}{{else}}{{.RepoName}}{{end}}/{{.Session.Summary.SessionID | truncate 12}}{{end}} {{define "review-outcome"}} Status: {{template "meta-status" .}} Files: {{.FileCount}} Duration: {{formatDuration .DurationSec}} {{end}} {{define "evidence-group"}}

{{.title}}

{{end}} {{/* Terminal-state rendering for the meta bar: classed by outcome, unclassed for unrecognized states. Invoked with .Session.Summary as dot. */}} {{define "meta-status"}}{{if .Aborted}}aborted{{else if .Legacy}}legacy{{else if eq .TerminalState "complete"}}complete{{else if eq .TerminalState "partial"}}partial{{else if eq .TerminalState "failed"}}failed{{else if eq .TerminalState "skipped"}}skipped{{else}}{{.TerminalState}}{{end}}{{end}} {{define "task-cards"}}
{{sessionTaskLabel .FilePath}} {{countLabel (cardCount .Tasks) "request" "requests"}}
{{range $tg := orderedTasks .Tasks}}

{{$tg.Type}}

{{range $tg.Cards}}
{{template "request-header" .}}
{{template "request-body" (dict "card" . "type" $tg.Type)}}
{{end}}
{{end}}
{{end}} {{define "request-header"}} Request #{{.RequestNo}} {{if .Model}}{{.Model}}{{end}} {{if or .PromptTokens .CompletionTokens}}P:{{formatNumber .PromptTokens}} C:{{formatNumber .CompletionTokens}}{{if or .CacheReadTokens .CacheWriteTokens}} CR:{{formatNumber .CacheReadTokens}} CW:{{formatNumber .CacheWriteTokens}}{{end}}{{end}} {{if .DurationMs}}{{.DurationMs}}ms{{end}} {{if .Error}}Error{{end}} {{end}} {{define "request-body"}} {{$type := .type}}{{with $card := .card}} {{if .Error}}
Error Detail
{{.Error}}
{{end}} {{with .ReasoningContent}}
Reasoning
{{.}}
{{end}} {{if isGrouping $type}} {{with groupingView $card}}
{{range .}}
{{.Label}}
{{end}}
{{with $card.ResponseContent}}
Raw LLM response
{{.}}
{{end}} {{else}} {{template "responseBody" $card.ResponseContent}} {{end}} {{else}} {{template "responseBody" .ResponseContent}} {{end}} {{if .ToolCalls}}
Tool Calls ({{len .ToolCalls}})
{{range .ToolCalls}}
{{.Name}} {{if .DurationMs}}{{.DurationMs}}ms{{end}} {{if not .Ok}}Failed{{end}}
Show Details
{{.Arguments}}
{{if .Result}}
{{.Result}}
{{end}}
{{end}}
{{end}} {{end}} {{end}} {{define "responseBody"}} {{with .}}
{{.}}
{{end}} {{end}}