Ray's Knowledge Base
Unlock

rgit prints git's human output by default and agents ask for TOON with a flag Stale

Stale: Outdated: rgit now prints TOON by default under an agent harness (REQ-fqpsmc); human text only without a marker.

DecisionVerified 29 Sep 2026Holds project: rgit
Decision. The context, the choice, why, and the options that were turned down.

Context#

rgit aims to be a drop-in for git, but rgit diff gave a diffstat where git diff gives a patch, and rgit switched to TOON on its own when stdout was not a terminal.

Decision#

rgit prints git-identical human output by default, on a terminal or not. Agents get structured output only with --toon, --axi or --json. The old compact form stays behind --compact or rgit.compact=true. Next-step hints inside TOON output include --toon, so an agent that follows a hint keeps getting TOON. The skill, session hooks, README and agent docs tell agents to pass --toon.

Why#

The user: "first needs to be human. if agents wants to do it, use --toon or --axi (specify in skills or mcp or something)".

Rejected options#

  • Switching to TOON when stdout is not a terminal: removed, because scripts and people piping output expect git's text.

Evidence#

Commits b938581, aca5866, dc357fb. After them, plain status, diff, log, show and blame match git byte for byte (test plain_diff_show_log_status_blame_match_git).

Also found by searching

  • rgit diff prints a diffstat instead of a patch when piped
  • rgit output changes format when stdout is not a terminal
  • how do agents get structured TOON output from rgit
  • rgit --toon --json --compact flags, git identical human output default
  • rgit diff prints a diffstat instead of a patch like git diff
  • rgit output switches to TOON when stdout is piped, scripts get different text
  • how do agents get structured rgit output while humans see git-identical text?
  • rgit --toon --axi --json --compact flag, rgit.compact config, drop-in git replacement