{"schemaVersion":"opencli.cli.v1","slug":"bat","name":"bat","shortName":"bat","binaryName":"bat","maker":{"slug":"sharkdp","name":"sharkdp","type":"individual","url":"https://github.com/sharkdp","officialPlatformMaker":false,"featuredBuilder":true},"category":"Shell Utilities","description":"File previews, syntax highlighting, and readable diffs from the terminal. Built by sharkdp.","tagline":"File previews, syntax highlighting, and readable diffs from the terminal.","install":{"packageManager":"brew","command":"brew install bat","packageName":null,"npmPackage":null,"brewFormula":"bat","brewCask":null,"crateName":null,"pypiPackage":null,"goPackage":null,"dockerImage":null},"verify":{"command":"bat --version","signal":"bat responds locally and is ready for the first real command."},"quickStart":"bat README.md","exampleWorkflow":["bat README.md"],"agent":{"readiness":{"label":"Human-first CLI","score":25,"reasons":["Supports non-interactive/scripted use."],"guardrails":["Prefer small commands and ask the agent to summarize plain text output."]},"packUrl":"https://opencli.co/cli/bat/agent.md","packMarkdown":"# OpenCLI Agent Pack: bat\n\nUse this when an AI agent needs to work with `bat`.\n\n## What this CLI is for\nFile previews, syntax highlighting, and readable diffs from the terminal. Built by sharkdp.\n\nBest for: file previews, syntax highlighting, and readable diffs from the terminal.\n\n## Agent readiness\nHuman-first CLI (25/100)\n- Supports non-interactive/scripted use.\n\n## Install\n```sh\nbrew install bat\n```\n\n## Verify before real work\n```sh\nbat --version\n```\nExpected signal: bat responds locally and is ready for the first real command.\n\n## Safe starting commands\n```sh\nbat --version\n```\n\n```sh\nbat README.md\n```\n\n## Guardrails for agents\n- Prefer small commands and ask the agent to summarize plain text output.\n\n## Suggested agent instruction\nYou may use bat (`bat`) for file previews, syntax highlighting, and readable diffs from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.\n\nSource: OpenCLI\n"},"fit":{"bestFor":"file previews, syntax highlighting, and readable diffs from the terminal.","useThisIf":"You work with shell utilities and want a fast terminal interface.","skipIf":"You don't work with shell utilities.","whatHappensNext":"Run `bat README.md` and see what comes back."},"capabilities":{"agentFriendly":false,"supportsJsonOutput":false,"supportsNonInteractive":true,"supportsDryRun":false,"requiresAuth":false,"requiresNetwork":false,"ciFriendly":false,"localFirst":false,"destructivePotential":"low"},"taxonomy":{"useCases":["File previews","Syntax highlighting","Readable diffs"],"aliases":["cat replacement"],"keywords":["preview files syntax"],"tags":["builder","shell-essential"]},"links":{"website":"https://github.com/sharkdp/bat","github":"https://github.com/sharkdp/bat","docs":"https://github.com/sharkdp/bat","opencli":"https://opencli.co/cli/bat","markdown":"https://opencli.co/cli/bat/agent.md","json":"https://opencli.co/cli/bat.json"},"metrics":{"githubStars":59282,"latestRelease":"2026-06-01T05:15:09Z","license":"Apache-2.0","metricLabel":"Homebrew installs (30d)","metricValue":15112,"metricSource":"homebrew","metricAsOf":"2026-06-08T11:00:41.870Z"}}