Skip to main content

Clinescope

License: Apache-2.0 Python 3.11+ Coverage 93%

Clinescope is an independent, unofficial tool - not affiliated with, endorsed by, or sponsored by Cline or Cline Bot Inc. "Cline" is a trademark of Cline Bot Inc., used only to describe compatibility.

Clinescope runs on both the Cline CLI and the VS Code extension. Point it at a CLI trace, or run clinescope --vscode to auto-discover and score a VS Code extension session (see Score a VS Code extension session).

Clinescope is an AI evaluation tool that lives in your Cline development workflow, reads your logs, and helps you write better prompts by checking tool choices, catching messy code rewrites, and ensuring updates don't break past work. Clinescope reads a Cline log and scores four things:

  • tool_selection: did the agent call the tools the task needed?
  • diff_coherence: are its code patches valid and well-formed?
  • diff_minimality: are its edits small and focused, not bloated rewrites?
  • apply_recovery: when a patch failed, did the agent fix it?

clinescope scoring a failing Cline run and, with --advice, coaching how to fix the agent's prompt for each failing scorer

Why Clinescope

Clinescope scores coding-agent execution traces and ships a code-diff-quality scorer. DeepEval scores tool selection but not code patches or diffs; promptfoo, Langfuse, and Braintrust hand the diff scorer to you; UK AISI's Inspect runs SWE agents but ships no diff-quality scorer. Clinescope's diff_coherence / diff_minimality / apply_recovery scorers are that layer, run against real captured Cline traces (see the validation corpus).

Clinescope validates its own optional LLM judge against human labels and, finding it agrees only at chance level, deliberately keeps it out of the pass/fail gate. See docs/judge-validation.md.

Get Started

  1. Install Clinescope

    Requires Python 3.11+. Installing into a virtual environment is recommended.

    pip install clinescope
    
  2. Use Clinescope

    Get the score:

    Point Clinescope at a Cline log file (a messages.json trace) to score the run - replace path/to/messages.json below with your own.

    clinescope path/to/messages.json --expected read_files apply_patch
    

    After --expected, list the tools you think the task needed. Run clinescope --list-tools to print the tools in Clinescope.

    Improve your prompt:

    clinescope path/to/messages.json --expected read_files apply_patch --advice
    

Learn more in the usage guide.

New to this? The quickstart walks you from installing Cline to scoring your own session.

Feedback

Ran Clinescope on your own Cline trace? Tell me how it went, what worked, or what was confusing: open a feedback issue and pick "Share feedback". First-run impressions on a real trace are the single most useful thing you can send.

For a reproducible scorer or CLI bug, the Bug report form is a better fit. To contribute a change, see CONTRIBUTING.md for dev setup, tests, and what a scorer change needs.

License

Apache-2.0. Copyright 2026 Tran Binh Minh.

Download files

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

Source Distribution

clinescope-1.1.0.tar.gz (270.0 kB view details)

Uploaded Source

Built Distribution

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

clinescope-1.1.0-py3-none-any.whl (214.2 kB view details)

Uploaded Python 3

File details

Details for the file clinescope-1.1.0.tar.gz.

File metadata

  • Download URL: clinescope-1.1.0.tar.gz
  • Upload date:
  • Size: 270.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clinescope-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7a841e92a9909a4ba4337e0ec0e81b6dc82b848e4fe24826c7c9c5a4593f20eb
MD5 30c16a4318f367df05156e41c2cf020b
BLAKE2b-256 cd6f62f6491204635d41cbf588aef58d9da8b0f6c6bb59419ad5c35d4a1d1e08

See more details on using hashes here.

Provenance

The following attestation bundles were made for clinescope-1.1.0.tar.gz:

Publisher: release.yml on minh2416294/clinescope

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

File details

Details for the file clinescope-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: clinescope-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 214.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clinescope-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8616f36cd01bbffce1b465b39e24f75ef914b9f7b14f39103b20bf3a06899fc7
MD5 fb025c73a58596e8b4942ddf0a26352e
BLAKE2b-256 fb89b25976542dd1cd0bb8e9042fef1df95dae4ff681d1d44eed52e36948797d

See more details on using hashes here.

Provenance

The following attestation bundles were made for clinescope-1.1.0-py3-none-any.whl:

Publisher: release.yml on minh2416294/clinescope

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

Release history Release notifications | RSS feed

1.2.1

2 files

1.2.0

2 files

This release

1.1.0 This release

2 files

1.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page