Skip to content

polygraph agent

Child agent controls

Terminal window
polygraph agent
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI

List child agents for a session

Terminal window
polygraph agent list
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--session, -sstringSession ID (auto-detects from cwd if omitted)

Delegate work to a child agent

Terminal window
polygraph agent spawn [repo] [instruction]
NameTypeDescription
repostringRepository (ID, full name, or short name)
instructionstringInstruction to execute
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--session, -sstringSession ID (auto-detects from cwd if omitted)
--contextstringAdditional context for the delegated task
--agent"claude"|"opencode"|"codex"Agent runtime to use

Show child agent status

Terminal window
polygraph agent show [repo]
NameTypeDescription
repostringRepository (ID, full name, or short name)
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--session, -sstringSession ID (auto-detects from cwd if omitted)
--tailnumberNumber of trailing log lines to include

Attach a TUI to a child agent

Terminal window
polygraph agent attach [session]
NameTypeDescription
sessionstringSession ID (auto-detects from cwd if omitted)
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--repo, -rstringRepository (ID, full name, or short name) - optional; the picker resolves it when omitted.

Stop a child agent

Terminal window
polygraph agent stop [repo]
NameTypeDescription
repostringRepository (ID, full name, or short name)
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--session, -sstringSession ID (auto-detects from cwd if omitted)

Grant a child agent's pending permission-required request

Terminal window
polygraph agent allow [repo]
NameTypeDescription
repostringRepository (ID, full name, or short name)
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--session, -sstringSession ID (auto-detects from cwd if omitted)
--repo, -rstringRepository (ID, full name, or short name)
--scopestringone-timePermission scope. "one-time" applies to this single request; "session" is remembered for equivalent later requests within the child's session.
--reasonstringOptional reason for allowing the request

Deny a child agent's pending permission-required request

Terminal window
polygraph agent deny [repo]
NameTypeDescription
repostringRepository (ID, full name, or short name)
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--session, -sstringSession ID (auto-detects from cwd if omitted)
--repo, -rstringRepository (ID, full name, or short name)
--reasonstringOptional reason for denying the request

Stream a session's child permission-gate transitions as NDJSON (machine-only)

Terminal window
polygraph agent events
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--session, -sstringSession ID (auto-detects from cwd if omitted)
--followbooleanfalseKeep the stream open and emit new events as they happen