When an agent says 'fixed', inspect its file changes and tests rather than relying on its summary.

Caminho Solo context: This practical exercise complements The AI ran rg, git and npm: how to read the commands behind coding agents, with the original research and fuller walkthrough.

Why this question matters

You ask an agent to fix a form. The screen fills with rg --files, git diff, npm test. Sometimes there is no visible shell command at all, only a file-search tool or a patch operation. The ripgrep project provides the rg binary for fast recursive searching that respects ignore rules. OpenAI's published Codex prompting guide also recommends rg and rg --files when available. So "Claude uses rg, but Codex uses a different search program" is not a dependable distinction. What matters is the harness, available tools, operating system, project instructions and current task. One agent might run rg in a shell; another might use a specialised file-search tool. Both can search a project without requiring users to know the underlying implementation.

Try the smallest experiment

Step 1. In a practice repository, run git status --short before authorizing edits.

Step 2. Use rg --files to inventory searchable files and git diff --stat to scope changed files.

Step 3. Run git diff --check for whitespace errors; then run the project-specific tests and examine failures.

What to write down

git status --short rg --files git diff --stat git diff --check 

One failure mode to watch

A green formatter or a clean diff does not establish business correctness; review behavioral tests.

Primary references

How to judge your result

Keep the input, expected result and actual observation together. Check the failure case before using this workflow with real accounts or production data.

Editorial disclosure: Fully AI-generated adaptation of the published Caminho Solo English article. Examples are suggested exercises, not claims of tests actually run.

Continue with Caminho Solo: The original guide and references add the broader context for this focused example.