talkcode: Talk to your codebase using AI and static analysis.
Project description
Talkcode
Talk to your legacy Python codebase using AI and static analysis.
talkcode helps developers explore, understand, and query large codebases using natural language and intelligent indexing.
🚀 What Is It?
talkcode is a command-line tool that combines static analysis with AI to make legacy Python codebases more accessible. Whether you're onboarding a new team member or reverse-engineering a complex system, talkcode lets you ask questions like:
- “Where is
process_order()used?” - “What does
UserManagerdepend on?” - “Show me all functions that modify global state.”
🔍 Features
- 📦 Static analysis of Python codebases
- 🔍 Function and class indexing
- 🔁 Call flow tracing
- 🔑 Keyword-based code search
- 🤖 Optional AI integration for natural language Q&A
- 🖥️ Terminal UI powered by [
textual]
📦 Installation
pip install talkcode
🛠️ Usage
talkcode init
talkcode index --path /path/to/codebase
talkcode chat --ai
talkcode ui --ai
🤖 AI Integration
Enable AI-powered answers with:
talkcode chat --ai
Supported Providers
- ✅ Azure OpenAI
Coming Soon
- 🔜 Google Gemini
- 🔜 Anthropic Claude
To configure Azure OpenAI, create a config file at:
# ~/.talkcode/config.toml
[azure]
provider = "azure"
endpoint = "https://your-resource-name.openai.azure.com/"
deployment = "your-model-deployment-name"
api_version = "2023-07-01-preview"
api_key = "your-azure-openai-api-key"
🖥️ Textual UI
Launch the interactive terminal UI:
talkcode ui
Enable AI in the UI:
talkcode ui --ai
📄 License
This project is licensed under the MIT License.
You are free to use, modify, and distribute this software with proper attribution.
💬 Example Responses
Here are anonymized examples of the kinds of insights talkcode can generate:
🔗 Dependencies
This module depends on:
- A secrets manager client for secure credential access
- A GPT-based AI interface for natural language processing
📡 Downstream Consumers
This component is invoked by:
- A markdown conversion utility that formats analysis results
- An evaluation module that scores AI-generated outputs
🧠 AI-Powered Answers
Q: What does the authentication handler rely on?
A: It depends on a token validator, a configuration loader, and a secrets manager.
Q: Which modules call the data transformation pipeline?
A: The pipeline is triggered by the ingestion service and the reporting engine.
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 talkcode-0.1.0.tar.gz.
File metadata
- Download URL: talkcode-0.1.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e659b42a7c7d9360d5d1a9208b5ee199e54ee7c3596581a11c91ab180b9a400
|
|
| MD5 |
0224589262cb8fdf797f35813639c120
|
|
| BLAKE2b-256 |
49cb254e976e7502792eaf3ebdaa863708f6e2e57ad9d0125ec56c66e3cc1fba
|
File details
Details for the file talkcode-0.1.0-py3-none-any.whl.
File metadata
- Download URL: talkcode-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a20585db0ee86156844245c924862f6218077c12a178dd5ac25b0edd547f8acd
|
|
| MD5 |
b4f5640c9a5ebc6b179fa91284429542
|
|
| BLAKE2b-256 |
25f0943a674e3f1e18cb92568aae874b506833efc88ee33e5aed412c4517b7d5
|