ArkaKhorchidian

Aishare — AI skill for Claude Code

AI community

How much of the code you shipped did AI write.

How to install Aishare

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ArkaKhorchidian/aishare and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Aishare does

How much of the code you shipped did AI write? Matches git blame against Claude Code, Codex and Gemini CLI session logs and AI co-author trailers.

Alternatives in AI

  • CliRelay — Self-hosted AI gateway for coding CLIs — one OpenAI/Claude/Gemini/Codex-compatible endpoint, with a multi-tena 1k ★
  • Project Butler — Project memory system for AI coding assistants (Claude Code, Cursor, Codex): session logs, project wiki, rules 372 ★
  • Tokentab — A CLI that reads Claude Code, Codex, and Gemini CLI session logs and works out how much they cost, by model, p 226 ★

README

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

aishare demo

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:

  1. **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 blame` on 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.

  2. **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