aishare
How much of the code you shipped did AI write? aishare looks at every line git blames on you this year that's still in your code, and works out which ones came from Claude Code, Codex, Gemini CLI, Copilot, Cursor and friends.
uvx aishare ~/code
Demo on a made-up developer's year (three repos plus agent logs) generated by docs/demo.py. Run it on your own code to get your number.
How it knows
Two independent signals, both read locally:
-
Agent session logs. Coding agents keep a transcript of every file they write or edit. aishare reads them and records the exact lines each agent produced, per file, and when:
- Claude Code:
~/.claude/projects/*/*.jsonl(Write,Edit,MultiEdit) - Codex CLI:
~/.codex/sessions/**/rollout-*.jsonl(apply_patch) - Gemini CLI:
~/.gemini/tmp/*/chats/session-*(write_file,replace)
Then it runs
git blameon the files you changed in the period. A line counts as AI-written if an agent wrote that exact line (ignoring whitespace) into that file before the commit that introduced it. Lines you wrote earlier that an agent merely re-saved don't count, and lines you later rewrote by hand become yours. - Claude Code:
-
AI co-author trailers. Commits that say
Co-authored-by: Claude / Copilot / Cursor Agent / Codex / Gemini / Aider / Devin…or "Generated with Claude Code", plus commits authored by agent bots (Copilot coding agent, Devin, Jules).
Only substantive lines count: blank lines, lone braces and the like are skipped on both sides, and lockfiles, minified files and build output are ignored.
What it can't see
- Inline autocomplete (Copilot, Cursor Tab, Supermaven) leaves no log or trailer, so it's counted as yours. Real numbers are usually higher.
- Chat copy-paste from ChatGPT or Claude.ai in a browser.
- Agents that don't keep local logs. Cursor stores its history in a database, not supported yet.
So treat the result as a floor.
Options
aishare # the repo you're in
aishare ~/code # every repo under a folder
aishare --since 2026-06 # a different window (YYYY, YYYY-MM or YYYY-MM-DD)
aishare --email old@work.com # also count commits under another email
aishare --json # numbers for scripts
It uses your global git config user.email and user.name to decide which lines are yours.
Privacy
Everything runs on your machine. aishare reads git and your agents' log files and sends nothing anywhere.
Install
uvx aishare # run without installing
pipx install aishare # or install it
Requires Python 3.9+ and git. The only dependency is rich.
License
MIT
Metadata
Release files for aishare 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aishare-0.1.0.tar.gz | 16.1 kB | With provenance | Details for aishare-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aishare-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aishare-0.1.0-py3-none-any.whl |
Total release size: 31.8 kB
Security for aishare 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.