Skip to content

Commit a185d7d

Browse files
codeprakhar25claude
andcommitted
feat: remove legacy commands, update README, bump v0.1.21
Remove agentdiff migrate and agentdiff sync-notes (no-op legacy commands). Remove stale tracked files: .agentdiff/ledger.jsonl, .opencode/plugins/, .windsurf/hooks.json. README: Data & Privacy section, capture_prompts docs, Quick Start step for agentdiff status verification, requirements moved out of details block. v0.1.21 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f15b9fd commit a185d7d

11 files changed

Lines changed: 40 additions & 184 deletions

File tree

‎.agentdiff/ledger.jsonl‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎.opencode/plugins/agentdiff.ts‎

Lines changed: 0 additions & 96 deletions
This file was deleted.

‎.windsurf/hooks.json‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎Cargo.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "agentdiff"
3-
version = "0.1.19"
3+
version = "0.1.21"
44
edition = "2024"
55
rust-version = "1.85"
66
description = "Audit and trace autonomous AI code contributions in git repositories"

‎README.md‎

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ agentdiff list
3838
curl -fsSL https://raw.githubusercontent.com/codeprakhar25/agentdiff/master/install.sh | bash
3939
```
4040

41+
**Requirements:** Python 3.7+ on PATH, Git 2.20+
42+
4143
<details>
4244
<summary>Other install methods</summary>
4345

@@ -49,8 +51,6 @@ curl -fsSL https://raw.githubusercontent.com/codeprakhar25/agentdiff/master/inst
4951
cargo install --git https://github.com/codeprakhar25/agentdiff agentdiff
5052
```
5153

52-
**Requirements:** Python 3.7+ on PATH, Git 2.20+
53-
5454
</details>
5555

5656
---
@@ -65,17 +65,22 @@ agentdiff configure
6565
cd ~/your-project
6666
agentdiff init
6767

68-
# 3. Work normally — make AI-assisted edits, then commit
68+
# 3. Verify hooks are active
69+
agentdiff status
70+
71+
# 4. Work normally — make AI-assisted edits, then commit
6972
git add . && git commit -m "feat: add feature"
7073

71-
# 4. Inspect attribution
74+
# 5. Inspect attribution
7275
agentdiff list
7376
agentdiff blame src/main.rs
7477
agentdiff stats
7578
```
7679

7780
That's it. From here every commit is attributed to whichever agent (or human) wrote it.
7881

82+
> **Note:** `agentdiff configure` installs capture hooks globally — all repos you work on with AI agents will be tracked. To track only specific repos, you can skip the global configure and run `agentdiff init` per-repo only (you will need to configure hooks manually).
83+
7984
---
8085

8186
## Commands
@@ -521,6 +526,33 @@ agentdiff config show
521526

522527
---
523528

529+
## Data & Privacy
530+
531+
**What agentdiff captures:**
532+
533+
Each AI-assisted edit generates a trace entry containing:
534+
- Agent name and model (e.g., `claude-code`, `claude-sonnet-4-6`)
535+
- A short prompt excerpt (the first ~100 characters of your request to the AI)
536+
- File paths and line ranges affected
537+
- Timestamp and session ID
538+
539+
**Where it's stored:**
540+
541+
- **Locally:** `.git/agentdiff/session.jsonl` (not committed, stays in your `.git/` directory)
542+
- **On GitHub:** `refs/agentdiff/traces/{branch}` — pushed by `agentdiff push` or the pre-push hook
543+
544+
**Prompt content visibility:** Once pushed, prompt excerpts are accessible to anyone with read access to the repository. If your prompts contain sensitive business context, IP, or credentials, disable prompt capture:
545+
546+
```bash
547+
agentdiff config set capture_prompts false
548+
```
549+
550+
When `capture_prompts = false`, the `prompt` field is omitted from all trace entries.
551+
552+
**No external telemetry.** agentdiff does not send data to any server outside your own GitHub repository.
553+
554+
---
555+
524556
## MCP Server
525557

526558
`agentdiff-mcp` is a stdio MCP server for richer context capture. It exposes a `record_context` tool that writes structured metadata before a commit:

‎src/cli.rs‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ pub enum Command {
4848
/// Ledger maintenance commands
4949
Ledger(LedgerArgs),
5050

51-
/// Fetch refs/notes/agentdiff from origin
52-
SyncNotes,
53-
5451
/// Manage global and repo-level configuration
5552
Config(ConfigArgs),
5653

@@ -75,9 +72,6 @@ pub enum Command {
7572
/// Consolidate per-branch ref traces into agentdiff-meta (used by CI)
7673
Consolidate(ConsolidateArgs),
7774

78-
/// Legacy: import ledger.jsonl into agentdiff-meta
79-
Migrate,
80-
8175
/// Show remote agentdiff ref state (refs/agentdiff/* on origin)
8276
RemoteStatus(RemoteStatusArgs),
8377

‎src/commands/migrate.rs‎

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎src/commands/mod.rs‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ pub mod keys;
77
pub mod ledger;
88
pub mod list;
99
pub mod log;
10-
pub mod migrate;
1110
pub mod policy;
1211
pub mod push;
1312
pub mod remote_status;
@@ -16,5 +15,4 @@ pub mod show;
1615
pub mod sign_entry;
1716
pub mod stats;
1817
pub mod status;
19-
pub mod sync_notes;
2018
pub mod verify;

‎src/commands/sync_notes.rs‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)