Skip to main content
Krolik

CODE INTELLIGENCE FOR AI AGENTS · 2026

Krolik gives
AI agents eyes
that grep never had.

Tree-sitter ASTs across 13 languages, an Apache AGE knowledge graph, and a live observability bridge from Prometheus alert to file:function in 5 seconds. Thirty MCP tools. Open source.

Languages
13
MCP tools
30+
Install
5 min

KNOWLEDGE GRAPH

What Krolik sees.

Your code as a property graph, indexed for agents. Every symbol, every call edge, every import, every test relationship. Queried in natural language via Cypher.

debug_investigate

From Prometheus alert
to file:function in 5 seconds.

Six-phase async pipeline: failure spikes, Jaeger failed traces, symbol resolution, callgraph walks upstream and downstream, log excerpts, LLM fusion. Returns ranked hypotheses with body excerpts. No one else does this.

code_graph

Cypher via
natural language.

Apache AGE property graph on PostgreSQL. Every symbol, call edge, import, route handler, test relationship. Query the graph from plain English: Krolik translates to Cypher and returns structured results.

Generated Cypher
MATCH (caller:Symbol)-[:CALLS]->(fn:Symbol)
WHERE fn.name = 'ValidateToken'
  AND fn.package = 'auth'
OPTIONAL MATCH (fn)-[:TESTED_BY]->(test:Symbol)
RETURN caller.name,
       caller.file,
       caller.line,
       test.name AS test_coverage
ORDER BY caller.file;
37 callers · 12 untested
auth package — 3 files, 6 symbols, 3 tests. Apache AGE on PostgreSQL.

dataflow_analyze + rewrite

Taint tracking.
Structural codemods.

IL/CFG analysis traces values from source to sink. Detects dead stores, unescaped user input reaching SQL or command execution. Rewrite applies AST search-replace patterns across all 13 languages with wildcard matching, survives multi-line code that regex can't touch.

rewrite — errors.New to fmt.Errorf · 247 matches
Go · AST search-replace 247 files
@@ auth/token.go:88 @@
 return errors.New(msg)
 return fmt.Errorf("%s: %w", msg, err)

@@ db/query.go:44 @@
 return nil, errors.New(queryErr)
 return nil, fmt.Errorf("query: %w", queryErr)

@@ cache/store.go:71 @@
 return errors.New(cacheErr)
 return fmt.Errorf("cache: %w", cacheErr)

... +244 more
Pattern errors.New($MSG) → fmt.Errorf("%s: %w", $MSG, err)
247 matches
13 languages
dry-run safe preview

positioning

Where the tools live.

grep sees text. LSP sees one file's types. Sourcegraph indexes repos for humans. Datadog sees runtime metrics. Krolik sees all four layers simultaneously, for agents. No one else is in that quadrant.

Krolik sits at the intersection no other tool occupies: structural depth (AST + call graph + type resolution) at multi-repo scale, with a live observability bridge. The top-right quadrant belongs to agents.

quickstart

Five minutes from clone
to first MCP call.

krolik quickstart
$ docker compose -f krolik.yml up -d
Starting go-code ... done

$ curl -X POST http://localhost:8897/mcp \
    -H 'Content-Type: application/json' \
    -d '{"tool":"semantic_search","query":"auth context deadline bug"}'

 12 results in 380ms

Requires: PostgreSQL with Apache AGE + pgvector, embed-server (Jina Code v2), OpenAI-compatible LLM proxy. Full quickstart on GitHub

FAQ

Frequently asked questions

What languages does Krolik support?

Go, Python, TypeScript, TSX, Rust, Java, C, C++, Ruby, C#, PHP, Svelte, and Astro — 13 total. Type-aware analysis is live today on Go via go/types. SCIP backend is in flight for the other 11.

How does it integrate with Claude Code or Cursor?

Krolik exposes 30 MCP tools over Streamable HTTP. Add the URL to your MCP config — Claude Code, Cursor, Windsurf, Aider, Cline, or any client implementing the Model Context Protocol.

How is this different from Sourcegraph?

Sourcegraph indexes code for humans. Krolik indexes code for AI agents. We add a knowledge graph (Apache AGE), a runtime observability bridge (Prometheus + Jaeger → file:function), and an MCP-native protocol. Sourcegraph has none of these.

Self-hosted only?

Yes. Open source. Bring your own PostgreSQL (with AGE + pgvector), embed-server, and OpenAI-compatible LLM proxy.

What's the licence?

Apache 2.0. Engine source: github.com/anatolykoptev/go-code.