Skip to main content

Content-addressed knowledge graph for software systems

Project description

knowing

Self-adapting code intelligence engine. Gives AI agents ranked, graph-aware context instead of grep results. Gets smarter with scale, not dumber.

This is the Python wrapper package that downloads and runs the knowing binary.

Install and verify

pip install knowing
knowing version   # should print the version

Configure your agent

Add to your agent's MCP config (.mcp.json for Claude Code, .cursor/mcp.json for Cursor, .vscode/mcp.json for VS Code, see all):

{
  "mcpServers": {
    "knowing": {
      "command": "knowing",
      "args": ["mcp", "--watch"],
      "transport": "stdio"
    }
  }
}

The MCP server auto-indexes your repo on first launch (10-30 seconds). The embedding re-ranker is on by default (downloads a 30MB model once, runs locally, no API keys).

First useful query

Ask your agent:

"Use the context_for_task tool to find symbols related to [something you know exists in your code]."

You should see ranked symbols with scores and file paths. If results are empty, the repo is still indexing. If results seem unrelated, use specific symbol names in your task description.

What it does

knowing indexes code across 23 extractors (Go, TypeScript, Python, Rust, Java, C#, and more) into a content-addressed knowledge graph. 38 edge types, 28 MCP tools, 152 equivalence classes, local embedding re-ranker (+17% precision), gap-fill seeds (+11% precision).

P@10 = 0.257 across 237 tasks, 12 repos, 7 languages. 1.90x codegraph, 3.43x GitNexus.

CLI usage

knowing add .                                          # index a repo
knowing context -task "refactor auth" -format gcf      # ranked context
knowing test-scope -files internal/auth/handler.go     # affected tests
knowing why -task "refactor auth" -symbol "SessionHandler"  # explain ranking
knowing enrich embeddings                              # pre-cache vectors for faster queries

Documentation

Full docs at https://blackwell-systems.github.io/knowing

Source: https://github.com/blackwell-systems/knowing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

knowing-0.12.0-py3-none-manylinux2014_x86_64.whl (3.2 kB view details)

Uploaded Python 3

knowing-0.12.0-py3-none-manylinux2014_aarch64.whl (3.2 kB view details)

Uploaded Python 3

knowing-0.12.0-py3-none-macosx_11_0_arm64.whl (3.2 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

knowing-0.12.0-py3-none-macosx_10_12_x86_64.whl (3.2 kB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file knowing-0.12.0-py3-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for knowing-0.12.0-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 79695c304d1c198672cb3863d62f99bb9df46f65a0b9afaffa2398cac93ed4b5
MD5 d6d8fe77ec951731aeec7f4ccc3684cf
BLAKE2b-256 a9942c848a29640597dcc2549a50f1a91189d985d1cfdf3d1c70e074b5616608

See more details on using hashes here.

File details

Details for the file knowing-0.12.0-py3-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for knowing-0.12.0-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 160a727c429b4e1f0f34778725de0705bd49ccb33044d0b8893bad80f8950292
MD5 c506a29d793b6dbbf14fec62f5fda288
BLAKE2b-256 6f525b233cd87cacfce3849f1f9d08f9cd546b1d3a43df0fae83f5772c43c1c1

See more details on using hashes here.

File details

Details for the file knowing-0.12.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for knowing-0.12.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f1df972a1f8bea7ec193865067a0aea02b303e6af03468f264d35e623a815d6
MD5 385d4d50c4bea250fa507e7c99b302dd
BLAKE2b-256 f5900c2d14bd01a92f2dd0e3464666aaeef79ad37478258712c6dbed05a64b99

See more details on using hashes here.

File details

Details for the file knowing-0.12.0-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for knowing-0.12.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ddedd9c65f409d7d1260f14b5d65d9689dbf57a709a620f382f18f9ea395416f
MD5 89ed85c129eaa5eece14cd157bfd0122
BLAKE2b-256 559e1eba3c57471c944544a7dc422a11dba2a63c1d3dce29fa5aee18d11ab9c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page