Skip to content

feat: semantic diff explainer analysis and CLI command#67

Open
marcus wants to merge 1 commit intomainfrom
feat/semantic-diff
Open

feat: semantic diff explainer analysis and CLI command#67
marcus wants to merge 1 commit intomainfrom
feat/semantic-diff

Conversation

@marcus
Copy link
Owner

@marcus marcus commented Mar 22, 2026

Summary

  • Add internal/analysis/semanticdiff/ package that extracts git diffs, classifies each change by semantic category (feature, bugfix, refactor, dependency-update, config, test, docs, cleanup) using heuristics on file paths, commit messages, and diff patterns, and generates structured markdown/JSON reports
  • Add nightshift semantic-diff CLI command with --since, --base, --head, --json, --save flags
  • Enrich TaskSemanticDiff description in the task registry with structured instructions for AI agent orchestration

Test plan

  • Unit tests for numstat parsing, classification heuristics, report generation, and highlight detection (21 tests, all passing)
  • go build ./... passes
  • go vet ./... passes
  • gofmt clean

Nightshift-Task: semantic-diff

🤖 Generated with Claude Code


Automated by nightshift

Implement heuristic-based semantic classification of git diffs into
categories (feature, bugfix, refactor, deps, config, test, docs, cleanup)
with structured markdown and JSON reporting. Enrich the TaskSemanticDiff
description with structured agent instructions.

Nightshift-Task: semantic-diff
Nightshift-Ref: https://github.com/marcus/nightshift

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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