evariste

mcp
Guvenlik Denetimi
Uyari
Health Uyari
  • License — License: Apache-2.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 6 GitHub stars
Code Uyari
  • network request — Outbound network request in src/evariste/agent/coding.py
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

The intelligence layer for coding agents

README.md
Évariste Logo

Évariste

Code-graph engine, MCP server, and local workbench for coding agents

Give your coding agent a complete map of your codebase before it opens a single file.

Real numbers · Why it exists · MCP tools and workflow · Workbench · Install · Languages · License

License: Apache-2.0
Package: evariste
UI: evariste-ui
MCP Tools: 11
Platforms: macOS | Linux | Windows

Claude Code
Cursor
Codex
Windsurf
Gemini CLI
GitHub Copilot


Évariste MCP tools and workbench

Real numbers and the benchmark disclaimer

On the numbers. Day to day, on large turns, Évariste saves about 30 to 40% of tokens, and the code comes out cleaner. As of now, those results hold mostly for Python and React front-end. The table below is a harder comparison: the compressed change map against opening every touched file in full. That gap is biggest on multi-file and cross-repo tasks, where an agent would otherwise grep and read 5–15 files. On a small edit where you already name the file, the saving is smaller (~50–75% against a full-file read). Accuracy also depends on the language (see languages).

Try it on a real commit (evariste bench)

evariste bench checks out the parent tree (<sha>~1), runs recall with the commit subject as the prompt, and compares the change map to the commit's actual diff:

evariste bench <commit-sha> --root /path/to/repo
evariste bench --last 10 --root /path/to/repo
$ evariste bench 9913330632 --sub src
Évariste Commit Benchmark — 9913330632 (parent-tree diff (<sha>~1 → <sha>))
  Query           : feat(audit): TSX / JS / JSX smell detectors — audit works on frontend files
  Graph size      : 1,363 nodes · 3,740 edges (recall in 887.9 ms)
  Complexity gate : tier=medium (score=49, p=0.71, motif=contract_route, p_seed=0.47, p_diff=0.99, p_motif=1.00)
  File recall     : 1/1 (100.0%) — src/evariste/audit.py
  Symbol recall   : 1/1 (100.0%) across 27 Change Map places
  Token budget    : 2,028 tokens (8,112 chars) vs 8,334 raw file tokens (33,337 chars) → 75.7% reduction

Why it exists

Évariste is a local structural code-graph engine, an MCP server, and a visual workbench (evariste-ui) for coding agents. It is an intelligence layer in front of the agent: fewer throwaway files, less of a mess, and closer to production practice than an agent working with no map.

The graph is both a guide and a map. The agent can check its own work more precisely than by running a test and hoping. My hypothesis is that a good piece of software has a clean graph, and that this shape can be checked from the abstract syntax tree plus a diffusion graph built from runtime traces.

I built it for myself. I am mostly a backend developer, with a decent feel for the frontend. My agents could not write production code without leaving a pile of junk, and most of that junk showed up immediately in HTTP calls and the AST. I was also tired of Gemini and Claude spending money re-reading files and searching at random through code they had just written, so I put a knowledge graph on top of the AST.

Without that map, agents lean on grep, glob, and whole-file reads. That burns tens of thousands of tokens, misses callers across repositories, and breaks the contract between a backend route and the frontend that calls it. Évariste scans the repos locally, at $0 token cost, and connects screens, client calls, routes, services, and tables into one graph on your machine. The better the prompt, the better that search, and the cheaper the turn.


MCP tools and a typical request

Eleven small MCP tools. The agent asks for a slice of the graph instead of reading whole files.

The 11 tools

Tool Role What the agent gets
recall Start here (turn 0) The change map: files and line ranges, a complexity score, cross-repo contracts, blast radius (can break:), saved notes, and short snippets.
excerpt Read one symbol The exact lines of 1–12 functions or classes, or a signature skeleton for a large one. The same code is never sent twice in a session.
contracts Check API shapes Paths, request bodies, and response fields for a router, so the frontend types and the backend schema stay aligned.
inspect See who calls what Callers, callees, frontend http_callers, and the tests that reach it.
trace Before a rename Every call site, with line numbers, before a signature changes.
anticipate Where new code goes The file and the neighbours for a new route, class, or helper.
seek Look up one more symbol The top 8 matches if the map missed a helper.
react_hooks After a React edit useEffect, useMemo, and useCallback dependency checks on .tsx / .jsx.
rescan Refresh the map Re-indexes edited files in milliseconds.
annotate Leave a note A one-line note on a function or route. Later change maps show it.
flag Report a blind spot A note when a dynamic call or route could not be linked.

On one request

flowchart LR
    A["1. Understand<br/>recall"] --> B["2. Zoom in<br/>excerpt · inspect · trace"]
    B --> C["3. Edit<br/>the mapped lines"]
    C --> D["4. Check and remember<br/>rescan · contracts · react_hooks · annotate"]
  1. Map the task (recall)
    recall finds the symbols that match the prompt, then spreads relevance (p) along calls, database reads and writes, and cross-repo HTTP links. Connected schemas, middleware, and screens show up even when they share no words with the prompt. A clearer prompt lands on a tighter map.

    • Runtime traces. evariste run -- pytest records real Python calls with sys.monitoring (no edits to your code): who called whom, which dict keys were passed, and where an exception unwound. Those paths mix into the same diffusion.
    • How big, and how sure. The map comes with a score p (p=0.71) and a size (small, medium, hard), so a small edit can stay on a fast model. p ranks the map and picks a tier. It is not a calibrated probability of being right yet: in the 40-commit backend replay, the rate of "hard" changes stayed between 22% and 38% across p bins, so it does not track risk closely. The diffusion constants (restart 0.22, prior 2.0, runtime boosts 1.75× and 2.0×) are hand-set, not learned.
  2. Read less (excerpt, contracts, inspect, trace)
    Tool output stays small on purpose:

    • A capped change map. About 2,000 tokens. Full source only for short functions (15 lines or fewer), an AST skeleton for larger ones, and a file:line pointer after that.
    • Skeletons. excerpt(skeleton=true) keeps the signature, types, docstring, returns, and calls, and collapses the body to # … (N lines).
    • No repeat reads. Each snippet is hashed. Asking again for code already shown returns one line, not the code.
    • Short contract tables. contracts and inspect group routes, bodies, fields, and callers instead of dumping OpenAPI JSON.
  3. Edit the mapped lines
    The agent edits those ranges. trace first if a signature is about to change.

  4. Check the link, then remember (rescan, contracts, react_hooks, annotate)
    rescan refreshes the edited files. contracts and inspect check that the frontend fetch still matches the route. react_hooks checks the component. annotate stores a one-line note in .evariste/memory.json so the next task starts warmer.


The workbench (evariste-ui)

evariste up opens a local workbench at http://localhost:8080/app (source: evariste-graph/evariste-ui). No account.

Évariste workbench, architecture map

Évariste overview, token savings
  • Architecture map. UI → client fetch → routes → services and ORM → database, including HTTP links across repos.
  • Findings. Broken API links, unused routes, React hook issues.
  • Git across repos. Branches, diffs, and commits on the frontend and backend together, with a contract check when the branch changes.
  • Test database and env. A local database from your ORM models, and local environment variables for previews.
  • Savings and chat (Cmd+K). Tokens spared on each turn, plus a chat that uses your own key (OpenRouter, Anthropic, OpenAI, Gemini).

Install

Option 1

Paste this into Cursor, Claude Code, Codex, Windsurf, or Gemini CLI:

Install Évariste (pip install git+https://github.com/evariste-graph/evariste.git && evariste start .) and use evariste recall to map this workspace before editing.

Option 2

pip install git+https://github.com/evariste-graph/evariste.git

# In your repo, or a parent folder that holds the frontend and the backend:
evariste up
  • Agent only, no browser. evariste start . writes .cursor/mcp.json, .cursor/hooks.json, CLAUDE.md, and AGENTS.md.
  • Repos in different folders. evariste add ../my-frontend pulls another repo into the same graph.
  • Runtime traces (Python). evariste run -- pytest feeds real call paths into recall.

Languages, and where it is still thin

Six languages, one graph. The goal is to go a bit past a stock tree-sitter, so the map is useful on real code and real patterns. Today the strongest pair is a Python backend and a React frontend. That is where it saves the most tokens and where the code comes out best. The other languages parse, but they do not yet have the same depth.

Language What works Still missing
Python FastAPI, Flask, Django routes; FastAPI Depends; Pydantic; SQLAlchemy and Django ORM reads and writes; pytest reachability; sys.monitoring runtime traces. importlib and raw SQL outside the ORM are linked only if a run under evariste run actually hits them.
TypeScript and JavaScript React components and hooks, the react_hooks check, Express / NestJS / Fastify, and fetch / axios links back to routes. No Node tracer yet (evariste run is Python-only). A URL built without a template may need flag.
C# (.NET) Namespaces, classes, methods, new Foo(), ASP.NET controller attributes ([Route], [HttpGet], [HttpPost]). v0 parser. Minimal APIs (app.MapGet), AddScoped<IFoo, Foo>(), generics, and a CLR tracer are not in yet.
Java Packages, classes, methods, constructors, Spring @RestController / @GetMapping / @PostMapping. v0 parser. @Autowired, generics, JAX-RS / Quarkus / Micronaut, and a JVM tracer are not in yet.
Dart and Flutter Classes, widgets, GoRoute / Navigator, Dio and http calls back to a backend. Generated .g.dart / .freezed.dart files count only if they are on disk. No Dart VM tracer.

License

Licensed under the Apache License, Version 2.0. See NOTICE for attribution details.

  • Any use. Use, modify, redistribute, and self-host it, including in company products and internal tools. Apache-2.0 includes an explicit patent grant.
  • Hosted service. Anyone may run it as a hosted service. Évariste's own hosted team workspaces are at evariste.co. Questions: [email protected].

Yorumlar (0)

Sonuc bulunamadi