DOCS
Activity log
Each Guard decision is appended to activity.jsonl under the OS data directory: ~/.local/share/balerx/logs/activity.jsonl on Linux ($XDG_DATA_HOME when set), ~/Library/Application Support/balerx/logs/activity.jsonl on macOS, and %LOCALAPPDATA%\balerx\logs\activity.jsonl on Windows. balerx guard install prints the path on this machine.
balerx log view --limit 50
balerx log view --limit 100 --agent cursor
balerx log view --event-type before_shell_execution--limit defaults to 50. -l is the short form. -a filters by agent name. The agent field is claude-code or cursor. -t is the short form of --event-type.
Each line records the event type, the agent, and the resource (the file path or the command target). Metadata includes phase (the same event type) and tool_use_id when the agent sent one. A Claude Code call writes one pre_tool_use decision and one post_tool_use log line. Post is not a permission. A Post log row that pairs with a Pre row in the same upload is not billed as a second Guard event. Tool arguments are not required to read the line.
Event types are pre_tool_use, post_tool_use, before_shell_execution, before_mcp_execution, and before_read_file.
Upload can send this file. Tool arguments are removed before the upload leaves the machine. See Upload and fleet.
