MKTRUE-GUARD(1)mktrue 1.3.1MKTRUE-GUARD(1)

mktrue guard

NAME

mktrue guard — the Claude Code hook that holds the context budget

SYNOPSIS

mktrue guard [--resume]

DESCRIPTION

guard runs as a Claude Code PreToolUse hook. It reads the hook’s JSON on stdin, the last usage record of the session’s transcript and the budgets in .mktrue.json, and prints the hook’s JSON: nothing under budget, a warning at it, a refusal past the ceiling.

It reads usage fields and counts calls only. It writes nothing and sends nothing. Without .mktrue.json, or with nothing to measure, it prints nothing and the call goes ahead.

--resume runs it as the SessionStart hook on clear: it puts the newest resume.md under .mktrue/slices in context.

OPTIONS

--resume
Run as the SessionStart hook on clear: put the newest resume.md under .mktrue/slices in context.
--help
Print this screen: the command’s usage, its flags and its exit codes.

EXIT STATUS

0always. A refusal is the JSON guard prints, never an exit code.

EXAMPLES

guard runs as a hook: Claude Code starts it and hands it JSON on stdin, so there is no captured run here. Without .mktrue.json, or with nothing to measure, it prints nothing.

SEE ALSO