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). No model downloads, no API keys required.

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, 277 equivalence classes bridging task vocabulary to code symbols.

P@10 = 0.330 across 302 tasks, 17 repos, 8 languages. 13 self-adapting mechanisms. 3.79x codegraph, 6.00x 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 lsp                                     # LSP enrichment for higher-quality edges

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.15.1-py3-none-manylinux2014_x86_64.whl (3.2 kB view details)

Uploaded Python 3

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

Uploaded Python 3

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

Uploaded Python 3macOS 11.0+ ARM64

knowing-0.15.1-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.15.1-py3-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for knowing-0.15.1-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fc2bdc0d4b31f025595da87623345f235ab77f163eac2db3b90679696c560f68
MD5 6e441808f59a50f1025352f1291a9ff3
BLAKE2b-256 dcb8e6de378d691afa267aaeca36b974df0efbc20ce22c79c7e4016da8da5211

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for knowing-0.15.1-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 af3b2928f8fd440a4be1ea5d1673e994f7616fca3ac25ebd66879bd0ef25944b
MD5 7a9b6aa6e53cf6da421bb61a4cbf80b0
BLAKE2b-256 1332b7a1d637401a3316059408ae2ca7ea1525d7e2354beaf3ab946ae9b7c014

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for knowing-0.15.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d816bd2154dd895b9e7e25196e39f7322aef71bf7589213cb785be712ce2724
MD5 cb44076cbf924f004a02d63df003142a
BLAKE2b-256 8aac98d838757a16288ddc533751741f317627d12c0346f65418b08e408b4138

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for knowing-0.15.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6c0475e2e61f5e984bae387f8fb44559f44fbdecf2801f050afabdee8144e1b3
MD5 cea62d41c234636d15f0a953833014ba
BLAKE2b-256 c496d0a721275e90a77807f468396abfc938151a0622cbe2ce4344ad96c8782e

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