pi-history-ingest

Pass

Audited by Gen Agent Trust Hub on Nov 14, 2026

Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
  • [COMMAND_EXECUTION]: The skill uses several local shell commands to perform its functions. It executes find to scan for session logs in ~/.pi/agent/sessions and utilizes specialized CLI tools qmd and obsidian-wiki to maintain vault indexes and synchronize metadata. These are standard operations for local document management skills.
  • [INDIRECT_PROMPT_INJECTION]: The skill ingests external data from Pi session JSONL files, which could potentially contain malicious instructions designed to influence the agent's behavior during distillation.
  • Ingestion points: Processes files located at ~/.pi/agent/sessions/ or a user-defined PI_HISTORY_PATH.
  • Boundary markers: Employs a rigorous provenance system including mandatory source reference comments (e.g., <!-- source: pi:... -->), inline markers (^[inferred], ^[ambiguous]), and frontmatter metadata to distinguish extracted data from synthesized content.
  • Capability inventory: Capabilities include reading session logs, writing to the Obsidian vault, and executing the find, qmd, and obsidian-wiki CLI tools.
  • Sanitization: Includes a mandatory "Critical privacy filter" that requires the agent to redact API keys, tokens, passwords, and sensitive identifiers before any data is written to the wiki.
  • [DATA_EXFILTRATION]: The skill accesses sensitive locations including .env configuration files and user session history. However, it contains explicit safeguards against data exfiltration by directing the agent to redact credentials and focus on distilling knowledge rather than performing raw transcript dumps. No external network operations (like curl or wget to untrusted domains) were detected.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 14, 2026, 07:56 PM