agent-orchestrator/packages/integration-tests/src
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
..
helpers fix: model missing activity evidence explicitly (#122) 2026-04-17 19:28:56 +05:30
agent-aider.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
agent-claude-code.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
agent-codex-launch-env.integration.test.ts feat(core): add gh wrapper cache for PR discovery and issue context (D4) 2026-04-20 15:16:47 +05:30
agent-codex.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
agent-opencode.integration.test.ts refactor(opencode): simplify AGENTS.md handling and remove unused code 2026-04-11 18:35:18 +05:30
cli-session-ls.integration.test.ts feat: seamless onboarding with enhanced documentation (#66) 2026-02-16 22:22:13 +05:30
cli-spawn-core-read-new.integration.test.ts feat(power): prevent macOS idle sleep while AO is running (#1072) 2026-04-11 00:11:45 +05:30
cli-spawn-send-kill.integration.test.ts feat: seamless onboarding with enhanced documentation (#66) 2026-02-16 22:22:13 +05:30
config-metadata-service.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
metadata-lifecycle.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
notifier-composio.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
notifier-desktop.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
notifier-openclaw.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
notifier-slack.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
notifier-webhook.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
prompt-delivery.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
prompt-spawn.integration.test.ts fix(tests): fix prompt-spawn integration test import and type annotations 2026-04-10 22:03:04 +05:30
runtime-process.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
runtime-tmux.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
terminal-iterm2.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
terminal-web.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
tracker-linear.integration.test.ts Merge pull request #882 from DNX/feat/linear-spawn-branch-name 2026-04-11 14:45:57 +05:30
workspace-clone.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
workspace-worktree.integration.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00