Skip to main content

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

athena 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:

athena uninstall-mcp

to remove the MCP integration

Usage Workflow

cd /path/to/repository
athena 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


Download files

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

Source Distribution

athena_code-0.0.12.tar.gz (46.0 kB view details)

Uploaded Source

Built Distribution

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

athena_code-0.0.12-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file athena_code-0.0.12.tar.gz.

File metadata

  • Download URL: athena_code-0.0.12.tar.gz
  • Upload date:
  • Size: 46.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for athena_code-0.0.12.tar.gz
Algorithm Hash digest
SHA256 3b665e9a7654930a669279da1f8e0a12cc1594338fdb6511c8a523c474a83ce8
MD5 501145f00f5c5959df43b569114efa5b
BLAKE2b-256 81b1ba23284f08653a59dbe814d594c95b8ebf182049da5151139c1762e19a89

See more details on using hashes here.

Provenance

The following attestation bundles were made for athena_code-0.0.12.tar.gz:

Publisher: release.yml on kevinchannon/athena

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file athena_code-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: athena_code-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for athena_code-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 f7b66cf0cebca348d3ef4fb6253b866e6c59d5079f8ef949c226ba3ed0cda6a5
MD5 a2c295c4fa3ceb7a24ea690efa4adc3b
BLAKE2b-256 1b7c1c10efea53d77e5d8e73df128766fc6a2945544d6963310a5d966eea2a94

See more details on using hashes here.

Provenance

The following attestation bundles were made for athena_code-0.0.12-py3-none-any.whl:

Publisher: release.yml on kevinchannon/athena

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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