Skip to content
CAI
Software that uses CAICheck a score

sferik/x-cli

55.3

Adequate · 14 November 2026

11.2k

lines of production code

Rust

with Ruby

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add man page for the x command

A new manual page (man/x.1) has been added for the x command, documenting its command-line options (such as --color, --profile, --version, and --help) and listing all available subcommands including accounts, authorize, block, direct messages, follow, retweet, timeline, trends, and various user and place management features.

man · high confidence

Added Fish shell completions for the t CLI

Users of the Fish shell can now enable tab-completion for the \t\ command-line tool. A new \etc/t-completion.fish\ script has been added, providing completions for global options (such as \--host\, \--color\, \--no-ssl\, and \--profile\) and subcommands (including \accounts\, \authorize\, \block\, \direct\_messages\, \dm\, \favorite\, \follow\, \mentions\, \reply\, and others), along with their specific flags. To activate this feature, users must source the new file from their Fish configuration.

etc · high confidence

Legacy Ruby CLI project scaffolding and configuration

This change introduces the foundational structure for the legacy Ruby-based Twitter CLI, including the RuboCop configuration (targeting Ruby 3.2), the main executable entry point, the core CLI command definitions, and shell completion scripts for Bash and Zsh. It also adds the project's changelog, contributing guidelines, license, and README documentation to establish the development workflow and user onboarding process.

legacy · high confidence

Removals

Removal of Ruby-based CLI entry point

The Ruby-based command-line interface entry point (\bin/t\) has been removed from the repository. This file previously served as the executable wrapper to launch the \T::CLI\ application, handling argument passing and basic interrupt management. Its deletion indicates that the CLI functionality has been migrated to a different implementation or location, likely the Rust-based \x\ command mentioned in the commit history, rendering this specific Ruby script obsolete.

bin · high confidence

Removal of lib/t.rb entry point

The lib/t.rb file, which previously served as the library's entry point by requiring t/cli, has been deleted. This change removes the top-level require statement that loaded the CLI component, altering how the library is initialized or accessed from this specific path.

lib · high confidence

Removed legacy library source files

Deleted the core implementation files for the \lib/t\ library, including the CLI definition (\cli.rb\), configuration file handler (\rcfile.rb\), account management set (\set.rb\), and version constants (\version.rb\).

lib/t · high confidence

Behavioural changes

Port CLI from Ruby to Rust and rename from \`t\` to \`x\`

The project has been rewritten from Ruby to Rust, replacing the previous \t\ command-line interface with a new \x\ CLI. This change introduces a native binary built via Cargo, removing all Ruby dependencies (including the \twitter\ gem, Rake, and Travis CI configuration). The new tool provides a full command tree for the X API, supporting both V1.1 and V2 endpoints with automatic fallback, OAuth 1.0a and 2.0 authentication, streaming capabilities, and YAML-based configuration (defaulting to \\~/.xrc\). Users must now install Rust toolchain components and use \cargo\ for development and release processes.

(repo-wide), src · high confidence

Rewrote X API client from Ruby to Rust with inline OAuth 1.0a

The x-api library has been rewritten in Rust, replacing the previous Ruby implementation and the external oauth-client crate with an inline OAuth 1.0a signing module. This change introduces new HTTP backend abstractions, including support for both OAuth 1.0a user-context signing and OAuth 2 bearer tokens, along with retry logic for transient 5xx and 429 errors. Error messages from the API are now formatted to match the previous Ruby gem's behavior, ensuring consistent user-facing error reporting.

x-api · high confidence

Test coverage

Added integration and compatibility tests for the Rust CLI port; Removed legacy RSpec test infrastructure and RCFile specs.

Dependencies

234 commits updating dependencies (7 manifests)

A dependency / build maintenance change in (dependencies) — 234 commits (10 fixs), 7 files: “Add cryptographic signature”; “Add Coveralls for code coverage reporting”; “Remove local path override for x gem from Gemfile”; and 227 more.

(dependencies) · medium confidence · unverified

Housekeeping

Added empty tmp directory placeholder

An empty .gitkeep file was added to the tmp directory to ensure the folder is tracked by version control.

tmp · 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 → 55 (-2.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 68 → 56 (-11.8)
  • Architecture 97 → 97 (+0.1)
  • Maturity 52 → 52 (+0.0)
  • Readiness 52 → 57 (+5.1)
  • Security 66 → 53 (-13.6)

Resolved (17)

  • Duplicated block (10 lines × 2) (src/runner.rs)
  • Duplicated block (10 lines × 2) (src/runner.rs)
  • Duplicated block (12 lines × 2) (legacy/lib/t/requestable_api/mutations.rb)
  • Duplicated block (12 lines × 2) (src/runner.rs)
  • Duplicated block (15–16 lines × 2) (src/runner.rs)
  • Duplicated block (6 lines × 2) (legacy/lib/t/cli.rb)
  • Duplicated block (6 lines × 2) (src/runner.rs)
  • Duplicated block (6 lines × 5) (src/runner.rs)
  • Duplicated block (8 lines × 2) (legacy/lib/t/search.rb)
  • Medium CVE: RUSTSEC-2026-0382 (Cargo.lock)
  • Medium CVE: RUSTSEC-2026-0383 (Cargo.lock)
  • Medium advisory (unsound): RUSTSEC-2026-0386 (Cargo.lock)
  • Medium vulnerability: [GHSA redacted] (Cargo.lock)
  • Medium vulnerability: RUSTSEC-2026-0258 (Cargo.lock)
  • Medium vulnerability: RUSTSEC-2026-0338 (Cargo.lock)
  • Members sharing a duplicated core (5 members, 50+ identical tokens) (src/runner.rs)
  • No ADRs found

New (17)

  • Duplicated block (10 lines × 2) (src/runner.rs)
  • Duplicated block (6 lines × 2) (src/runner.rs)
  • Duplicated block (6 lines × 5) (src/runner.rs)
  • Edited copies of one member (3 members, 14+ corresponding lines) (x-api/src/backend.rs)
  • Edited copies of one member (3 members, 7+ corresponding lines) (legacy/lib/t/cli.rb)
  • Edited copies of one member (4 members, 13+ corresponding lines) (legacy/lib/t/cli.rb)
  • Edited copy of a member (11 corresponding lines) (legacy/lib/t/printable.rb)
  • Edited copy of a member (11 corresponding lines) (legacy/lib/t/stream.rb)
  • Edited copy of a member (19 corresponding lines) (legacy/lib/t/search.rb)
  • Edited copy of a member (19 corresponding lines) (x-api/src/backend.rs)
  • Edited copy of a member (21 corresponding lines) (x-api/src/oauth1.rs)
  • Edited copy of a member (3 corresponding lines) (legacy/lib/t/cli.rb)
  • Edited copy of a member (3 corresponding lines) (legacy/lib/t/cli.rb)
  • Edited copy of a member (37 corresponding lines) (src/runner.rs)
  • Edited copy of a member (6 corresponding lines) (legacy/lib/t/cli.rb)
  • Members sharing a duplicated core (5 members, 50+ identical tokens) (src/runner.rs)
  • No ADRs found (Cargo.toml)

Changes since last survey

  • 7 commits — 7 feature/other, 0 fixes

By area

  • (root) — 3 commits
  • legacy/test — 2 commits
  • legacy/lib — 1 commit
  • legacy/t.gemspec — 1 commit

Notable commits

  • change: Build the legacy CLI on the object layer of the x gem
  • change: Load the version file with require_relative
  • change: Port the legacy CLI to the released x 1.0 API
  • change: Remove the commands for endpoints X no longer serves
  • change: Update Cargo dependencies
  • change: Update rustls to 0.23.46
  • change: Update the changelogs to Keep a Changelog 2.0.0

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

Survey your own repository

sferik/x-cli 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 3eff00e0ea44fb058660bac7b1d730065cb86b05 — 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.