Skip to content

v1.0.211

Choose a tag to compare

@github-actions github-actions released this 22 May 06:46
· 65 commits to main since this release

✨ New: CodeGraph — give the AI a query graph, not a grep

The same tree-sitter call-graph that powers Code Map (the chip view in Explorer) is now queryable as a set of HTTP endpoints, and reachable from any chat via the new /cg slash mode. The agent stops driving grep and starts asking the project a graph six different ways:

  • search — where is a symbol defined?
  • callers / callees — who calls it, and what does it call?
  • impact — what does changing it ripple out to (BFS, depth-capped)?
  • file — what symbols does a file contain (no full read)?
  • coedit — what files get edited together with this one (git history + working tree)?

That last one is the one grep could never give you. It catches the conventional couplings static analysis can't see — parallel registries, double-write tables, sibling .md configs that humans always remember to update together until the day they don't. The agent now flags them by default when you ask about impact.

Endpoints return coordinates only (file / line range / qname / kind / params), never source — the agent fetches source with a precision Read offset=startLine limit=… after locating, so context budget stays bounded.

Type /cg in any Cockpit chat. No install, no config. Read the long version in What is a Code Graph (and why your AI needs one).

✨ New: Slash command hint in the chat input

The placeholder no longer just says "/ for commands". It now shows the actual command shape: /qa /fx /cg /skill-name … for commands — three builtins by name, the skill-name pattern as a template, and an ellipsis hinting at more. Three layers of information in one line; new users learn the surface without opening a menu.

📝 Website: new section + blog post

cocking.cc gets a dedicated CodeGraph section (sibling to Code Map) and a new blog: "What is a Code Graph (and why your AI needs one)" / "Code Graph:给 AI 一张项目图谱" — both languages. The story version of why grep is the agent's ceiling on the questions that actually matter, with the BUILTIN_COMMANDS-style "I shipped without updating the second registry" anecdote made small enough for non-technical readers.

🧹 Branding cleanup: CodegraphCodeGraph

The user-facing brand name is now consistently CodeGraph (PascalCase, matching Code Map). Internal identifiers untouched: the /cg command name and the /api/projectGraph/* URL paths stay as technical IDs.

🛠️ Dev-only: website builds on Next 16 again

website/package.json's dev / build scripts pin webpack explicitly (env -u TURBOPACK … --webpack). Next 16 made Turbopack the default and the old TURBOPACK= empty-value opt-out stopped working; on this monorepo Turbopack panics on @import "tailwindcss". Webpack is the same bundler cockpit itself uses for prod, so the fix just brings website/ back in line.