Skip to content

v0.2.0 — Workspace-separated analyzer flow

Choose a tag to compare

@denn-gubsky denn-gubsky released this 05 May 06:44
· 16 commits to main since this release

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.