agentdir-cli 0.7.7__tar.gz → 0.8.0__tar.gz

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.
Files changed (99) hide show
  1. {agentdir_cli-0.7.7/src/agentdir_cli.egg-info → agentdir_cli-0.8.0}/PKG-INFO +105 -8
  2. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/README.md +104 -7
  3. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/AGENTIC_CODING.md +10 -1
  4. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/INSTALL.md +17 -6
  5. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/PI_PACKAGE.md +5 -3
  6. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/RELEASING.md +44 -15
  7. agentdir_cli-0.8.0/docs/releases/v0.7.8.md +50 -0
  8. agentdir_cli-0.8.0/docs/releases/v0.8.0.md +125 -0
  9. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/package.json +2 -2
  10. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/pyproject.toml +1 -1
  11. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/scripts/install.sh +3 -1
  12. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/scripts/rollback.sh +1 -1
  13. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/skills/agentdir/SKILL.md +19 -1
  14. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/__init__.py +1 -1
  15. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/audit.py +226 -8
  16. agentdir_cli-0.8.0/src/agentdir/claims.py +154 -0
  17. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/cli.py +83 -8
  18. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/control.py +20 -6
  19. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/doctor.py +60 -3
  20. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/envelope.py +20 -1
  21. agentdir_cli-0.8.0/src/agentdir/git.py +93 -0
  22. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/index.py +3 -3
  23. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/rendering.py +11 -1
  24. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/secrets.py +2 -2
  25. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/sessions.py +80 -11
  26. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/skills.py +25 -4
  27. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/store.py +39 -13
  28. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0/src/agentdir_cli.egg-info}/PKG-INFO +105 -8
  29. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir_cli.egg-info/SOURCES.txt +9 -1
  30. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/tests/test_agent_first.py +20 -1
  31. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/tests/test_audit.py +100 -0
  32. agentdir_cli-0.8.0/tests/test_claim_polarity.py +141 -0
  33. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/tests/test_environment.py +1 -0
  34. agentdir_cli-0.8.0/tests/test_header_folding.py +87 -0
  35. agentdir_cli-0.8.0/tests/test_install_script.py +14 -0
  36. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/tests/test_pi_package.py +3 -2
  37. agentdir_cli-0.8.0/tests/test_structured_claims.py +179 -0
  38. agentdir_cli-0.8.0/tests/test_worktrees.py +138 -0
  39. agentdir_cli-0.7.7/src/agentdir/git.py +0 -45
  40. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/LICENSE +0 -0
  41. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/MANIFEST.in +0 -0
  42. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/DEMO.md +0 -0
  43. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/PRD.md +0 -0
  44. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/TECH_BRIEF.md +0 -0
  45. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/assets/agentdir-overview.png +0 -0
  46. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/investigations/2026-05-12-cross-repo-ergonomics-lanes.md +0 -0
  47. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/investigations/2026-05-12-rag-vector-scenarios.md +0 -0
  48. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.1.0.md +0 -0
  49. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.1.1.md +0 -0
  50. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.2.0.md +0 -0
  51. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.3.0.md +0 -0
  52. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.3.1.md +0 -0
  53. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.3.2.md +0 -0
  54. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.3.3.md +0 -0
  55. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.3.4.md +0 -0
  56. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.4.0.md +0 -0
  57. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.5.0.md +0 -0
  58. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.5.1.md +0 -0
  59. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.5.2.md +0 -0
  60. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.5.3.md +0 -0
  61. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.6.0.md +0 -0
  62. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.7.0.md +0 -0
  63. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.7.1.md +0 -0
  64. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.7.2.md +0 -0
  65. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.7.3.md +0 -0
  66. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.7.4.md +0 -0
  67. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.7.5.md +0 -0
  68. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.7.6.md +0 -0
  69. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/docs/releases/v0.7.7.md +0 -0
  70. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/examples/dogfood-session.sh +0 -0
  71. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/setup.cfg +0 -0
  72. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/__main__.py +0 -0
  73. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/actors.py +0 -0
  74. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/artifacts.py +0 -0
  75. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/capture.py +0 -0
  76. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/context.py +0 -0
  77. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/daemon.py +0 -0
  78. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/environment.py +0 -0
  79. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/events.py +0 -0
  80. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/federation.py +0 -0
  81. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/fsutil.py +0 -0
  82. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/gitignore.py +0 -0
  83. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/hooks.py +0 -0
  84. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/mailbox.py +0 -0
  85. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/memory.py +0 -0
  86. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/query.py +0 -0
  87. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/redaction.py +0 -0
  88. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/replay.py +0 -0
  89. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/retention.py +0 -0
  90. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/review.py +0 -0
  91. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir/upgrade.py +0 -0
  92. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir_cli.egg-info/dependency_links.txt +0 -0
  93. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir_cli.egg-info/entry_points.txt +0 -0
  94. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir_cli.egg-info/requires.txt +0 -0
  95. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/src/agentdir_cli.egg-info/top_level.txt +0 -0
  96. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/tests/test_agent_trust.py +0 -0
  97. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/tests/test_truncation.py +0 -0
  98. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/tests/test_v1_behavior.py +0 -0
  99. {agentdir_cli-0.7.7 → agentdir_cli-0.8.0}/tests/test_vector_memory.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentdir-cli
3
- Version: 0.7.7
3
+ Version: 0.8.0
4
4
  Summary: Local-first Maildir-inspired work mailstore for software agents
5
5
  Author: AgentDir Contributors
6
6
  License-Expression: MIT
@@ -34,13 +34,17 @@ Dynamic: license-file
34
34
  # AgentDir
35
35
 
36
36
  <p align="center">
37
- <img src="https://raw.githubusercontent.com/jstxn/agentdir/main/docs/assets/agentdir-overview.png" alt="AgentDir turns agent work into a saved trail, searchable memory, and proof for engineers." />
37
+ <img src="docs/assets/agentdir-agent-trace-demo.gif" alt="AgentDir records observable agent reasoning artifacts, tool calls, evidence, and handoffs across Codex, Claude, Pi, and other coding agents." />
38
38
  </p>
39
39
 
40
40
  <p align="center">
41
41
  <strong>Local-first memory and evidence for agentic engineering.</strong>
42
42
  </p>
43
43
 
44
+ <p align="center">
45
+ <a href="https://github.com/jstxn/agentdir/actions/workflows/ci.yml"><img src="https://github.com/jstxn/agentdir/actions/workflows/ci.yml/badge.svg" alt="CI status" /></a>
46
+ </p>
47
+
44
48
  AgentDir is a flight recorder for coding agents. It lets agents record what
45
49
  happened during a software task, then gives engineers a clean way to inspect,
46
50
  replay, search, and audit that work later.
@@ -128,7 +132,8 @@ curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/install
128
132
 
129
133
  The installer uses `pipx` when available. Otherwise it creates a self-contained
130
134
  virtual environment under `~/.local/share/agentdir` and links the CLI into
131
- `~/.local/bin`.
135
+ `~/.local/bin`. It does not edit Git configuration or ignore files; after
136
+ installation it prints the explicit adoption choices.
132
137
 
133
138
  Verify:
134
139
 
@@ -155,7 +160,7 @@ available automatically during coding tasks:
155
160
  Package page: [@jstxn/agentdir-pi](https://pi.dev/packages/@jstxn/agentdir-pi)
156
161
 
157
162
  ```bash
158
- pi install npm:@jstxn/agentdir-pi@0.7.7
163
+ pi install npm:@jstxn/agentdir-pi@0.8.0
159
164
  # or install directly from a local checkout / release tag:
160
165
  pi install /absolute/path/to/agentdir
161
166
  pi install git:github.com/jstxn/agentdir@<tag-or-commit>
@@ -174,6 +179,13 @@ Run once from a git repository:
174
179
  agentdir adopt
175
180
  ```
176
181
 
182
+ Coding agents use the non-interactive form below so `.agentdir/` is ignored at
183
+ the user level without creating a repository `.gitignore` change:
184
+
185
+ ```bash
186
+ agentdir adopt --gitignore user
187
+ ```
188
+
177
189
  This is intentionally boring setup. It prepares the repository once, then agents
178
190
  operate AgentDir during normal coding work:
179
191
 
@@ -219,6 +231,10 @@ agentdir adopt --gitignore user # write the user-level Git excludes file
219
231
  agentdir adopt --gitignore none # leave ignore files unchanged
220
232
  ```
221
233
 
234
+ Generated AgentDir guidance selects `--gitignore user` by default. The plain
235
+ interactive command still prompts, and all three explicit choices remain
236
+ available.
237
+
222
238
  Undo managed setup while keeping the `.agentdir` evidence store:
223
239
 
224
240
  ```bash
@@ -249,6 +265,26 @@ directory is `.git/hooks` by default and follows `core.hooksPath` or linked
249
265
  worktree configuration. In rulesync repos, the source rule replaces the listed
250
266
  project guidance files as the managed source of truth.
251
267
 
268
+ ## Git Worktrees
269
+
270
+ A repository has one store, shared by every `git worktree` checkout. Commands
271
+ run inside a linked worktree resolve to the main working tree's `.agentdir`, so
272
+ evidence and memory from all worktrees stay searchable together instead of
273
+ fragmenting into one store per branch.
274
+
275
+ Each worktree still keeps its own active session, so parallel agents in
276
+ different worktrees do not overwrite each other.
277
+
278
+ Two cases keep a store inside the worktree instead:
279
+
280
+ ```bash
281
+ # a store already present in the worktree always wins
282
+ AGENTDIR_WORKTREE_STORE=local agentdir adopt # or opt out explicitly
283
+ ```
284
+
285
+ `agentdir doctor` warns when a worktree holds a store separate from the main
286
+ one and names the command that joins them for search.
287
+
252
288
  ## Inspect A Session
253
289
 
254
290
  Most users will not need these commands every day, but they are the reason
@@ -267,7 +303,8 @@ For final-answer support:
267
303
 
268
304
  ```bash
269
305
  agentdir audit session
270
- agentdir audit claims --text final-response.md
306
+ agentdir audit claims # recorded structured claims
307
+ agentdir audit claims --text final-response.md # prose, when not instrumented
271
308
  ```
272
309
 
273
310
  Audits are advisory by default. Use `--strict` when unsupported or contradicted
@@ -316,9 +353,44 @@ gaps, and recommended next agent actions.
316
353
 
317
354
  ### Claims-To-Evidence Checks
318
355
 
319
- AgentDir can compare final-response claims such as "tests passed" or "build
320
- passed" against the latest recorded tool results. It does this with
321
- deterministic heuristics, not an LLM.
356
+ Agents record what a check showed, and AgentDir compares that against the
357
+ recorded tool results. It does this deterministically, not with an LLM.
358
+
359
+ ```bash
360
+ agentdir claim test --passed
361
+ agentdir claim build --failed --note "linker error in release profile"
362
+ agentdir claim list
363
+ agentdir audit claims # checks recorded claims against evidence
364
+ agentdir audit claims --strict # exit 1 when a claim is not supported
365
+ ```
366
+
367
+ A structured claim names its family and outcome outright, so checking it is a
368
+ comparison rather than an interpretation of prose:
369
+
370
+ | Claim | Evidence | Result |
371
+ | --- | --- | --- |
372
+ | passed | succeeded | `supported` |
373
+ | passed | failed | `contradicted` |
374
+ | failed | failed | `acknowledged` |
375
+ | failed | succeeded | `contradicted` |
376
+ | either | none recorded | `unsupported` |
377
+ | none recorded | failed | `unreviewed` |
378
+
379
+ Recording a family again replaces its earlier claim, so a check re-run after a
380
+ fix supersedes rather than accumulates. Claiming a failure honestly is
381
+ `acknowledged` and does not count against the audit.
382
+
383
+ A claim made in error can be withdrawn:
384
+
385
+ ```bash
386
+ agentdir claim build --retract
387
+ ```
388
+
389
+ Claims are append-only events, so retracting supersedes the earlier claim in the
390
+ latest-claim view while leaving both in the record.
391
+
392
+ Recorded claims also reach the `agent_handoff` object without any final text
393
+ being supplied.
322
394
 
323
395
  Supported claim families:
324
396
 
@@ -329,6 +401,31 @@ Supported claim families:
329
401
  - doctor
330
402
  - release
331
403
 
404
+ #### Auditing prose instead
405
+
406
+ For final responses that were not instrumented, `agentdir audit claims --text`
407
+ reads claims out of prose:
408
+
409
+ ```bash
410
+ agentdir audit claims --text final-response.md
411
+ ```
412
+
413
+ This path has to infer intent from wording, so prefer recorded claims when the
414
+ agent can emit them.
415
+
416
+ Claim detection is keyword-based, so ordinary phrasing such as "everything
417
+ works" or "verified locally" matches no family. When recorded evidence failed
418
+ and the text makes no checkable claim about it, the audit reports that family as
419
+ `unreviewed` and is not `ok`, rather than passing because it found nothing to
420
+ check. `claims_detected` reports how many claims were actually parsed, so
421
+ "nothing to audit" is never mistaken for "audited and clean".
422
+
423
+ Text that states the failure instead ("tests failed", "two tests fail") is
424
+ reported as `acknowledged` and does not count against the audit, so honest
425
+ failure reporting is never flagged like text that hid the failure. Failure
426
+ vocabulary asserting success ("no test failures") is treated as a success claim
427
+ and checked against evidence like any other.
428
+
332
429
  ### Context Packs
333
430
 
334
431
  Agents can package retrieved context into auditable source manifests:
@@ -1,13 +1,17 @@
1
1
  # AgentDir
2
2
 
3
3
  <p align="center">
4
- <img src="https://raw.githubusercontent.com/jstxn/agentdir/main/docs/assets/agentdir-overview.png" alt="AgentDir turns agent work into a saved trail, searchable memory, and proof for engineers." />
4
+ <img src="docs/assets/agentdir-agent-trace-demo.gif" alt="AgentDir records observable agent reasoning artifacts, tool calls, evidence, and handoffs across Codex, Claude, Pi, and other coding agents." />
5
5
  </p>
6
6
 
7
7
  <p align="center">
8
8
  <strong>Local-first memory and evidence for agentic engineering.</strong>
9
9
  </p>
10
10
 
11
+ <p align="center">
12
+ <a href="https://github.com/jstxn/agentdir/actions/workflows/ci.yml"><img src="https://github.com/jstxn/agentdir/actions/workflows/ci.yml/badge.svg" alt="CI status" /></a>
13
+ </p>
14
+
11
15
  AgentDir is a flight recorder for coding agents. It lets agents record what
12
16
  happened during a software task, then gives engineers a clean way to inspect,
13
17
  replay, search, and audit that work later.
@@ -95,7 +99,8 @@ curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/install
95
99
 
96
100
  The installer uses `pipx` when available. Otherwise it creates a self-contained
97
101
  virtual environment under `~/.local/share/agentdir` and links the CLI into
98
- `~/.local/bin`.
102
+ `~/.local/bin`. It does not edit Git configuration or ignore files; after
103
+ installation it prints the explicit adoption choices.
99
104
 
100
105
  Verify:
101
106
 
@@ -122,7 +127,7 @@ available automatically during coding tasks:
122
127
  Package page: [@jstxn/agentdir-pi](https://pi.dev/packages/@jstxn/agentdir-pi)
123
128
 
124
129
  ```bash
125
- pi install npm:@jstxn/agentdir-pi@0.7.7
130
+ pi install npm:@jstxn/agentdir-pi@0.8.0
126
131
  # or install directly from a local checkout / release tag:
127
132
  pi install /absolute/path/to/agentdir
128
133
  pi install git:github.com/jstxn/agentdir@<tag-or-commit>
@@ -141,6 +146,13 @@ Run once from a git repository:
141
146
  agentdir adopt
142
147
  ```
143
148
 
149
+ Coding agents use the non-interactive form below so `.agentdir/` is ignored at
150
+ the user level without creating a repository `.gitignore` change:
151
+
152
+ ```bash
153
+ agentdir adopt --gitignore user
154
+ ```
155
+
144
156
  This is intentionally boring setup. It prepares the repository once, then agents
145
157
  operate AgentDir during normal coding work:
146
158
 
@@ -186,6 +198,10 @@ agentdir adopt --gitignore user # write the user-level Git excludes file
186
198
  agentdir adopt --gitignore none # leave ignore files unchanged
187
199
  ```
188
200
 
201
+ Generated AgentDir guidance selects `--gitignore user` by default. The plain
202
+ interactive command still prompts, and all three explicit choices remain
203
+ available.
204
+
189
205
  Undo managed setup while keeping the `.agentdir` evidence store:
190
206
 
191
207
  ```bash
@@ -216,6 +232,26 @@ directory is `.git/hooks` by default and follows `core.hooksPath` or linked
216
232
  worktree configuration. In rulesync repos, the source rule replaces the listed
217
233
  project guidance files as the managed source of truth.
218
234
 
235
+ ## Git Worktrees
236
+
237
+ A repository has one store, shared by every `git worktree` checkout. Commands
238
+ run inside a linked worktree resolve to the main working tree's `.agentdir`, so
239
+ evidence and memory from all worktrees stay searchable together instead of
240
+ fragmenting into one store per branch.
241
+
242
+ Each worktree still keeps its own active session, so parallel agents in
243
+ different worktrees do not overwrite each other.
244
+
245
+ Two cases keep a store inside the worktree instead:
246
+
247
+ ```bash
248
+ # a store already present in the worktree always wins
249
+ AGENTDIR_WORKTREE_STORE=local agentdir adopt # or opt out explicitly
250
+ ```
251
+
252
+ `agentdir doctor` warns when a worktree holds a store separate from the main
253
+ one and names the command that joins them for search.
254
+
219
255
  ## Inspect A Session
220
256
 
221
257
  Most users will not need these commands every day, but they are the reason
@@ -234,7 +270,8 @@ For final-answer support:
234
270
 
235
271
  ```bash
236
272
  agentdir audit session
237
- agentdir audit claims --text final-response.md
273
+ agentdir audit claims # recorded structured claims
274
+ agentdir audit claims --text final-response.md # prose, when not instrumented
238
275
  ```
239
276
 
240
277
  Audits are advisory by default. Use `--strict` when unsupported or contradicted
@@ -283,9 +320,44 @@ gaps, and recommended next agent actions.
283
320
 
284
321
  ### Claims-To-Evidence Checks
285
322
 
286
- AgentDir can compare final-response claims such as "tests passed" or "build
287
- passed" against the latest recorded tool results. It does this with
288
- deterministic heuristics, not an LLM.
323
+ Agents record what a check showed, and AgentDir compares that against the
324
+ recorded tool results. It does this deterministically, not with an LLM.
325
+
326
+ ```bash
327
+ agentdir claim test --passed
328
+ agentdir claim build --failed --note "linker error in release profile"
329
+ agentdir claim list
330
+ agentdir audit claims # checks recorded claims against evidence
331
+ agentdir audit claims --strict # exit 1 when a claim is not supported
332
+ ```
333
+
334
+ A structured claim names its family and outcome outright, so checking it is a
335
+ comparison rather than an interpretation of prose:
336
+
337
+ | Claim | Evidence | Result |
338
+ | --- | --- | --- |
339
+ | passed | succeeded | `supported` |
340
+ | passed | failed | `contradicted` |
341
+ | failed | failed | `acknowledged` |
342
+ | failed | succeeded | `contradicted` |
343
+ | either | none recorded | `unsupported` |
344
+ | none recorded | failed | `unreviewed` |
345
+
346
+ Recording a family again replaces its earlier claim, so a check re-run after a
347
+ fix supersedes rather than accumulates. Claiming a failure honestly is
348
+ `acknowledged` and does not count against the audit.
349
+
350
+ A claim made in error can be withdrawn:
351
+
352
+ ```bash
353
+ agentdir claim build --retract
354
+ ```
355
+
356
+ Claims are append-only events, so retracting supersedes the earlier claim in the
357
+ latest-claim view while leaving both in the record.
358
+
359
+ Recorded claims also reach the `agent_handoff` object without any final text
360
+ being supplied.
289
361
 
290
362
  Supported claim families:
291
363
 
@@ -296,6 +368,31 @@ Supported claim families:
296
368
  - doctor
297
369
  - release
298
370
 
371
+ #### Auditing prose instead
372
+
373
+ For final responses that were not instrumented, `agentdir audit claims --text`
374
+ reads claims out of prose:
375
+
376
+ ```bash
377
+ agentdir audit claims --text final-response.md
378
+ ```
379
+
380
+ This path has to infer intent from wording, so prefer recorded claims when the
381
+ agent can emit them.
382
+
383
+ Claim detection is keyword-based, so ordinary phrasing such as "everything
384
+ works" or "verified locally" matches no family. When recorded evidence failed
385
+ and the text makes no checkable claim about it, the audit reports that family as
386
+ `unreviewed` and is not `ok`, rather than passing because it found nothing to
387
+ check. `claims_detected` reports how many claims were actually parsed, so
388
+ "nothing to audit" is never mistaken for "audited and clean".
389
+
390
+ Text that states the failure instead ("tests failed", "two tests fail") is
391
+ reported as `acknowledged` and does not count against the audit, so honest
392
+ failure reporting is never flagged like text that hid the failure. Failure
393
+ vocabulary asserting success ("no test failures") is treated as a success claim
394
+ and checked against evidence like any other.
395
+
299
396
  ### Context Packs
300
397
 
301
398
  Agents can package retrieved context into auditable source manifests:
@@ -27,6 +27,15 @@ From a git repository:
27
27
  agentdir adopt
28
28
  ```
29
29
 
30
+ For agent-driven, non-interactive setup, make the ignore destination explicit:
31
+
32
+ ```bash
33
+ agentdir adopt --gitignore user
34
+ ```
35
+
36
+ This keeps `.agentdir/` out of Git across repositories without changing a
37
+ project's tracked `.gitignore`.
38
+
30
39
  This initializes `.agentdir`, installs managed Git hook shims, installs the
31
40
  Codex skill in the user skill directory, writes broad project guidance for
32
41
  common agent tools, asks interactive users where to ignore `.agentdir/`, runs
@@ -54,7 +63,7 @@ The user should not have to operate AgentDir during a normal coding session. Onc
54
63
  Agent responsibilities:
55
64
 
56
65
  - run `agentdir work start "<task>" --emit-context` when coding work begins
57
- - run `agentdir adopt` once if the repository has not been prepared yet
66
+ - run `agentdir adopt --gitignore user` once if the repository has not been prepared yet
58
67
  - use `agentdir status` when a single health view is needed
59
68
  - emit context packs when retrieved context materially informs the work
60
69
  - record which context sources were consumed and cited when reporting lineage
@@ -28,6 +28,17 @@ The installer downloads release assets anonymously with `curl`. If `curl` is
28
28
  unavailable or the download fails, it falls back to authenticated GitHub CLI
29
29
  (`gh auth login`).
30
30
 
31
+ The installer does not modify Git configuration or ignore files. It prints a
32
+ post-install command that agents can use from a repository:
33
+
34
+ ```bash
35
+ agentdir adopt --gitignore user
36
+ ```
37
+
38
+ This appends `.agentdir/` to the configured user-level Git excludes file. Use
39
+ `--gitignore project` for a repository `.gitignore` entry or `--gitignore none`
40
+ to leave ignore files unchanged.
41
+
31
42
  The installer downloads the release wheel and installs it with `pipx` when available. If `pipx` is not installed, it falls back to a self-contained virtual environment at:
32
43
 
33
44
  ```text
@@ -65,7 +76,7 @@ Useful variants:
65
76
  ```bash
66
77
  agentdir update --install-skill none
67
78
  agentdir update --no-adopt
68
- agentdir update --version v0.7.7
79
+ agentdir update --version v0.7.8
69
80
  agentdir update --dry-run
70
81
  ```
71
82
 
@@ -82,7 +93,7 @@ repo="$(mktemp -d)/agentdir-install-smoke"
82
93
  mkdir -p "$repo"
83
94
  git -C "$repo" init
84
95
  cd "$repo"
85
- agentdir adopt --install-skill store
96
+ agentdir adopt --install-skill store --gitignore user
86
97
  agentdir work start "install smoke" --emit-context
87
98
  agentdir run -- python3 -c "print('agentdir install smoke')"
88
99
  agentdir evidence --brief
@@ -99,13 +110,13 @@ agentdir work finish --json
99
110
  If you already have the wheel asset:
100
111
 
101
112
  ```bash
102
- AGENTDIR_WHEEL=/path/to/agentdir_cli-0.7.7-py3-none-any.whl bash scripts/install.sh
113
+ AGENTDIR_WHEEL=/path/to/agentdir_cli-0.7.8-py3-none-any.whl bash scripts/install.sh
103
114
  ```
104
115
 
105
116
  To force the virtual environment installer even when `pipx` is present:
106
117
 
107
118
  ```bash
108
- AGENTDIR_FORCE_VENV=1 AGENTDIR_WHEEL=/path/to/agentdir_cli-0.7.7-py3-none-any.whl bash scripts/install.sh
119
+ AGENTDIR_FORCE_VENV=1 AGENTDIR_WHEEL=/path/to/agentdir_cli-0.7.8-py3-none-any.whl bash scripts/install.sh
109
120
  ```
110
121
 
111
122
  ## Roll Back To The Previous Release
@@ -122,13 +133,13 @@ curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/rollbac
122
133
  To choose a specific release:
123
134
 
124
135
  ```bash
125
- curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/rollback.sh | bash -s -- v0.7.6
136
+ curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/rollback.sh | bash -s -- v0.7.7
126
137
  ```
127
138
 
128
139
  The equivalent manual rollback is:
129
140
 
130
141
  ```bash
131
- curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/install.sh | AGENTDIR_VERSION=v0.7.6 bash
142
+ curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/install.sh | AGENTDIR_VERSION=v0.7.7 bash
132
143
  ```
133
144
 
134
145
  ## Optional Extras
@@ -9,7 +9,9 @@ skills/agentdir/SKILL.md
9
9
 
10
10
  The skill teaches Pi to start AgentDir sessions, wrap evidence-bearing shell
11
11
  commands, use local memory/context packs, and produce evidence-aware handoffs.
12
- It does not install the `agentdir` CLI; install AgentDir separately first.
12
+ It also tells Pi to adopt unprepared repositories with `--gitignore user`, so
13
+ the local store stays out of Git without changing project files. It does not
14
+ install the `agentdir` CLI; install AgentDir separately first.
13
15
 
14
16
  ## Install
15
17
 
@@ -34,7 +36,7 @@ pi install git:github.com/jstxn/agentdir@<tag-or-commit>
34
36
  If the npm package has been published:
35
37
 
36
38
  ```bash
37
- pi install npm:@jstxn/agentdir-pi@0.7.7
39
+ pi install npm:@jstxn/agentdir-pi@0.8.0
38
40
  ```
39
41
 
40
42
  Use `pi config` to enable or disable the bundled skill after installation.
@@ -48,7 +50,7 @@ The root `package.json` declares the Pi resources:
48
50
  "keywords": ["pi-package"],
49
51
  "pi": {
50
52
  "skills": ["./skills"],
51
- "image": "https://raw.githubusercontent.com/jstxn/agentdir/v0.7.7/docs/assets/agentdir-overview.png"
53
+ "image": "https://raw.githubusercontent.com/jstxn/agentdir/v0.8.0/docs/assets/agentdir-overview.png"
52
54
  }
53
55
  }
54
56
  ```
@@ -6,6 +6,20 @@ the importable package and CLI remain `agentdir`. PyPI publishing happens
6
6
  automatically: the `publish.yml` workflow builds and uploads to PyPI via
7
7
  trusted publishing whenever a GitHub Release is published.
8
8
 
9
+ ## Bump The Version
10
+
11
+ The version appears in several shipped files. CI fails when `pyproject.toml`,
12
+ `package.json`, `src/agentdir/__init__.py`, and `scripts/install.sh` disagree,
13
+ but the rest are not checked automatically:
14
+
15
+ - `pyproject.toml` and `src/agentdir/__init__.py`
16
+ - `package.json` (both `version` and the `pi.image` tag URL)
17
+ - `scripts/install.sh` — the release the public `curl | bash` installer
18
+ downloads. A stale value here keeps shipping the previous version.
19
+ - `scripts/rollback.sh` — set to the *previous* release
20
+ - `README.md` and `docs/PI_PACKAGE.md` Pi install lines
21
+ - `tests/test_pi_package.py` and `tests/test_agent_first.py`
22
+
9
23
  ## Preflight
10
24
 
11
25
  ```bash
@@ -31,9 +45,9 @@ chmod +x dist/rollback-agentdir.sh
31
45
  Expected assets (substitute the release version):
32
46
 
33
47
  ```text
34
- dist/agentdir_cli-0.7.7-py3-none-any.whl
35
- dist/agentdir_cli-0.7.7.tar.gz
36
- dist/jstxn-agentdir-pi-0.7.7.tgz
48
+ dist/agentdir_cli-0.8.0-py3-none-any.whl
49
+ dist/agentdir_cli-0.8.0.tar.gz
50
+ dist/jstxn-agentdir-pi-0.8.0.tgz
37
51
  dist/install-agentdir.sh
38
52
  dist/rollback-agentdir.sh
39
53
  ```
@@ -41,31 +55,46 @@ dist/rollback-agentdir.sh
41
55
  ## Tag And Release
42
56
 
43
57
  ```bash
44
- git tag -a v0.7.7 -m "Release AgentDir v0.7.7"
58
+ git tag -a v0.8.0 -m "Release AgentDir v0.8.0"
45
59
  git push origin main
46
- git push origin v0.7.7
60
+ git push origin v0.8.0
47
61
 
48
- gh release create v0.7.7 \
49
- dist/agentdir_cli-0.7.7-py3-none-any.whl \
50
- dist/agentdir_cli-0.7.7.tar.gz \
51
- dist/jstxn-agentdir-pi-0.7.7.tgz \
62
+ gh release create v0.8.0 \
63
+ dist/agentdir_cli-0.8.0-py3-none-any.whl \
64
+ dist/agentdir_cli-0.8.0.tar.gz \
65
+ dist/jstxn-agentdir-pi-0.8.0.tgz \
52
66
  dist/install-agentdir.sh \
53
67
  dist/rollback-agentdir.sh \
54
68
  --repo jstxn/agentdir \
55
- --title "AgentDir v0.7.7" \
56
- --notes-file docs/releases/v0.7.7.md
69
+ --title "AgentDir v0.8.0" \
70
+ --notes-file docs/releases/v0.8.0.md
57
71
  ```
58
72
 
59
73
  Publishing the release triggers `publish.yml`, which rebuilds the sdist and
60
74
  wheel from the tag and uploads them to PyPI as `agentdir-cli`.
61
75
 
76
+ ## Publish The Pi Package
77
+
78
+ PyPI is automated; npm is not. The Pi package `@jstxn/agentdir-pi` has to be
79
+ published by hand or Pi users stay on the previous version:
80
+
81
+ ```bash
82
+ npm publish --access public
83
+ ```
84
+
85
+ Confirm it landed:
86
+
87
+ ```bash
88
+ npm view @jstxn/agentdir-pi version
89
+ ```
90
+
62
91
  ## Release Verification
63
92
 
64
93
  Use a disposable environment:
65
94
 
66
95
  ```bash
67
96
  tmp="$(mktemp -d)"
68
- gh release download v0.7.7 --repo jstxn/agentdir --pattern install-agentdir.sh --dir "$tmp"
97
+ gh release download v0.8.0 --repo jstxn/agentdir --pattern install-agentdir.sh --dir "$tmp"
69
98
  AGENTDIR_PREFIX="$tmp/prefix" AGENTDIR_HOME="$tmp/home" bash "$tmp/install-agentdir.sh"
70
99
  "$tmp/prefix/bin/agentdir" --help
71
100
  "$tmp/prefix/bin/agentdir" --version
@@ -79,7 +108,7 @@ mkdir -p "$repo"
79
108
  git -C "$repo" init
80
109
  printf 'release smoke\n' > "$tmp/body.txt"
81
110
  cd "$repo"
82
- "$tmp/prefix/bin/agentdir" adopt --install-skill store
111
+ "$tmp/prefix/bin/agentdir" adopt --install-skill store --gitignore user
83
112
  "$tmp/prefix/bin/agentdir" work start "release smoke" --emit-context
84
113
  "$tmp/prefix/bin/agentdir" run -- python3 -c "print('release smoke')"
85
114
  "$tmp/prefix/bin/agentdir" context build "release smoke"
@@ -101,13 +130,13 @@ tmp="$(mktemp -d)"
101
130
  AGENTDIR_PREFIX="$tmp/prefix" \
102
131
  AGENTDIR_HOME="$tmp/home" \
103
132
  AGENTDIR_FORCE_VENV=1 \
104
- AGENTDIR_WHEEL="$PWD/dist/agentdir_cli-0.7.7-py3-none-any.whl" \
133
+ AGENTDIR_WHEEL="$PWD/dist/agentdir_cli-0.8.0-py3-none-any.whl" \
105
134
  bash dist/install-agentdir.sh
106
135
 
107
136
  AGENTDIR_PREFIX="$tmp/prefix" \
108
137
  AGENTDIR_HOME="$tmp/home" \
109
138
  AGENTDIR_FORCE_VENV=1 \
110
- bash dist/rollback-agentdir.sh v0.7.6
139
+ bash dist/rollback-agentdir.sh v0.7.8
111
140
 
112
141
  "$tmp/prefix/bin/agentdir" --help
113
142
  ```
@@ -0,0 +1,50 @@
1
+ # AgentDir v0.7.8
2
+
3
+ AgentDir v0.7.8 removes a common first-run annoyance by teaching coding agents
4
+ to keep the local `.agentdir/` store out of Git automatically.
5
+
6
+ ## Changes
7
+
8
+ - Update generated Codex, generic, Claude, Copilot, Cursor, Windsurf, rulesync,
9
+ and Pi guidance to adopt repositories with `agentdir adopt --gitignore user`.
10
+ - Keep plain interactive adoption and all existing
11
+ `--gitignore ask|project|user|none` choices backward compatible.
12
+ - Make the release installer print the recommended user-level adoption command
13
+ and the project/none alternatives without silently editing Git configuration.
14
+ - Add regression coverage for every generated guidance surface, the Pi package,
15
+ rulesync, and installer messaging.
16
+
17
+ ## Install Or Update
18
+
19
+ Install from PyPI:
20
+
21
+ ```bash
22
+ uv tool install agentdir-cli
23
+ # or
24
+ pipx install agentdir-cli
25
+ ```
26
+
27
+ Update an existing installation:
28
+
29
+ ```bash
30
+ agentdir update
31
+ ```
32
+
33
+ Or use the release installer:
34
+
35
+ ```bash
36
+ curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/install.sh | bash
37
+ ```
38
+
39
+ Install the Pi package from npm or the release tag:
40
+
41
+ ```bash
42
+ pi install npm:@jstxn/agentdir-pi@0.7.8
43
+ pi install git:github.com/jstxn/agentdir@v0.7.8
44
+ ```
45
+
46
+ Rollback to v0.7.7 with:
47
+
48
+ ```bash
49
+ curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/rollback.sh | bash
50
+ ```