Reverse engineer anything with agents, from app behavior down to native binaries.
ctx
CTX Fit finds the cheapest AI coding setup that reliably works on your repository, then applies the winner as a reviewable change.
Install: pip install claude-ctx
Works with Claude Code · 587 GitHub stars
Install
pip install claude-ctxInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →ctx
Find the cheapest AI coding setup that actually works on your repo.
CTX Fit analyzes your repository, tests promising AI coding configurations
against real tasks in it, and produces the winning configuration as a
reviewable change — in your working tree with --apply, or as a pull request
with --pr. It picks the cheapest setup that reliably works — reliability
is a requirement, not a tie-break — and if nothing beats what you already have,
it says so.
The winner is chosen by a fixed rule, not a score: discard every candidate below the reliability floor, then minimize attributable cost, then break ties toward the simpler configuration. An LLM may explain a result; it never decides one.
Release scope (1.0.21). CTX Fit compares capability configurations within one coding-agent harness; it does not compare Codex, Claude Code, or other harnesses against one another. It recognizes and can run repository-native verification commands for Python, JavaScript/TypeScript, Go, Rust, and Make, and treats the selected test command as the verification authority. For an installable Python project, CTX Fit builds a campaign environment and installs it without network access; its build backend and dependencies must already be available without downloading them. In the other ecosystems, verification is supported only when the runtime is usable from the host
PATHunder an isolated home and the verification dependencies are already available in the repository. Final verification uses that isolated home and runs without network access, so a user's package caches are not a supported dependency source. This is evidence for normal development; it does not prove that deliberately hostile code cannot deceive its own test runner. Release qualification did not include a paid live-provider trial, so inspectctx doctorand the dry run before authorizing spend.
pip install --upgrade claude-ctx
cd /path/to/my-project
ctx fit
Bare ctx fit is free, local and read-only: it runs no model, spends nothing,
and issues no git commands at all. Example output, abridged from a real run
against this repository:
Repository: /path/to/ctx
Languages: python, javascript
Current AI coding setup
Instructions: AGENTS.md, CLAUDE.md
Tool config: .claude/settings.local.json
Installed skills: 26
How this repository verifies itself
test python -m pytest -q
from pyproject.toml [tool.pytest] (high confidence)
typecheck python -m mypy src
from pyproject.toml [tool.mypy] (high confidence)
lint python -m ruff check .
from pyproject.toml [tool.ruff] (high confidence)
build python -m build
from pyproject.toml [build-system] (medium confidence)
AI agent readiness
91/100
Verification 30/30
Instructions 20/20
Environment 6/15
CI enforcement 15/15
Tool safety 10/10
Context tractability 10/10
Highest-impact improvements
1. Commit a dependency lockfile. (+9)
no dependency lockfile is committed
This repository has the static evidence needed to plan an evaluation: it
declares deterministic tests. Whether those tests can execute is checked only
inside the campaign.
Similar plugs
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io