@mesadev/agentblame 0.1.0 → 0.1.1
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.
- package/README.md +84 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Agent Blame
|
|
2
|
+
|
|
3
|
+
Track AI-generated vs human-written code. Know what the AI wrote and focus your code reviews where it matters.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @mesadev/agentblame
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Setup
|
|
12
|
+
|
|
13
|
+
For a specific repo:
|
|
14
|
+
```bash
|
|
15
|
+
cd your-repo
|
|
16
|
+
agentblame install
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Or for all repos (run from anywhere):
|
|
20
|
+
```bash
|
|
21
|
+
agentblame install --global
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**Note:** Restart Cursor/Claude Code after running this.
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
1. Make AI edits in Cursor or Claude Code
|
|
29
|
+
2. Commit your changes (attribution attached automatically)
|
|
30
|
+
3. View attribution:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
agentblame blame <file>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Example Output
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
src/auth.ts
|
|
40
|
+
──────────────────────────────────────────────────────────────────────
|
|
41
|
+
|
|
42
|
+
a1b2c3d alice 2024-01-15 ✨ Cursor - claude-3.5-sonnet │ 1 │ export function login() {
|
|
43
|
+
a1b2c3d alice 2024-01-15 ✨ Cursor - claude-3.5-sonnet │ 2 │ const user = await db.find();
|
|
44
|
+
def456b bob 2024-01-20 │ 3 │ // Rate limiting
|
|
45
|
+
a1b2c3d alice 2024-01-15 ✨ Claude Code │ 5 │ return validate(user);
|
|
46
|
+
|
|
47
|
+
██████████████████████████████░░░░░░░░░░░░░░░░░░░░
|
|
48
|
+
✨ AI: 3 (75%) │ 👤 Human: 1 (25%)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## CLI Commands
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
agentblame install # Set up hooks (current repo)
|
|
55
|
+
agentblame install --global # Set up hooks (all repos)
|
|
56
|
+
agentblame uninstall # Remove hooks
|
|
57
|
+
agentblame blame <file> # Show AI attribution
|
|
58
|
+
agentblame blame --summary # Summary only
|
|
59
|
+
agentblame blame --json # JSON output
|
|
60
|
+
agentblame status # Show pending edits
|
|
61
|
+
agentblame sync # Transfer notes after squash/rebase
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Chrome Extension
|
|
65
|
+
|
|
66
|
+
See AI markers on GitHub PRs with our Chrome extension.
|
|
67
|
+
|
|
68
|
+
Get it from the [GitHub repository](https://github.com/mesa-dot-dev/agentblame#chrome-extension-optional).
|
|
69
|
+
|
|
70
|
+
## Troubleshooting
|
|
71
|
+
|
|
72
|
+
| Problem | Solution |
|
|
73
|
+
|---------|----------|
|
|
74
|
+
| Hooks not capturing | Restart Cursor/Claude Code |
|
|
75
|
+
| Notes not on GitHub | Run `git push origin refs/notes/agentblame` |
|
|
76
|
+
| After squash/rebase | Run `agentblame sync` |
|
|
77
|
+
|
|
78
|
+
## More Information
|
|
79
|
+
|
|
80
|
+
For developer documentation and Chrome extension installation, visit the [GitHub repository](https://github.com/mesa-dot-dev/agentblame).
|
|
81
|
+
|
|
82
|
+
## License
|
|
83
|
+
|
|
84
|
+
Apache 2.0
|