agent-orchestrator/packages/plugins
adil a339ccef94 feat(core): add gh wrapper cache for PR discovery and issue context (D4)
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>
2026-04-20 15:16:47 +05:30
..
agent-aider feat(core): add gh wrapper cache for PR discovery and issue context (D4) 2026-04-20 15:16:47 +05:30
agent-claude-code fix: improve agent plugin cost accounting and restore safety 2026-04-18 13:56:59 +05:30
agent-codex feat(core): add gh wrapper cache for PR discovery and issue context (D4) 2026-04-20 15:16:47 +05:30
agent-cursor feat(core): add gh wrapper cache for PR discovery and issue context (D4) 2026-04-20 15:16:47 +05:30
agent-opencode feat(core): add gh wrapper cache for PR discovery and issue context (D4) 2026-04-20 15:16:47 +05:30
notifier-composio Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
notifier-desktop Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
notifier-discord Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
notifier-openclaw Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
notifier-slack Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
notifier-webhook Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
runtime-process Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
runtime-tmux Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
scm-github Merge remote-tracking branch 'origin/main' into feat/gh-rate-limiting 2026-04-19 00:22:43 +05:30
scm-gitlab fix: finish PR #1300 major follow-up fixes 2026-04-18 12:35:15 +05:30
terminal-iterm2 fix: model missing activity evidence explicitly (#122) 2026-04-17 19:28:56 +05:30
terminal-web fix: model missing activity evidence explicitly (#122) 2026-04-17 19:28:56 +05:30
tracker-github Merge remote-tracking branch 'origin/main' into feat/gh-rate-limiting 2026-04-19 00:22:43 +05:30
tracker-gitlab refactor: clean up redundant requireRepo calls and nullish coalescing 2026-04-14 22:13:02 +05:30
tracker-linear Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
workspace-clone Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30
workspace-worktree Merge pull request #1180 from yyovil/add/type-resolution 2026-04-13 19:56:36 +05:30