Skip to content
CAI
Software that uses CAICheck a score

Wilfred/difftastic

56.9

Adequate · 14 November 2026

15.5k

lines of production code

Rust

with JavaScript

6

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add Asciinema player styles to homepage

The homepage now includes the CSS styles for the Asciinema terminal player (\asciinema-player.css\), enabling the rendering of terminal session recordings with features like playback controls, cursor handling, and fullscreen support. A corresponding minified JavaScript file was also updated to support this functionality.

_homepage/home\static · high confidence

Add Chinese (zh-CN) manual translation

Users can now access the Difftastic manual in Simplified Chinese. This change introduces a new translation directory containing the full set of documentation pages (including installation, usage, Git/Mercurial integration, and language support) and the necessary mdBook configuration to build and deploy the localized site.

translation/zh-CN/manual-zh-CN · high confidence

Add LaTeX parser support

The system now includes a vendored tree-sitter parser for LaTeX, enabling syntax highlighting and parsing for LaTeX files. This is implemented by adding a new symlink to the tree-sitter-latex source directory within the vendored parsers location.

_vendored\parsers · high confidence

Add syntax highlighting for Ada, C\#, CMake, devicetree, HCL, Janet, Julia, LaTeX, Newick, Pascal, and Protocol Buffers

New highlight query files have been added to the \vendored\_parsers/highlights\ directory for Ada, C\#, CMake, devicetree, HCL, Janet, Julia, LaTeX, Newick, Pascal, and Protocol Buffers. These additions enable syntax highlighting for these languages, with specific support for Newick tree files and devicetrees, and updated highlighting for CMake and Pascal to align with their respective tree-sitter grammars.

_vendored\parsers/highlights · high confidence

Add vendored tree-sitter grammars for Janet and Kotlin

Added vendored tree-sitter parser grammars for the Janet (janet-simple) and Kotlin languages. These additions provide the underlying parsing logic, including grammar definitions, generated C parsers, and language bindings for Node.js and Rust, enabling syntax highlighting and code intelligence for these languages within the editor.

_vendored\parsers/tree-sitter-janet-simple · high confidence

Initial project scaffolding and configuration

Established the foundational repository structure for difftastic, including the Rust toolchain configuration (rust-toolchain.toml), build scripts (build.rs), and development tooling (justfile, .rustfmt.toml, .typos.toml, clippy.toml). Added essential metadata and documentation files such as the MIT License, CHANGELOG, README, man page, and AI policy guidelines. Configured version control settings via .gitignore and .gitattributes to exclude generated files and sample data from language statistics, and set up code coverage reporting via .codecov.yml.

(repo-wide) · high confidence

Support for diffing files with merge conflict markers

Difftastic can now accept a single file containing Git-style merge conflict markers (e.g., \<\<\<\<\<\<\<, =======, \>\>\>\>\>\>\>) as an argument. When invoked this way, the tool parses the conflict markers to reconstruct the left-hand side (LHS) and right-hand side (RHS) file contents, including optional base content if present, and displays a diff between the two conflicting versions. This allows users to directly compare the two sides of a merge conflict without manually extracting the content first.

src · high confidence

Architecture

Refactor display module into dedicated submodules

The display logic has been reorganized from a monolithic structure into distinct submodules (context, hunks, inline, json, side\_by\_side, style) to improve code maintainability and separation of concerns. This change introduces specific implementations for inline and side-by-side rendering modes, a new JSON output format, and refined styling and context calculation utilities, without altering the external user-facing behavior of the diff tool.

src/display · high confidence

Behavioural changes

Homepage content reorganized into versioned demo files

The project's homepage HTML has been moved into a subdirectory structure, with distinct versions (1 and 2) now available in demo\_files. This change reorganizes the static site assets, likely to support different iterations or configurations of the landing page content while maintaining the same visual theme and structure.

_demo\files · medium confidence

Homepage redesign with dark theme and new content sections

The homepage has been completely rewritten to feature a dark theme (using Bootstrap's data-bs-theme), improved mobile responsiveness, and new content sections including a 60-second demo, programming language support logos, and detailed feature cards. The page now includes OpenGraph meta tags for better social sharing, a favicon, and external CSS styling.

homepage · high confidence

Manual build system updated to mdBook 0.5 with version embedding and UI tweaks

The manual now uses mdBook 0.5, which introduces a new configuration structure in book.toml. Users will see the difftastic version number automatically embedded in the generated documentation via a new preprocessor script. The user interface has been adjusted to remove copy buttons from code samples, and redirects are configured to map old URLs (like 'getting\_started.html') to their new locations (like 'installation.html').

manual · high confidence

Refactored diff engine into a modular diff crate with optimized graph-based tree diffing

The diff logic has been reorganized into a dedicated \src/diff\ module, separating concerns into distinct files for change tracking (\changes.rs\), graph construction (\graph.rs\), shortest-path calculation (\shortest\_path.rs\), and slider correction (\sliders.rs\). The core algorithm now uses a directed acyclic graph and Dijkstra's algorithm to find optimal diffs between ASTs, replacing the previous approach. Linear content diffing now utilizes the \imara-diff\ crate for line-oriented diffs. The change map now explicitly tracks \ChangeKind\ variants like \IgnoredPunctuation\ and \ReplacedString\, and slider logic has been updated to handle nested delimiters more effectively based on language-specific preferences.

src/diff · high confidence

Rewrite of the parsing subsystem with tree-sitter integration

The \src/parse\ module has been completely rewritten to use tree-sitter for syntax analysis, replacing the previous implementation. This change introduces a new \Language\ enum and \guess\_language\ module to detect file types based on extensions and content, supporting a wide range of languages including Ada, Apex, Assembly, Bash, C, C++, C\#, Clojure, CMake, Common Lisp, CSS, Dart, DeviceTree, Dockerfile, Elixir, Elm, Emacs Lisp, Erlang, Fish, F\#, Fortran, Gleam, Go, Haskell, HCL, HTML, Janet, Java, JavaScript (JSX), JSON, Julia, Kotlin, LaTeX, Lua, Make, Newick, Nix, Objective-C, OCaml, Pascal, Perl, PHP, Protocol Buffers, Python, QML, R, Racket, Ruby, Rust, Scala, Scheme, Smali, Solidity, SQL, Swift, TOML, TypeScript (TSX), Verilog, VHDL, XML, YAML, and Zig. The new parser architecture defines a \Syntax\ tree with \Atom\ and \List\ nodes, configures language-specific atom nodes and delimiters via \TreeSitterConfig\, and supports sub-language parsing (e.g., JavaScript in HTML). It also includes features like language overrides, shebang detection, and improved word diffing heuristics.

src/parse · high confidence

Session model adds photo/video convenience properties and tightens photo URL type

The Session data class in the model package now exposes inline convenience properties hasPhoto, hasVideo, and hasPhotoOrVideo to simplify checking for media availability. Additionally, the photoUrl property has been changed from a nullable String to a non-nullable String, reflecting a stricter contract for session photo data.

repository · high confidence

Updated LaTeX parser to support more commands and environments

The vendored tree-sitter LaTeX parser has been regenerated and its build dependencies updated. The new parser.c file increases the state count to 4018 and token count to 390, adding support for a wider range of LaTeX commands (such as additional citation and bibliography commands) and environments (including more math and code blocks). Additionally, necessary header files for memory allocation and array handling have been added to ensure the parser builds correctly.

_vendored\parsers/tree-sitter-latex · high confidence

Updated demo files for Prettier and Difftastic

The demo files for Prettier and Difftastic have been updated. In the Prettier demo, the import statement for \mockable\ in \src/cli/format.js\ has been reformatted to use multi-line indentation. In the Difftastic demo, the \ConflictFiles\ struct in \src/conflicts.rs\ has been modified so that the \lhs\_name\ and \rhs\_name\ fields are now \Option\<String\>\ instead of \String\, reflecting a change in how merge conflict names are handled.

_demo\_files/1, demo\files/2 · medium confidence

Test coverage

Added CLI integration tests; Expanded sample file coverage for regression testing.

Dependencies

Initial release of difftastic 0.72.0 with extensive tree-sitter parser support

This entry marks the initial release of difftastic version 0.72.0, establishing the project's dependency baseline. The Cargo.toml defines the core structural diff engine with dependencies including clap 4.5.23 for CLI handling, tree-sitter 0.26.10 for syntax-aware parsing, and imara-diff for line-oriented diffing. It integrates a comprehensive suite of tree-sitter parsers (e.g., tree-sitter-python 0.25.0, tree-sitter-javascript 0.25.0, tree-sitter-rust-orchard 0.16.6) to enable syntax-aware diffs across dozens of languages. The release also includes vendored parser manifests for tree-sitter-kotlin and tree-sitter-janet-simple, locking in their specific build and dependency requirements.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 57 → 57 (-0.5)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 83 → 72 (-11.1)
  • Architecture 88 → 100 (+12.2)
  • Maturity 59 → 60 (+1.0)
  • Readiness 66 → 66 (-0.5)
  • Security 71 → 53 (-17.4)
  • Accessibility 47 → 52 (+5.4)
  • Performance 89 → 89 (+0.0)

Resolved (13)

  • Duplicated block (6 lines × 2) (demo_files/1/src/main.rs)
  • Duplicated block (6 lines × 2) (src/parse/tree_sitter_parser.rs)
  • Duplicated block (6 lines × 5) (src/parse/tree_sitter_parser.rs)
  • Duplicated block (6–9 lines × 3) (src/parse/tree_sitter_parser.rs)
  • Duplicated block (7–9 lines × 2) (src/parse/tree_sitter_parser.rs)
  • Duplicated block (9 lines × 2) (src/parse/tree_sitter_parser.rs)
  • Hotspot: src/diff/unchanged.rs (src/diff/unchanged.rs)
  • Hotspot: src/line_parser.rs (src/line_parser.rs)
  • Hotspot: src/main.rs (src/main.rs)
  • Hotspot: src/parse/tree_sitter_parser.rs (src/parse/tree_sitter_parser.rs)
  • No ADRs found
  • Off-boarding risk: anonymized user #1
  • Projects may be oversized for their cohesion

New (31)

  • Duplicated block (6 lines × 2) (src/parse/tree_sitter_parser.rs)
  • Duplicated block (6–17 lines × 5) (src/parse/tree_sitter_parser.rs)
  • Duplicated block (6–9 lines × 3) (src/parse/tree_sitter_parser.rs)
  • Duplicated block (7–9 lines × 2) (src/parse/tree_sitter_parser.rs)
  • Duplicated block (9 lines × 2) (src/parse/tree_sitter_parser.rs)
  • Edited copy of a member (10 corresponding lines) (src/parse/syntax.rs)
  • Edited copy of a member (12 corresponding lines) (src/diff/graph.rs)
  • Edited copy of a member (128 corresponding lines) (demo_files/1/src/main.rs)
  • Edited copy of a member (16 corresponding lines) (src/display/hunks.rs)
  • Edited copy of a member (21 corresponding lines) (src/diff/graph.rs)
  • Edited copy of a member (22 corresponding lines) (src/diff/sliders.rs)
  • Edited copy of a member (24 corresponding lines) (src/diff/sliders.rs)
  • Edited copy of a member (24 corresponding lines) (src/display/context.rs)
  • Edited copy of a member (37 corresponding lines) (src/display/context.rs)
  • Edited copy of a member (38 corresponding lines) (src/diff/sliders.rs)
  • Edited copy of a member (38 corresponding lines) (src/words.rs)
  • Edited copy of a member (4 corresponding lines) (demo_files/1/src/main.rs)
  • Edited copy of a member (46 corresponding lines) (src/diff/sliders.rs)
  • Low coverage: src/display/inline.rs (src/display/inline.rs)
  • Low coverage: src/display/json.rs (src/display/json.rs)
  • …and 11 more

Changes since last survey

  • 11 commits — 11 feature/other, 0 fixes

By area

  • (root) — 4 commits
  • homepage/home_static — 2 commits
  • homepage/index.html — 2 commits
  • .github/workflows — 1 commit
  • sample_files/compare.expected — 1 commit
  • src/display — 1 commit

Notable commits

  • change: Clarify changelog wording
  • change: Clip homepage screenshots to rounded wrapper borders
  • change: Document --override-binary and --dump-syntax-dot in the man page (#1105)
  • change: Ensure both LHS and RHS advance when pairing novel lines
  • change: Load the homepage wordmark font earlier
  • change: More doc strings
  • change: Release is out
  • change: Remove duplicate bottom margins from two homepage screenshots
  • change: Remove invalid unused CSS rule
  • change: Switch Python parser to tree-sitter-python-orchard (#1102)
  • change: Use macOS 15 runners in CI (#1107)

Architecture

  • Unchanged — 0 containers · 1 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

Wilfred/difftastic was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 87aad1aea4aacdf3cab68d2006e614d4994ece69 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-36d4cd83012f.