Skip to content

Ship the Codex and Claude Code runners in the package - #349

Merged
dipeshbabu merged 1 commit into
mainfrom
feat/packaged-runners
Nov 19, 2026
Merged

dipeshbabu merged 1 commit into
mainfrom
feat/packaged-runners

Conversation

@dipeshbabu

Copy link
Copy Markdown
Owner

The Codex and Claude Code runners lived only in `examples/`, which the wheel does not include. A `pip install agentloop-profiler` user had no runner to pass to `improve capture`/`compare`.

  • New `agentloop.runners` package: `python -m agentloop.runners.codex` and `python -m agentloop.runners.claude_code` (moved with history), sharing `task_prompt`, `clip`, `read_stream` and `--` passthrough splitting in `_common.py`. Behaviour is unchanged; `--help` shows the module command.
  • `examples/codex_exec_runner.py` / `examples/claude_code_runner.py` forward to the packaged modules so existing commands keep working.
  • Installed-wheel smoke starts both runners outside the checkout; tests import the packaged modules, the Claude end-to-end test runs via `-m`, and a new test checks both entry points.
  • Guides, README, integrations index and changelog use the module commands (`--before-arg -m` verified to parse).

Local: 68 tests, installed-wheel smoke, bandit and pre-commit pass; wheel contents checked.

🤖 Generated with Claude Code

The runners lived only in examples/, which the wheel does not include,
so a pip install had no runner to point improve capture or compare at.
They now ship as agentloop.runners.codex and agentloop.runners.claude_code
(python -m ...), sharing prompt, clipping and stream helpers. The example
scripts forward to them, the installed-wheel smoke starts both, and the
guides use the module commands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

Copy link
Copy Markdown

AgentLoop replay self-test

This required repository check evaluates generated synthetic demo traces. It tests the replay and CI machinery; it does not show that this PR improves application performance.

AgentLoop CI Report

  • Status: passed
  • Replay: Replay passed: latency improvement 69.68%, cost improvement 78.82%, retry delta -1.
  • Merge recommendation: synthetic self-test only; assess application traces before merge
  • Findings: 1 total, 0 high severity, 1 patchable

Performance Gates

Gate Status Detail
latency_regression pass 0.00% regression <= 0.00% allowed
cost_regression pass 0.00% regression <= 0.00% allowed
latency_improvement pass 69.68% improvement >= 20.00% required
cost_improvement pass 78.82% improvement >= 5.00% required
retry_non_increase pass 0 candidate retries <= 1 baseline retries

Trace inputs

This comparison includes synthetic data. It does not establish application performance gains from a pull request.

Side Run ID Path Synthetic marker Source
baseline run_428d27c31549424f runs/research_agent_baseline.json yes agentloop_demo
candidate run_246940f01c7f4c22 runs/research_agent_optimized.json yes agentloop_demo

Metric Impact

Metric Impact
Latency improvement 69.68%
Cost improvement 78.82%
Retry delta -1
Candidate schema validity not provided
Candidate quality score not provided

Top Findings

Finding Severity Type Rewrite
al_cache_context_d9aa4271550c: Cache repeated prompt/context prefix medium cache_context Move stable instructions into cached prefixes, summaries, or framework-level memory instead of resending full text.

@dipeshbabu
dipeshbabu merged commit ded69fb into main Nov 19, 2026
25 checks passed
@dipeshbabu
dipeshbabu deleted the feat/packaged-runners branch November 19, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant