athena-code 0.0.14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of athena-code might be problematic. Click here for more details.

@@ -0,0 +1,152 @@
1
+ Metadata-Version: 2.4
2
+ Name: athena-code
3
+ Version: 0.0.14
4
+ Summary: A semantic code analysis tool designed to help Claude Code navigate repositories efficiently while dramatically reducing token consumption.
5
+ Requires-Python: >=3.12
6
+ Description-Content-Type: text/markdown
7
+ License-File: LICENSE
8
+ Requires-Dist: typer>=0.12.0
9
+ Requires-Dist: tree-sitter>=0.21.0
10
+ Requires-Dist: tree-sitter-python>=0.21.0
11
+ Requires-Dist: mcp>=1.0.0
12
+ Requires-Dist: rich>=14.2.0
13
+ Provides-Extra: dev
14
+ Requires-Dist: build; extra == "dev"
15
+ Requires-Dist: pytest>=7.0; extra == "dev"
16
+ Requires-Dist: pytest-cov>=4.0; extra == "dev"
17
+ Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
18
+ Requires-Dist: tasktree; extra == "dev"
19
+ Dynamic: license-file
20
+
21
+ # Athena Code Knowledge
22
+
23
+ A semantic code analysis tool designed to help Claude Code navigate repositories efficiently while dramatically reducing token consumption.
24
+
25
+ ## Motivation
26
+
27
+ 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.
28
+
29
+ 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.
30
+
31
+ ## What's the deal with the name?
32
+ 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.
33
+
34
+ One of her symbolic animals was the owl.
35
+
36
+ ## Installation
37
+
38
+ NOTE: Athena currently only works in a Python codebase. More supported languages coming soon!
39
+
40
+ Install with pipx:
41
+ ```bash
42
+ pipx install athena-code
43
+ ```
44
+ 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:
45
+ ```bash
46
+ pipx install --python python3.12 athena-code
47
+ ```
48
+
49
+ ## Usage
50
+ use `athena --help` to see up-to-date information about the available features:
51
+
52
+ ```
53
+ ╭─ Commands ─────────────────────────────────────────────────────────────────────╮
54
+ │ locate Locate entities (functions, classes, methods) by name. │
55
+ │ info Get detailed information about a code entity or package. │
56
+ │ mcp-server Start the MCP server for Claude Code integration. │
57
+ │ install-mcp Install MCP server configuration for Claude Code. │
58
+ │ sync Update @athena hash tags in docstrings. │
59
+ │ status Check docstring hash synchronization status. │
60
+ │ uninstall-mcp Remove MCP server configuration from Claude Code. │
61
+ ╰────────────────────────────────────────────────────────────────────────────────╯
62
+ ```
63
+
64
+ Generally, you will install `athena` and then:
65
+ - Run `athena sync` in your codebase. This will add Athena's hashes to all the docstrings and allow `athena` to detect code changes that have invalidated the docstrings.
66
+ - After code changes, run `athena status` to see a table of all the functions that have been updated and may have had their docstrings invalidated.
67
+ - Update the necessary docstrings and then run `athena sync` again to update all the necessary hashes.
68
+
69
+ If you want to find an entity in the codebase, then just run `athena locate <entity>` to get details on the file and lines the entity occupies:
70
+ ```bash
71
+ > athena locate get_task
72
+ Kind Path Extent
73
+ method src/tasktree/parser.py 277-286
74
+ ```
75
+
76
+ Once you know where a thing is, then you can ask for info about it:
77
+ ```bash
78
+ > athena info src/tasktree/parser.py:get_task
79
+ {
80
+ "method": {
81
+ "name": "Recipe.get_task",
82
+ "path": "src/tasktree/parser.py",
83
+ "extent": {
84
+ "start": 277,
85
+ "end": 286
86
+ },
87
+ "sig": {
88
+ "name": "get_task",
89
+ "args": [
90
+ {
91
+ "name": "self"
92
+ },
93
+ {
94
+ "name": "name",
95
+ "type": "str"
96
+ }
97
+ ],
98
+ "return_type": "Task | None"
99
+ },
100
+ "summary": "Get task by name.\n\n Args:\n name: Task name (may be namespaced like 'build.compile')\n\n Returns:\n Task if found, None otherwise\n "
101
+ }
102
+ }
103
+ ```
104
+
105
+ ## Install Claude MCP integrations
106
+
107
+ Athena includes Model Context Protocol (MCP) integration, exposing code navigation capabilities as first-class tools in Claude Code.
108
+
109
+ ### Benefits
110
+
111
+ - **Native tool discovery** — Tools appear in Claude Code's capabilities list
112
+ - **Structured I/O** — Type-safe parameters and responses
113
+
114
+ ### Available Tools
115
+
116
+ - **`ack_locate`** — Find Python entity location (file path + line range)
117
+
118
+ ### Installation
119
+
120
+ ```bash
121
+ athena install-mcp
122
+ ```
123
+
124
+ 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.
125
+
126
+ **Uninstalling:**
127
+
128
+ If you don't like using your Anthropic tokens more efficiently to generate better code, for some reason, then:
129
+ ```bash
130
+ athena uninstall-mcp
131
+ ```
132
+ to remove the MCP integration
133
+
134
+ ## Usage Workflow
135
+
136
+ ```bash
137
+ cd /path/to/repository
138
+ athena locate validateSession # Find the locations of entities in the codebase
139
+ ```
140
+
141
+ ## Contributing
142
+
143
+ This is an active development project. Early-stage contributions welcome, particularly:
144
+
145
+ - Tree-sitter AST extraction improvements
146
+ - Language-specific signature formatting
147
+ - LLM prompt engineering for summary quality
148
+ - Performance benchmarking
149
+
150
+ ## License
151
+
152
+ MIT - See LICENSE
@@ -0,0 +1,24 @@
1
+ athena/README.md,sha256=JL20Ydnw7Hj-YQsooxVcRTO7K3-XAim0wNQB6FFa2pU,5397
2
+ athena/__init__.py,sha256=8aCUb_2UakYGL8Co0IqXxD3A_gedQc2HTfKfRE492Q0,324
3
+ athena/__main__.py,sha256=pScNVxkWfc2jryr07rhQ4xNo-MPoPIaavOjrXWHXUaU,66
4
+ athena/cli.py,sha256=vx9zDwMruPAHhxs5ljdGUaVZywLxnSKULBS0utQkcH0,11501
5
+ athena/docstring_updater.py,sha256=IB3WDW55lH33Ti8NjUDjL2Q4R48BdvbDJ-xz_W_8UTc,5046
6
+ athena/entity_path.py,sha256=1Gg4OdNOdqkMv_L_tjUsSsH6QiczccOuUhBf3Vg0GXU,4414
7
+ athena/hashing.py,sha256=hCUqX1xYiwTfmetrvtA51zIUZVU3Ij0d9WvJVWhak_8,4749
8
+ athena/info.py,sha256=VPXf60LBjCx1KXMO1bnY-UQr4rcPkD4J4bRqGHbIJts,2935
9
+ athena/locate.py,sha256=Tl9-Ff86QQosqrPlTPsQisd7rXZk7EDbpuvdsYgzD00,1799
10
+ athena/mcp_config.py,sha256=1H9K6DUpBno3F4fvLWoUqqWSzUufdE7toucJZY2Xk94,3084
11
+ athena/mcp_server.py,sha256=3i_0quaD5KnUbyVZwWXF34PziCjpYSDFLxOpj_RCvKU,6413
12
+ athena/models.py,sha256=pkK91Zr1lRn-iwUyV76v5cHDeuNkGVDXgrWsXTJpRtw,2063
13
+ athena/repository.py,sha256=j2IMP47I1_qgr2sBbD24I5RH_Zf-rg-LLzdQB0PAwQI,1807
14
+ athena/status.py,sha256=1h8Y_BofMxVvH2laFHuiu0flSVXjdCjVSZfxpWLtSSE,2806
15
+ athena/sync.py,sha256=-ljJe4HrvxLImsZaa_XbDkfWt0TnsZYTkvrzYM0RRGk,23819
16
+ athena/parsers/__init__.py,sha256=FavxGyvYQYYknzzmvCHQ3_d_W2cJZKAaWXvafywxb9A,580
17
+ athena/parsers/base.py,sha256=ObnAZ7X02dDY7cjo6E0X8rQCuTMJoJ27u51GoHlCMBU,1221
18
+ athena/parsers/python_parser.py,sha256=XUHX8mtJGNbgs3E14JblioadLPwAHzrDnID36lgve3Y,26332
19
+ athena_code-0.0.14.dist-info/licenses/LICENSE,sha256=LxfkzMUj9-IB0KuB3Lnt_usK0XcsMM9d1_bqwCbLCM0,1069
20
+ athena_code-0.0.14.dist-info/METADATA,sha256=SBN2szqKkrREu9odvfjlr4ZJHxKQVUW-ZUqc2Gq9hzY,6112
21
+ athena_code-0.0.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
22
+ athena_code-0.0.14.dist-info/entry_points.txt,sha256=_jGdP9-6-_1tCbmQKuxzrGev7MwLO3eJj7SaS9GYDEk,63
23
+ athena_code-0.0.14.dist-info/top_level.txt,sha256=EN8_eWXgVxKOxXtKLSOsY8-K2CSa7JA1b03zO18n6II,7
24
+ athena_code-0.0.14.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ ack = athena.cli:app
3
+ athena = athena.cli:app
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 kevinchannon
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ athena