A semantic code analysis tool designed to help Claude Code navigate repositories efficiently while dramatically reducing token consumption.
Project description
Athena Code Knowledge
A semantic code analysis tool designed to help Claude Code navigate repositories efficiently while dramatically reducing token consumption.
Motivation
Claude Code currently incurs significant token costs during repository navigation. A typical planning phase involves reading 10-20 files to understand codebase architecture, consuming substantially more tokens than the targeted modifications themselves. This linear scaling with codebase size makes work on large repositories inefficient.
Most discovery queries ("What does this file contain?", "Where is function X?") don't require reading entire source files. By building a queryable semantic index, we can answer these questions using structured metadata instead, potentially reducing planning token costs by 15-30x.
What's the deal with the name?
Athena was an Ancient Greek goddess associated with strategic wisdom, logic, crafts, architecture and discipline. She is a patron of engineers and planners, not dreamers. Seemed appropriate.
One of her symbolic animals was the owl.
Installation
NOTE: Athena currently only works in a Python codebase. More supported languages coming soon!
Install with pipx:
pipx install athena-code
Requires at least Python 3.12, so if that's not installed you should do that with your system package manager. It doesn't need to be the default Python, you can leave that at whatever you want and point Pipx at Python 3.12 explicitly:
pipx install --python python3.12 athena-code
Install Claude MCP integrations
Athena includes Model Context Protocol (MCP) integration, exposing code navigation capabilities as first-class tools in Claude Code.
Benefits
- Native tool discovery — Tools appear in Claude Code's capabilities list
- Structured I/O — Type-safe parameters and responses
Available Tools
ack_locate— Find Python entity location (file path + line range)
Installation
ack install-mcp
This automatically configures Claude Code by adding the MCP server entry to your config file. You will need to restart Claude Code for changes to take effect.
Uninstalling:
If you don't like using your Anthropic tokens more efficiently to generate better code, for some reason, then:
ack uninstall-mcp
to remove the MCP integration
Usage Workflow
cd /path/to/repository
ack locate validateSession # Find the locations of entities in the codebase
Contributing
This is an active development project. Early-stage contributions welcome, particularly:
- Tree-sitter AST extraction improvements
- Language-specific signature formatting
- LLM prompt engineering for summary quality
- Performance benchmarking
License
MIT - See LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file athena_code-0.0.5.tar.gz.
File metadata
- Download URL: athena_code-0.0.5.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a911fe10ac7f2befdc9a2f425f5870e18b89d591ff5af1f78af19c6ba2c15cf2
|
|
| MD5 |
7870a2115cf61aeb8c1ada7286ec6677
|
|
| BLAKE2b-256 |
536f0203440c1ce91862f6a6bc16b40a80a5ab1735d44bfae0d6a73f2db94914
|
Provenance
The following attestation bundles were made for athena_code-0.0.5.tar.gz:
Publisher:
release.yml on kevinchannon/athena
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
athena_code-0.0.5.tar.gz -
Subject digest:
a911fe10ac7f2befdc9a2f425f5870e18b89d591ff5af1f78af19c6ba2c15cf2 - Sigstore transparency entry: 815188745
- Sigstore integration time:
-
Permalink:
kevinchannon/athena@1d711f13b11cfa03b25d561345b41e4443d532ab -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/kevinchannon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1d711f13b11cfa03b25d561345b41e4443d532ab -
Trigger Event:
push
-
Statement type:
File details
Details for the file athena_code-0.0.5-py3-none-any.whl.
File metadata
- Download URL: athena_code-0.0.5-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54b83897e217ba9995fba2b02b6e45959a42370b568410bf723c9832bd3ca150
|
|
| MD5 |
b92bea31b05488ac79d6ac21da5b529a
|
|
| BLAKE2b-256 |
3b206554db25333c5f8ae25a94b2a7283f9b8ad80e8b968683d3a1be5089db79
|
Provenance
The following attestation bundles were made for athena_code-0.0.5-py3-none-any.whl:
Publisher:
release.yml on kevinchannon/athena
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
athena_code-0.0.5-py3-none-any.whl -
Subject digest:
54b83897e217ba9995fba2b02b6e45959a42370b568410bf723c9832bd3ca150 - Sigstore transparency entry: 815188747
- Sigstore integration time:
-
Permalink:
kevinchannon/athena@1d711f13b11cfa03b25d561345b41e4443d532ab -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/kevinchannon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1d711f13b11cfa03b25d561345b41e4443d532ab -
Trigger Event:
push
-
Statement type: