Skip to content

feat: nudgec trace-diff — compare two traces (v1.2) - #22

Merged
NekomyaDev merged 6 commits into
mainfrom
feature/trace-diff
Jul 29, 2026
Merged

NekomyaDev merged 6 commits into
mainfrom
feature/trace-diff

Conversation

@NekomyaDev

Copy link
Copy Markdown
Owner

nudgec trace-diff <a.jsonl> <b.jsonl> — v1.2, Door 1+2

The "what changed when I edited the prompt?" command. Run the agent before and after a change, diff the traces:

records   8 -> 8
llm calls 5 -> 5   tool calls 0 -> 0
tokens    3978 -> 3890 (-88)   (in 1540 -> 1520, out 2438 -> 2370)
cost      $0.0000 -> $0.0000
repairs   2 -> 0 (-2)

#1 llm.call mimo:mimo-v2.5
  outcome   schema_violation -> ok
  output    CHANGED
    - "**Summary:** Urban heat islands are areas within…"
    + "{"summary": "Urban heat islands are localized…"}"

What it reports

  • Totals table — records, llm/tool calls, tokens (in/out split), cost, repair count, all with signed deltas
  • Per-record deltas — outcome flips, token/cost drift, changed outputs with -/+ previews; records only in A or only in B
  • Lenient parsing (invalid lines skipped) — schema enforcement stays trace-check's job; diff is an inspection tool

Tests (4)

  • identical traces → "traces identical"
  • changed output + cost/token deltas formatted correctly
  • length mismatch → "only in A/B"
  • repair totals delta

Zero-dep, terminal-only — pairs with trace-view (visual) as the quick terminal answer.

@NekomyaDev
NekomyaDev merged commit 3e0afd4 into main Jul 29, 2026
2 checks passed
@NekomyaDev
NekomyaDev deleted the feature/trace-diff branch July 29, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant