Skip to content

chore: remove all Anthropic API integration (never used)#73

Merged
inth3shadows merged 2 commits into
mainfrom
chore/remove-anthropic
Jul 12, 2026
Merged

chore: remove all Anthropic API integration (never used)#73
inth3shadows merged 2 commits into
mainfrom
chore/remove-anthropic

Conversation

@inth3shadows

Copy link
Copy Markdown
Owner

Removes all Anthropic API integration from terse — it was never used, so the code
paths were dead weight that implied a workflow we don't run.

Removed

  • fluency.anthropic_answerer + dropeval.anthropic_tool_answerer (and the
    _to_anthropic_tool / _to_anthropic_messages adapters) — the "real consumer" eval
    arm. The fluency/drop evals reach every model over the OpenAI-compatible path
    (broker pool or a loopback gateway); there's no other model backend.
  • tokenize.count_anthropic + measure --anthropic — the count_tokens
    "ground truth" check. cl100k stays the estimate; cross-tokenizer (cl100k vs o200k)
    invariance is the keyless robustness check
    , unchanged.
  • The --anthropic / --anthropic-model CLI flags, the Anthropic section of the
    measure report, the anthropic optional extra (pruned from uv.lock with its
    transitive deps: httpx/anyio/distro/…), and the doc + ANTHROPIC_API_KEY env mentions.
  • Also: stop tracking a machine-local .codegraph symlink and gitignore it.

Verification

  • 452 tests pass, ruff clean, uv lock --check consistent.
  • terse fluency --help / terse measure --help carry no --anthropic flag; all
    modules import.
  • No behavior change to any path terse actually uses — the removed paths required an
    Anthropic key that was never present.

Independent of #71/#72 (fluency nested-record coverage); this is pure removal.

terse never used an Anthropic API key, so the anthropic code paths were dead weight
that implied a workflow we don't run. Remove them entirely:

- fluency.anthropic_answerer + dropeval.anthropic_tool_answerer (and the two
  _to_anthropic_* adapters) — the "real consumer" eval arm. The fluency eval reaches
  every model over the OpenAI-compatible path (broker pool or a loopback gateway).
- tokenize.count_anthropic + measure --anthropic — the count_tokens "ground truth"
  check. cl100k stays the estimate; cross-tokenizer (cl100k vs o200k) invariance is
  the keyless robustness check, unchanged.
- the --anthropic / --anthropic-model CLI flags, the Anthropic report section, the
  `anthropic` optional extra (pruned from uv.lock with its transitive deps), and the
  doc/env mentions.

No behavior change to any path terse actually uses. 452 tests pass; ruff clean.
Accidentally staged by git add -A in the previous commit; it is a local symlink
to the codegraph db, not repo content. Remove from tracking and gitignore it.
@inth3shadows inth3shadows merged commit 3190c4d into main Jul 12, 2026
5 checks passed
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