Skip to content
FRGEPLAN

forgeplan activity

forgeplan activity shows you what the agent (or you) actually did. Every Forgeplan command writes one line to a daily log file at .forgeplan/logs/tools-YYYY-MM-DD.jsonl - tool name, arguments, status (ok / error), how long it took. This command reads that log and prints entries matching your filters, so you can answer “what happened in the last hour?” without relying on memory.

This is the CLI version of forgeplan_activity (the MCP tool); both read the same log files.

  • A session crashed or was interrupted, and you want to see the last 10–20 things the agent did.
  • You want to audit destructive operations (delete / supersede / deprecate) over the past week.
  • A workflow feels slow and you need to see which tool calls happened, in what order.
  • Building a paper trail for a Note or Problem after fixing something brittle - paste the relevant entries into the body.
  • You want totals (call counts, average duration) per tool - use forgeplan activity-stats instead, it aggregates the same data.
  • You need a live stream - entries are written per call, but for real-time monitoring run tail -f .forgeplan/logs/tools-*.jsonl.
  • The workspace is fresh with no history - there is nothing to read yet.
forgeplan activity [OPTIONS]
--since-hours <SINCE_HOURS> Time window in hours back from now (1..=720, default 24) [default: 24]
--tool <TOOL> Filter by tool name. Comma-separated for multiple: "forgeplan_score,forgeplan_activate"
--status <STATUS> Filter by status: ok, tool_err, or rpc_err. Omit for all
--limit <LIMIT> Cap result set (most recent N). 1..=5000, default 500 [default: 500]
--json Output as JSON for machine consumption
-h, --help Print help
-V, --version Print version
Terminal window
forgeplan activity --since-hours 1

Prints every tool call from the last 60 minutes, newest first. Useful right after a session interruption to rebuild context.

Example 2: Audit destructive ops over the past week

Section titled “Example 2: Audit destructive ops over the past week”
Terminal window
forgeplan activity --since-hours 168 \
--tool forgeplan_delete,forgeplan_supersede,forgeplan_deprecate

Surfaces every soft-delete / supersede / deprecate over 7 days. Pair with forgeplan undo-last or forgeplan restore to reverse anything unexpected.

Terminal window
forgeplan activity --status tool_err --limit 50 --json | jq '.entries[]'

Pipes JSON output into jq for further filtering or for feeding into a script. The --limit flag caps the result count so you do not accidentally pull thousands of entries from a long-lived workspace.

The activity log is the audit trail under every other Forgeplan command. The usual loop: run forgeplan activity-stats first to spot the slow or failing tool by aggregate, then run forgeplan activity --tool <name> here to see individual calls. If a destructive operation shows up that you did not expect, reverse it with forgeplan undo-last.