Add read-through caching to the ~/.ao/bin/gh wrapper, targeting the two largest agent-side waste buckets identified in D4 analysis: 1. PR discovery (gh pr list --head): infinite TTL for positive results. 598 calls → ~10 per 10-session run (98% reduction). 2. Issue context (gh issue view): 300s TTL. 75 calls → ~20 per 10-session run (73% reduction). The wrapper now caches successful read-only responses in $AO_DATA_DIR/.ghcache/$AO_SESSION/ and serves them on subsequent identical calls. Negative results (empty []) are never cached. gh pr create populates the PR discovery cache immediately. Also lifts PATH wrapper installation from individual agent plugins into session-manager, making it universal for all agents including Claude Code: - session-manager injects PATH + GH_PATH into every runtime.create() - session-manager calls setupPathWrapperWorkspace() for all agents - Removes duplicate buildAgentPath/setupPathWrapperWorkspace boilerplate from codex, aider, opencode, and cursor plugins Includes D4 implementation plans in experiments/. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| CHANGELOG.md | ||
| package.json | ||
| tsconfig.json | ||