Code archaeologist - reconstruct function decision history via AST-aware lineage tracking
Project description
Archeologist - Code Lineage Tracker
CLI tool that reconstructs function decision history via AST-aware lineage tracking. Outputs JSON with commit messages and diffs - perfect for LLM context.
Install
pip install archeologist
Usage
# Analyze a specific function
arc analyze-function path/to/file.py function_name
# Get commit history with diffs
arc history path/to/file.py
# List all functions in a file
arc list-functions path/to/file.py
Output
JSON with commit hash, message, author, date, and diff:
{
"file": "src/flask/helpers.py",
"function": "stream_with_context",
"repo": "/path/to/repo",
"language": "python",
"lineage_edges": 10,
"changes": [
{
"commit_hash": "abc123...",
"commit_message": "redirect defaults to 303",
"author": "David Lord",
"date": "2026-01-24T16:50:54-08:00",
"diff": "diff --git a/src/flask/helpers.py..."
}
]
}
Environment
# Optional: for PR details
export GITHUB_TOKEN=ghp_xxx
# Optional: for narrative synthesis
export CLAUDE_API_KEY=sk-ant-xxx
Languages Supported
Python, JavaScript, TypeScript, Go, Rust, Java, C, C++, Ruby, PHP
Commands
analyze- Analyze file lineageanalyze-function- Analyze specific functionhistory- Show commit history with diffslist-functions- List all functions in filesearch- Search for function across repostats- Repository statistics
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 archeologist-0.1.8.tar.gz.
File metadata
- Download URL: archeologist-0.1.8.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee238a7a5ed1cdf4767872b82aec3333c3b6d1f1995afd36887a4e1989807076
|
|
| MD5 |
ab58901a231a4673fc3abacc59e0cb88
|
|
| BLAKE2b-256 |
1d269463e2550066472d5a335780ce385aa4fd1ffcbb3dafc6a5dbee6dacda63
|
File details
Details for the file archeologist-0.1.8-py3-none-any.whl.
File metadata
- Download URL: archeologist-0.1.8-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
500f79602b638e92d0594542584235bae2afc7eb6fa597807da74d5dd90b283f
|
|
| MD5 |
0a3b11022d16158da27af3f48a664d62
|
|
| BLAKE2b-256 |
92090bf64f3f98fbf842bf9fd82269620d025437873ba3aa32d3bf8adf1d257c
|