Skip to content

cora code intelligence on tole (0.20.0): measured accuracy, noise and what to optimise #669

Closed

Description

@ajianaz

Re-measured with cora 0.21.1 and closed (2026-11-17). The findings below were accepted and fixed in cora-code 0.21.0 (changelog items #714, #715, #716, #717, #743, #746, #750). Same commands on tole develop at 99dca90 (175,942 lines of Rust, 41% more than the first measurement; the release binary with the bundled code model; index in about 3 s, 8,123 symbols from 412 files, 20.8 MB database, 0 errors):

Command 0.20.0 (8c05cd1) 0.21.1 (99dca90)
callers WebFetchTool "No callers found" 2 callers, correct (tool_roster.rs:516, tool_specs.rs:82)
callers WebSearchTool::from_env merged with every from_env 2 callers, correct
impact WebSearchTool "No impact found" 46 affected
callers from_env (bare name) 16 (merged) 19 (still merged by bare name; impact from_env: 684 affected, was 507)
trace from_lookup --direction incoming --depth 3 121 nodes 8 nodes
affected crates/tole-core/src/web.rs 118 test files 5 test files, each with the type-resolved edge path
dead-code 944 symbols (913 test functions) 20 symbols; tool_kind and approval_config_option (called inside json! and vec!) are no longer reported
explore fetch 50 matches, mostly noise "Showing 8 of 24 symbols", ranked, with a count
explore web_fetch the four FETCH_*_ENV constants "No symbols found" (it matches symbol names only now; --docs also matches signatures)
brain "how does web_search pick its backend and read env" 20 results, none relevant (signals=vector) 20 results, the top four are the SEARCH_*_ENV constants of web.rs, WebSearchTool is in the list (signals=fts,vector); some noise remains (env/read helpers in tests)
query "dispatch -> *" 50 callees including std names still 50 callees, std names such as context and current_dir still shown
query "WebFetchTool -> *" nothing nothing (unchanged)
arch two modules (crates, evals) grouped by crate and module (for example tole-cli, 4,046 symbols, then config::apply, plugin::cmd_tests, ...)
routes "No routes detected" "No routes detected" (expected: hand-written HTTP routing)

Still true, so keep verifying with grep: calls by a bare function name are merged (from_env), the query callee list still includes std method names and is capped at 50, and the dead-code list was not checked symbol by symbol. If one of these matters, file it in codecoradev/cora-code. The raw output of this run is in the session notes, not attached.

What this is

A measured evaluation of cora index | explore | brain | callers | impact | trace | affected | dead-code | query | arch | routes (cora 0.20.0) on tole develop at 8c05cd1 (about 124,600 lines of Rust), written down so the findings can be optimised in cora-code and re-measured. A second data point comes from an agent that used the same tools on a real task (adding a feature around web.rs and tool_roster.rs). This is a note first; it can be moved to cora-code when ready.

Takeaways (0.20.0)

  • Useful: index plus explore plus callers on distinctive names, as a quick pointer.
  • Not reliable in Rust at the time: impact, affected, dead-code, trace. Worth optimising in cora-code, in this order: (1) resolve calls by type-qualified path and use imports instead of the bare name; (2) parse macro bodies (json!, vec!, format!, matches!, assert!); (3) skip #[test] and #[cfg(test)] items in dead-code by default, treat trait impls and library pub items as live; (4) rank explore by exact match first and show a count when truncated; (5) drop std method names from query output or add a flag; (6) make affected follow only type-resolved edges; (7) brain: use a code embedding model; (8) arch: group by crate and module path.

How to reproduce

git checkout <commit> && cora index
cora callers from_env ; cora callers WebFetchTool ; cora impact from_env
cora affected crates/tole-core/src/web.rs | wc -l
cora dead-code | grep -E "tool_kind|approval_config_option"
cora brain "how does web_search pick its backend and read env"

Activity

  1. added
    enhancement
    on Nov 13, 2026
  2. ajianaz commented on Nov 13, 2026

    @ajianaz
    ContributorAuthor

    The optimisation items from this note are now filed in cora-code:

    This issue stays as the measurement record: re-run the table after each fix and keep the numbers here.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions