@prismshadow/penguin-cli · packages/cli/src/commands/log.ts:1

penguin log

cli-command

penguin session log — render a session's history (and optionally follow it live).

Registered via packages/cli/src/commands.

Subcommands (1)

penguin log log [sessionId]

Options (7)

--server <url>

penguin log log

--json

penguin log log

--agent-id <id>

penguin log log

--project-id <id>

penguin log log

--timeout <duration>

penguin log log

-f, --follow

penguin log log

--tail <n>

penguin log log

Source Doc

penguin session log — render a session's history (and optionally follow it live).

penguin session log [session_id] [--tail ] [-f|--follow] [--timeout ] [--project-id ] [--agent-id ] [--json] [--server ]

[session_id] is a full id or a unique fragment; omitted, it is the agent's most recent session (announced as a dim [latest] line on stderr — see resolveSessionTarget), so a bare penguin session log shows what just happened.

History comes from GET /messages and renders through the same history renderer the REPL's --resume uses; --tail n keeps the last n entries. -f keeps the command attached: after the history it subscribes to the session's SSE stream and renders new messages as they arrive (read-only — Ctrl-C detaches without touching the session). Docs: /docs/cli § "penguin session log".