Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
TypeScript
/**
* `--shortstat`'s one line, ` 3 files changed, 10 insertions(+), 2
* deletions(-)`, either tail optional; the counts captured by name.
*/
export const SHORTSTAT_PATTERN = new RegExp(
[
String.raw`(?<files>\d+) files? changed`,
String.raw`(?:, (?<added>\d+) insertions?\(\+\))?`,
String.raw`(?:, (?<removed>\d+) deletions?\(-\))?`,
].join(''),
)