tools/gemini-cli-bot/README.md
This directory contains the foundational architecture for the gemini-cli-bot,
transforming the repository into a proactive, evolutionary system.
It implements a dual-layer approach to balance immediate responsiveness with long-term strategic optimization.
.github/workflows/gemini-cli-bot-pulse.yml).reflexes/scripts/..github/workflows/gemini-cli-bot-brain.yml).metrics/scripts/ to track
repository health (Open issues, PR latency, throughput, etc.).metrics/: Deterministic runner (index.ts) and scripts for tracking
repository metrics via GitHub CLI.reflexes/scripts/: Deterministic triage and routing scripts executed by the
Pulse.brain/: Prompt templates and logic for strategic root-cause analysis (Phase
1: metrics.md) and technical validation (Phase 2: critique.md).history/: Persistent storage for time-series metrics artifacts.lessons-learned.md: The bot's structured memory, containing the Task Ledger,
Hypothesis Ledger, and Decision Log.To manually collect repository metrics locally, run the following command from the workspace root:
npx tsx tools/gemini-cli-bot/metrics/index.ts
This will execute all scripts within metrics/scripts/ and output the results
to tools/gemini-cli-bot/history/metrics-before.csv.
When modifying the bot's logic:
reflexes/scripts/.brain/ to refine how the bot
identifies bottlenecks.critique/ to strengthen the validation
of proposed changes.