You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(code-intel): rank explore exact matches first, drop std-method noise from query, check why brain returns unrelated vector hits, group arch below the top directory #717
Measured on tole (8c05cd1) and by an agent doing a real task around web.rs and tool_roster.rs:
cora explore fetch returns 50 symbols, mostly noise matched on a common word (openai::fetch_context_window, systemone::fetch, gitea::fetch, verify_package::fetch). cora explore WebFetchTool finds the struct and its env constants, but also returns up to 50 results with no ordering rule and no count of what was cut. For finding a registration site or an outline, grep was faster and had no noise.
cora query "dispatch -> *" lists 50 callees, including std method names (context, current_dir, as_deref) that are never the answer.
cora brain "how does web_search pick its backend and read env" returned 20 results, all signals=vector and none relevant (commit, is_at_eof, tzif, test constants such as KEY). Either the vector index is missing or poor for code, or the scoring over-weights short symbols.
cora arch shows two modules, crates (5,514 symbols) and evals (48): the top directory is the only grouping, so it says nothing about the structure of a multi-crate workspace.
cora routes found nothing on tole, which is correct (hand-written routing), but the output could say which frameworks it looked for.
Proposed solution
explore: order by exact name, then prefix, then substring, then FTS rank; print "showing 50 of N"; --kind filter; do not match on common words inside doc comments unless --docs.
query: hide std and core method names by default (--include-std to show them), mark edges by confidence.
brain: print which signals contributed and warn when the vector index is empty or was built with a text-only model; evaluate a code embedding model and the RRF weights on a small fixed question set (add the tole questions as a regression set).
arch: group by crate, then module path, with edge counts between groups and the biggest hotspots.
routes: list the frameworks that were searched, and the count of files scanned.
Alternatives considered
Leave them as they are and treat them as a rough pointer. Real usage showed that they cost more time than they save on a codebase this size.
The remaining part (evaluating a code embedding model and tuning the RRF weights on a fixed question set) needs a real embedding provider and is tracked in #746. Closing this one.
Activity
feat(code-intel): rank explore results, hide std calls in query, grou…
feat(code-intel): rank explore results, hide std calls in query, grou…
feat(code-intel): rank explore results, hide std calls in query, grou…
feat(code-intel): make brain answer questions and show which signals …
ajianaz commentedon Nov 16, 2026
Done on
develop:explore: exact, prefix, substring, then FTS ordering, "showing N of M",--kind, doc text only with--docs(feat(code-intel): rank explore results, hide std calls in query, group arch by crate #742).query: std and core method names hidden by default,--include-stdto show them (feat(code-intel): rank explore results, hide std calls in query, group arch by crate #742).arch: grouped by crate, then module path, with call counts between groups (feat(code-intel): rank explore results, hide std calls in query, group arch by crate #742).routes: reports the frameworks searched and the number of files scanned (feat(code-intel): rank explore results, hide std calls in query, group arch by crate #742).brain: questions are reduced to content words, results come back in rank order, each signal's hit count is printed, and warnings appear when the vector index is empty, mismatched or text-only (feat(code-intel): make brain answer questions and show which signals found what #745).The remaining part (evaluating a code embedding model and tuning the RRF weights on a fixed question set) needs a real embedding provider and is tracked in #746. Closing this one.
Generated by Claude Code