Skip to main content

Effort estimation for AI coding agents — PERT + METR + wave planning

Project description

agent-estimate

PyPI Version Python Versions License CI

agent-estimate is a CLI for estimating delivery time of AI-agent work using:

  • three-point PERT estimates
  • METR-style model reliability thresholds
  • dependency-aware wave planning
  • explicit review overhead modes (none, standard, complex)
  • non-coding task type estimation (brainstorm, research, config, docs)
  • multi-agent session estimation

Installation

Install from PyPI:

pip install agent-estimate

Install from source for development:

python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'

Quick Start

Estimate one task from the command line:

agent-estimate estimate "Implement OAuth login flow"

Show version:

agent-estimate --version

Claude Code Plugin

agent-estimate includes a Claude Code plugin for interactive estimation in Claude Code sessions.

Install

Option 1 — From marketplace:

/plugin marketplace add haoranc/agent-estimate
/plugin install agent-estimate@agent-estimate-marketplace

Option 2 — Local development:

claude --plugin-dir /path/to/agent-estimate

Prerequisite: The CLI must be installed first: pip install agent-estimate

Plugin Usage

/estimate Add a login page with OAuth
/estimate --file spec.md
/estimate --issues 1,2,3 --repo myorg/myrepo
/validate-estimate observation.yaml
/calibrate

GitHub Action

Run estimations directly in your CI/CD pipelines:

- uses: haoranc/agent-estimate@v0
  with:
    issues: '11,12,14'

Full Workflow Example

name: Estimate
on:
  pull_request:
    types: [opened, synchronize]

permissions:
  contents: read
  pull-requests: write

jobs:
  estimate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: haoranc/agent-estimate@v0
        with:
          issues: '11,12,14'
          output-mode: summary+pr-comment

Action Inputs

Input Required Default Description
issues yes GitHub issue numbers (comma-separated)
repo no current repo GitHub repo (owner/name)
format no markdown Output format: markdown or json
output-mode no summary summary, pr-comment, step-output, summary+pr-comment
config no Path to agent config YAML
title no Agent Estimate Report Report title
review-mode no standard Review tier: none, standard, complex
spec-clarity no 1.0 Spec clarity modifier (0.3-1.3)
warm-context no 1.0 Warm context modifier (0.3-1.15)
agent-fit no 1.0 Agent fit modifier (0.9-1.2)
task-type no Task category: coding, brainstorm, research, config, documentation
python-version no 3.12 Python version to use
version no latest agent-estimate version to install
token no ${{ github.token }} GitHub token

Action Outputs

Output Description
report Full estimation report content
expected-minutes Expected minutes (when format: json)

Codex Skill Layout

For Codex-oriented tooling, this repo includes a Codex-specific skill at:

  • .agent/skills/estimate/SKILL.md

The Claude plugin skill remains at:

  • skills/estimate/SKILL.md

Both skills cover the same CLI capabilities (estimate, validate, calibrate) but are phrased for their respective ecosystems.

Usage Examples

Estimate tasks from a text file:

agent-estimate estimate --file tests/fixtures/tasks_multi.txt

Output JSON for downstream tooling:

agent-estimate estimate "Refactor auth pipeline" --format json

Estimate directly from GitHub issues:

agent-estimate estimate --repo haoranc/agent-estimate --issues 11,12,14

Validate estimate vs observed outcome and persist to calibration DB:

agent-estimate validate tests/fixtures/observation_valid.yaml --db ~/.agent-estimate/calibration.db

TestPyPI Validation

Manual local publish (requires TestPyPI API token configured for twine):

python -m build
python -m twine check dist/*
python -m twine upload --repository testpypi dist/*
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple agent-estimate

Or run the GitHub Actions workflow TestPyPI Dry Run to publish and smoke-test install end-to-end.

Default METR Thresholds

The default model thresholds are defined in src/agent_estimate/metr_thresholds.yaml:

Model p80 threshold
Opus 90 minutes
GPT-5.3 60 minutes
GPT-5 50 minutes
GPT-5.2 55 minutes
Gemini 3 Pro 45 minutes
Sonnet 30 minutes

Agent Config Example

Pass a custom config file with --config:

agents:
  - name: Claude
    capabilities: [planning, implementation, review]
    parallelism: 2
    cost_per_turn: 0.12
    model_tier: frontier
  - name: Codex
    capabilities: [implementation, debugging, testing]
    parallelism: 3
    cost_per_turn: 0.08
    model_tier: production
settings:
  friction_multiplier: 1.15
  inter_wave_overhead: 0.25
  review_overhead: 0.2
  metr_fallback_threshold: 45.0

Then run:

agent-estimate estimate "Ship packaging flow" --config ./my_agents.yaml

Contributing

  1. Fork and create a branch from main.
  2. Install dev dependencies:
    pip install -e '.[dev]'
    
  3. Run checks:
    ruff check .
    pytest -q
    
  4. Open a pull request with a clear summary and test evidence.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_estimate-0.3.0.tar.gz (81.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_estimate-0.3.0-py3-none-any.whl (56.3 kB view details)

Uploaded Python 3

File details

Details for the file agent_estimate-0.3.0.tar.gz.

File metadata

  • Download URL: agent_estimate-0.3.0.tar.gz
  • Upload date:
  • Size: 81.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agent_estimate-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ea60561c6c52ad11e573a1279b53bd8a6dfe0da86fc8afa92b5442b3c0ec88a7
MD5 82e9b0bb28955577f176c3eb0122638c
BLAKE2b-256 6afd1061ec43d347d33e068a7619d76ce00d5e061082a9b6cadba2daa19819c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_estimate-0.3.0.tar.gz:

Publisher: publish.yml on haoranc/agent-estimate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agent_estimate-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: agent_estimate-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 56.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agent_estimate-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77ea0197a0e738b57aa15feddc70e2f6764683d6237226f82c9a5664f7fe2375
MD5 b55e684dd33609b705386a5ede73ef39
BLAKE2b-256 37ab382531a78244490e38bc234eeb65ab1a03293da4b6a98d2d9e39e5a8376a

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_estimate-0.3.0-py3-none-any.whl:

Publisher: publish.yml on haoranc/agent-estimate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page