Skip to content

Releases

v1.1.0 — Anthropic API, OpenAI, and Ollama judge providers

Choose a tag to compare

@denn-gubsky denn-gubsky released this 05 May 10:50

The three previously-stubbed judge providers are now real. Same JSON schema, same triangulation methodology, same workspace-isolated cache — pick whichever provider fits your billing model and privacy posture.

Five providers now available

Flag What it uses Cost Privacy
`--judge claude-cli` (default) Your Claude Code CLI subscription Included Diffs stay local
`--judge anthropic-api` Anthropic API + `ANTHROPIC_API_KEY` Metered per-token Diffs sent to api.anthropic.com
`--judge openai` OpenAI API + `OPENAI_API_KEY` Metered per-token Diffs sent to api.openai.com
`--judge ollama` Local Ollama server Free (your hardware) Diffs stay local
`--judge stub` Deterministic LOC-based fake n/a n/a (CI only)

Implementation highlights

Each provider uses its SDK's native structured-output mechanism, all sharing one schema source:

  • anthropic-api: forced `tool_use` pattern — single tool whose `input_schema` IS our judgment schema, `tool_choice` set to it. Result lifted from `tool_use.input`. Defaults to `claude-sonnet-4-5`; short aliases (`sonnet`/`opus`/`haiku`) translate to full model IDs.

  • openai: `response_format={"type":"json_schema","json_schema":{"strict":True,"schema":...}}`. Server-side validates every response against the schema. Requires gpt-4o or newer; defaults to `gpt-4o-2024-11-20`. Surfaces openai.refusal as a clear ValueError.

  • ollama: passes the JSON schema dict as the `format` parameter to `ollama.chat()`. Requires ollama 0.5+ for strict format constraint; older versions degrade gracefully. Defaults to `llama3.1:70b`; `OLLAMA_HOST` env var overrides the default localhost:11434.

New: cross-provider corroboration

Run the same target through different providers and the cache distinguishes them by (provider, model, prompt-version), so you can compare results without invalidating each other's cache:

```bash
ai-dev-effectiveness analyze ~/work/repo --judge claude-cli # one cache
ai-dev-effectiveness analyze ~/work/repo --judge openai # another cache, no overlap
```

If the multipliers agree across independent models, that's stronger evidence than any single model's number alone.

Agentic context tradeoff

`claude-cli` runs the bundled subagent with full tool access (Read, Grep, `git show`, ast-index) and investigates the diff dynamically — follows callers, reads related files, etc.

API providers receive the diff embedded inline (truncated at 800 lines). They have no shell access in this setup. For most commits the difference is negligible; for cross-cutting refactors that ripple across many call sites, `claude-cli` produces meaningfully better estimates.

This tradeoff is documented honestly in the README.

Install

The default `claude-cli` provider needs no extra deps. For the others:

```bash

Anthropic API

pipx install --force 'git+https://github.com/denn-gubsky/ai-dev-effectiveness#egg=ai-dev-effectiveness[judge-anthropic]'

OpenAI gpt-4o

pipx install --force 'git+https://github.com/denn-gubsky/ai-dev-effectiveness#egg=ai-dev-effectiveness[judge-openai]'

Ollama (local)

pipx install --force 'git+https://github.com/denn-gubsky/ai-dev-effectiveness#egg=ai-dev-effectiveness[judge-ollama]'
```

Test coverage

24 tests passing on Python 3.10/3.11/3.12. The 12 new API-provider tests use mocked SDK objects, so CI doesn't need API keys, real SDKs, or network access. Tests cover error paths (missing SDK, missing API key, OpenAI refusal) and verify each provider builds the right request shape (correct schema in the call kwargs).

Compatibility

No breaking changes. Existing v1.0.0 users (claude-cli, stub) keep working unchanged. The cache logic version bumped from v3 to v4 so cached judgments from the cli-only era automatically refresh on first run with the new code path — no manual cache clear needed.

```bash
pipx upgrade ai-dev-effectiveness # or pipx install --force git+...
```

v1.0.0 — Production-stable release

Choose a tag to compare

@denn-gubsky denn-gubsky released this 05 May 10:04

First production-stable release of ai-dev-effectiveness.

The tool is feature-complete for the headline use case (measure AI co-programming effectiveness on any git repo) and has been validated on multiple real-world codebases. From v1.0.0 onward, the analyze CLI surface, YAML config schema, and JSON output structure carry backward-compatibility guarantees under SemVer.

Highlights since v0.2.0

Bundled Claude Code subagents

  • effort-judge — bundled subagent that reads each commit's diff and emits calibrated per-commit effort estimates with structured-output validation. Spawns claude --print with the agent body inline, your Claude subscription, no API key, no diffs leaving your machine.
  • roles-architect — surveys a target repo and proposes calibrated specialist roles for the top-down comparison.
  • Both install via init-judge into your analyzer workspace's .claude/agents/ (NOT into the target repo).

suggest-roles

ai-dev-effectiveness suggest-roles ~/work/your-repo --apply

Auto-generates the right specialist role list for any codebase, writes it directly into your ai_dev.yaml (with --apply). Eliminates the blank-page problem of writing roles by hand for a new project.

Team composition reporting

The report now visualizes both sides of the comparison:

  • Suggested team — the specialist roles, sized in person-months
  • Actual team — single block labeled with your team description (e.g. "1 developer + Claude Code (Opus 4.7)")

Set via --team/--team-size flags or project.team_description in YAML; auto-derived from author count + detected agents otherwise.

Workspace separation

The analyzer is read-only with respect to the target repo. Bundled subagents, the judge cache, and all reports live in your workspace (~/dev-effectiveness/); each target gets its own subfolder so multiple repos can be analyzed side-by-side without contamination.

--assume-untagged

Real git histories under-report AI assistance because GitHub squash-merges strip Co-Authored-By trailers. --assume-untagged \"Claude Opus\" attributes every untagged non-merge commit to a named agent. Persistent in agents.assume_untagged YAML.

Auto-pickup workspace config

<workspace>/ai_dev.yaml is loaded automatically when --config isn't passed. Print-message confirms the pickup so it's never silent.

JSON sidecar by default

--format now defaults to writing both HTML AND JSON. The JSON is structured for downstream AI tooling (Claude Cowork report generation, custom dashboards) — three estimators side-by-side, cost comparison, breakdowns by agent/author/domain/package/complexity, audit sample of judge rationales, and the new `actual_team` block.

Other improvements

  • ast-index rebuild integration for symbol-aware judge reasoning
  • Location-stable judge cache (--out-dir changes don't invalidate)
  • Live progress output during long-running subagent invocations
  • --team / --team-size flags
  • 600s default timeout for suggest-roles (up from 180s) for large repos
  • Comprehensive docs: docs/REPRODUCTION_GUIDE.md + docs/config-reference.md

Compatibility

Python 3.10 / 3.11 / 3.12 on Linux + macOS. CI green.

Upgrading from v0.2

No breaking changes. New features are additive; auto-derived defaults preserve old behavior when flags are omitted.

pipx upgrade ai-dev-effectiveness   # or pipx install --force git+...

What's stubbed in v1.0

The anthropic-api, openai, and ollama judge providers are wired into the CLI but raise NotImplementedError at runtime. They'll ship in a follow-up minor release. The default claude-cli provider works fully.

v0.2.0 — Workspace-separated analyzer flow

Choose a tag to compare

@denn-gubsky denn-gubsky released this 05 May 06:44

Headline

The analyzer no longer writes inside target repos. Run analyses from a
dedicated workspace folder; reports + judge cache go to <workspace>/<target_basename>/.

What changed

New flow

mkdir -p ~/dev-effectiveness && cd ~/dev-effectiveness
ai-dev-effectiveness init-judge                  # installs ./.claude/agents/effort-judge.md
ai-dev-effectiveness analyze /path/to/your/repo --judge claude-cli
# reports → ~/dev-effectiveness/your-repo/effectiveness-report.html
# cache   → ~/dev-effectiveness/your-repo/.ai-dev-effectiveness-cache/
# target  → untouched, read-only

Behavioral changes (breaking, intentional)

  • init-judge defaults to $PWD (the analyzer workspace) instead of the
    target repo. Previous behavior was contaminating every project repo with
    an effort-judge.md agent file.
  • analyze outputs reports + cache to $PWD/<target_basename>/ when target
    is elsewhere; legacy analyze . (target == workspace) still writes to
    $PWD directly.
  • The judge resolves its agent definition from the analyzer workspace via an
    absolute --agent path; subprocess CWD remains the target so Read,
    Grep, and git show operate on target content.

New features

  • ast-index auto-detection: when ast-index is on PATH, the analyzer
    runs ast-index build against the target before the judge starts so the
    bundled subagent's mcp__ast-index__* tools have a fresh index.
    Disable per-run with --no-ast-index, globally with
    AI_DEV_EFFECTIVENESS_NO_AST_INDEX=1.
  • New CLI flags: --workspace, --out-dir, --no-ast-index.
  • --judge-dry-run now shows the resolved workspace path, output dir,
    cache location, agent file existence, and whether ast-index is available.
  • Multi-target side-by-side: each target gets its own subfolder; running
    on three repos no longer overwrites a single report.

Tests

9 passing on Python 3.10/3.11/3.12. Two new tests cover the workspace
separation contract:

  • test_workspace_target_separation verifies the target is left untouched
    after a full analyze + stub-judge run.
  • test_target_equals_workspace_keeps_legacy_layout keeps the
    single-repo legacy flow working.

Upgrading from v0.1.0

If you were following v0.1.0's quickstart, you would have an
.claude/agents/effort-judge.md and .ai-dev-effectiveness-cache/ inside
each project repo you analyzed. Clean those up at your leisure (the new
flow ignores them):

# Optional cleanup inside each previously-analyzed project repo:
rm -rf .claude/agents/effort-judge.md .claude/skills/effort-estimation/
rm -rf .ai-dev-effectiveness-cache/ effectiveness-report.{html,json,pdf}

Compatibility

Python 3.10 / 3.11 / 3.12 on Linux + macOS. CI green.

v0.1.0 — Initial public release

Choose a tag to compare

@denn-gubsky denn-gubsky released this 05 May 05:08

First public release of ai-dev-effectiveness.

What it does

Reads your git history, detects which commits were co-authored by AI coding
agents (Claude Opus/Sonnet/Haiku, GitHub Copilot, Cursor, Codex, Aider, and
~7 others), and produces an interactive HTML report comparing your real
delivery against a hypothetical traditional team. Triangulates three
estimators — top-down specialist roles, bottom-up per-commit formula, and an
optional AI judge that reads each diff via a bundled Claude Code subagent.

Quickstart

pipx install git+https://github.com/denn-gubsky/ai-dev-effectiveness
cd /path/to/your/repo
ai-dev-effectiveness analyze .
open effectiveness-report.html

Highlights

  • Zero-config first run (auto-detects domains and language buckets).
  • 15-entry built-in AI signature registry, extensible via YAML.
  • Optional AI judge: ai-dev-effectiveness init-judge installs a bundled
    Claude Code subagent + skill into .claude/. The judge runs against the
    developer's existing Claude subscription (no API key, no metered billing,
    no diffs leaving the local machine). Optional ast-index MCP integration
    for symbol-level lookups.
  • Three-way reconciliation chart in the report flags when estimators
    disagree by more than 2x.

Known TODOs for v0.1

  • 11 of the 15 built-in agent signatures use starting-point regex patterns
    (Codex, Cursor, Copilot, Aider, Cody, Continue, Windsurf, Codeium,
    Tabnine, Devin, ChatGPT) — verified patterns welcome via PR.
  • Anthropic-API, OpenAI, and Ollama judge providers are stubbed but not
    yet implemented.
  • An anonymized robotics case study under examples/ is in flight.

Compatibility

Python 3.10 / 3.11 / 3.12 on Linux + macOS. CI green.