session-closeout

Pass

Audited by Gen Agent Trust Hub on Nov 8, 2026

Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The scripts/orca-closeout script executes a significant block of embedded Python code using python3 -I -c. This is used to handle complex tasks such as inspecting process trees, managing signals for detached processes, and parsing JSON-based session transcripts.
  • [COMMAND_EXECUTION]: The skill uses local system utilities like ps and lsof to monitor the agent's process tree and file usage. It also interacts with the orca IDE's command-line interface to manage terminal tabs and workspace metadata. These actions are strictly local and align with the skill's functionality.
  • [INDIRECT_PROMPT_INJECTION]: The skill parses session transcripts (.jsonl files) to determine the status of background tasks, crons, and subagents.
  • Ingestion points: Conversation history files located within the ~/.claude/projects/ directory.
  • Boundary markers: The script relies on the JSON-per-line structure of the transcripts and uses regex to detect specific system-generated tags like <task-id> within those records.
  • Capability inventory: The script has capabilities for local file reading/writing, process inspection, and terminal management via the orca CLI.
  • Sanitization: Titles and tab labels are normalized to remove control characters and collapse excessive whitespace before they are processed or written back to transcripts.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 8, 2026, 08:32 AM