PIE (Personal Insight Engine)
Analyze your startup journey by distilling strategic patterns from your memory logs.
Setup
1. Configure API Keys: PIE requires at least one of the following environment variables. If both are provided, Gemini is used by default.
GEMINI_API_KEY: For Google Gemini 2.0 Flash (Recommended).ZHIPU_API_KEY: For Zhipu AI GLM-4.
2. Dependencies:
pip install -r requirements.txt
Usage
Run Weekly Review
By default, scans the last 7 days and auto-detects the provider:
python3 scripts/pie.py
Force a Provider
If you want to use a specific LLM regardless of your environment defaults:
python3 scripts/pie.py --provider zhipu
python3 scripts/pie.py --provider gemini
Custom Lookback
Scan a specific number of days (e.g., last 30 days):
python3 scripts/pie.py --days 30
Privacy & Safety (Hardened)
PIE is built for high-stakes startup analysis where privacy is non-negotiable:
- Zero-Exposure Redaction: Before transmission, all content is scrubbed for:
- API Keys, Tokens, and Passwords (regex-hardened).
- Email addresses and IP addresses.
- Local file system paths (home/user directories).
- Standardized Pathing: Only scans the
memory/folder within the officialOPENCLAW_WORKSPACE. - Content Distillation: Strips out JSON metadata and system headers to ensure the LLM only sees the semantic dialogue.
How it works
- Discovery: Standardized scan of
memory/viaOPENCLAW_WORKSPACE. - Sanitization: Multi-stage PII redaction (IPs, Emails, Keys, Paths).
- Synthesis: Pattern recognition across logs for strategic pivots and pain points.
- Output: Formatted Markdown report for the startup founder.
Developed by Leo & Neo (Startup Partners)