agentdir-cli 0.9.0__tar.gz → 0.11.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.
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/MANIFEST.in +1 -2
- {agentdir_cli-0.9.0/src/agentdir_cli.egg-info → agentdir_cli-0.11.0}/PKG-INFO +132 -28
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/README.md +131 -21
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/INSTALL.md +13 -12
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/PI_PACKAGE.md +2 -2
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/RELEASING.md +14 -14
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/TECH_BRIEF.md +23 -5
- agentdir_cli-0.11.0/docs/assets/agentdir-agent-trace-demo.gif +0 -0
- agentdir_cli-0.11.0/docs/investigations/2026-09-21-jev-evaluation.md +204 -0
- agentdir_cli-0.11.0/docs/investigations/2026-09-21-jev-integration.md +260 -0
- agentdir_cli-0.11.0/docs/releases/v0.10.0.md +57 -0
- agentdir_cli-0.11.0/docs/releases/v0.11.0.md +76 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/package.json +2 -2
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/pyproject.toml +1 -8
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/scripts/install.sh +97 -4
- agentdir_cli-0.11.0/scripts/rollback.sh +89 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/skills/agentdir/SKILL.md +1 -1
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/__init__.py +1 -1
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/actors.py +12 -9
- agentdir_cli-0.11.0/src/agentdir/artifacts.py +74 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/audit.py +87 -50
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/capture.py +229 -31
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/claims.py +1 -1
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/cli.py +626 -369
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/context.py +293 -217
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/context_expansion.py +198 -48
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/context_repository.py +87 -64
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/context_review.py +152 -34
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/context_selection.py +26 -4
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/control.py +417 -147
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/daemon.py +148 -33
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/doctor.py +71 -15
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/envelope.py +67 -17
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/environment.py +86 -42
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/events.py +11 -13
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/federation.py +39 -15
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/fsutil.py +6 -4
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/git.py +3 -7
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/gitignore.py +43 -1
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/hooks.py +139 -44
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/index.py +356 -77
- agentdir_cli-0.11.0/src/agentdir/jev.py +246 -0
- agentdir_cli-0.11.0/src/agentdir/locking.py +116 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/memory.py +172 -105
- agentdir_cli-0.11.0/src/agentdir/query.py +126 -0
- agentdir_cli-0.11.0/src/agentdir/redaction.py +230 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/rendering.py +7 -2
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/replay.py +3 -3
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/retention.py +135 -43
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/review.py +91 -30
- agentdir_cli-0.11.0/src/agentdir/secrets.py +275 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/sessions.py +300 -51
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/skills.py +326 -153
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/store.py +8 -11
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/upgrade.py +84 -50
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0/src/agentdir_cli.egg-info}/PKG-INFO +132 -28
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir_cli.egg-info/SOURCES.txt +16 -0
- agentdir_cli-0.11.0/src/agentdir_cli.egg-info/requires.txt +8 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_agent_first.py +14 -6
- agentdir_cli-0.11.0/tests/test_audit_fixes_audit_control_cli.py +1195 -0
- agentdir_cli-0.11.0/tests/test_audit_fixes_context.py +1117 -0
- agentdir_cli-0.11.0/tests/test_audit_fixes_hooks_skills_upgrade.py +1106 -0
- agentdir_cli-0.11.0/tests/test_audit_fixes_index_memory_daemon.py +1072 -0
- agentdir_cli-0.11.0/tests/test_audit_fixes_security_capture.py +827 -0
- agentdir_cli-0.11.0/tests/test_audit_fixes_storage_sessions.py +722 -0
- agentdir_cli-0.11.0/tests/test_cli_integrations_perf.py +264 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_context_concurrency.py +125 -7
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_environment.py +19 -0
- agentdir_cli-0.11.0/tests/test_fsutil.py +21 -0
- agentdir_cli-0.11.0/tests/test_jev.py +220 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_pi_package.py +2 -2
- agentdir_cli-0.11.0/tests/test_redaction.py +146 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_v1_behavior.py +6 -1
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_worktrees.py +104 -0
- agentdir_cli-0.9.0/scripts/rollback.sh +0 -61
- agentdir_cli-0.9.0/src/agentdir/artifacts.py +0 -56
- agentdir_cli-0.9.0/src/agentdir/locking.py +0 -48
- agentdir_cli-0.9.0/src/agentdir/query.py +0 -65
- agentdir_cli-0.9.0/src/agentdir/redaction.py +0 -42
- agentdir_cli-0.9.0/src/agentdir/secrets.py +0 -140
- agentdir_cli-0.9.0/src/agentdir_cli.egg-info/requires.txt +0 -15
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/LICENSE +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/AGENTIC_CODING.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/DEMO.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/PRD.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/assets/agentdir-overview.png +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/investigations/2026-05-12-cross-repo-ergonomics-lanes.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/investigations/2026-05-12-rag-vector-scenarios.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/investigations/2026-08-19-agentdir-read-loop-dogfood.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.1.0.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.1.1.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.2.0.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.3.0.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.3.1.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.3.2.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.3.3.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.3.4.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.4.0.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.5.0.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.5.1.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.5.2.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.5.3.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.6.0.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.7.0.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.7.1.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.7.2.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.7.3.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.7.4.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.7.5.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.7.6.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.7.7.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.7.8.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.8.0.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/docs/releases/v0.9.0.md +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/examples/dogfood-session.sh +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/setup.cfg +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/__main__.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/context_projection.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir/mailbox.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir_cli.egg-info/dependency_links.txt +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir_cli.egg-info/entry_points.txt +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/src/agentdir_cli.egg-info/top_level.txt +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_agent_trust.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_audit.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_claim_polarity.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_context_expansion.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_context_federation.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_context_protocol.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_context_review.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_evidence_classification.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_header_folding.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_install_script.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_structured_claims.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_truncation.py +0 -0
- {agentdir_cli-0.9.0 → agentdir_cli-0.11.0}/tests/test_vector_memory.py +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
include LICENSE
|
|
2
2
|
include README.md
|
|
3
3
|
include package.json
|
|
4
|
-
recursive-include docs *.md
|
|
4
|
+
recursive-include docs *.md *.png *.gif
|
|
5
5
|
recursive-include skills *.md
|
|
6
|
-
recursive-include docs *.png
|
|
7
6
|
recursive-include examples *.sh
|
|
8
7
|
recursive-include scripts *.sh
|
|
9
8
|
recursive-include tests *.py
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentdir-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0
|
|
4
4
|
Summary: Local-first Maildir-inspired work mailstore for software agents
|
|
5
5
|
Author: AgentDir Contributors
|
|
6
6
|
License-Expression: MIT
|
|
@@ -23,12 +23,6 @@ Provides-Extra: watch
|
|
|
23
23
|
Requires-Dist: watchfiles>=0.21; extra == "watch"
|
|
24
24
|
Provides-Extra: semantic
|
|
25
25
|
Requires-Dist: fastembed>=0.4; extra == "semantic"
|
|
26
|
-
Requires-Dist: sqlite-vec>=0.1; extra == "semantic"
|
|
27
|
-
Provides-Extra: team
|
|
28
|
-
Requires-Dist: qdrant-client>=1.9; extra == "team"
|
|
29
|
-
Requires-Dist: lancedb>=0.9; extra == "team"
|
|
30
|
-
Requires-Dist: opentelemetry-api>=1.24; extra == "team"
|
|
31
|
-
Requires-Dist: opentelemetry-sdk>=1.24; extra == "team"
|
|
32
26
|
Dynamic: license-file
|
|
33
27
|
|
|
34
28
|
# AgentDir
|
|
@@ -55,6 +49,23 @@ Engineers should not have to manually start sessions, wrap commands, collect
|
|
|
55
49
|
evidence, or maintain agent memory by hand. Once a repository is adopted, the
|
|
56
50
|
agent operates AgentDir in the background and leaves behind a useful trail.
|
|
57
51
|
|
|
52
|
+
## Featured: Use Jev with Your Own Key
|
|
53
|
+
|
|
54
|
+
[](https://docs.typesafe.ai/introduction)
|
|
55
|
+
|
|
56
|
+
Get your API key from [TypeSafe](https://console.typesafe.ai), then run this in
|
|
57
|
+
your project's Bash terminal:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
read -rsp "Your Jev API key: " TYPESAFE_API_KEY
|
|
61
|
+
printf '\n'
|
|
62
|
+
export TYPESAFE_API_KEY
|
|
63
|
+
agentdir memory reranker configure jev
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Launch your coding agent from that terminal. This opt-in feature sends redacted
|
|
67
|
+
context to Jev. [Details and limits](#optional-jev-context-filtering).
|
|
68
|
+
|
|
58
69
|
## Why AgentDir Exists
|
|
59
70
|
|
|
60
71
|
Agentic engineering has a trust gap.
|
|
@@ -111,6 +122,7 @@ agentdir work start "fix checkout failure"
|
|
|
111
122
|
agentdir work context --expand 1
|
|
112
123
|
agentdir work context --use 1 --reason "prior checkout pattern informs the plan"
|
|
113
124
|
agentdir run -- pytest -q
|
|
125
|
+
agentdir claim test --passed
|
|
114
126
|
agentdir audit session
|
|
115
127
|
agentdir work finish --json --brief
|
|
116
128
|
```
|
|
@@ -162,7 +174,7 @@ available automatically during coding tasks:
|
|
|
162
174
|
Package page: [@jstxn/agentdir-pi](https://pi.dev/packages/@jstxn/agentdir-pi)
|
|
163
175
|
|
|
164
176
|
```bash
|
|
165
|
-
pi install npm:@jstxn/agentdir-pi@0.
|
|
177
|
+
pi install npm:@jstxn/agentdir-pi@0.11.0
|
|
166
178
|
# or install directly from a local checkout / release tag:
|
|
167
179
|
pi install /absolute/path/to/agentdir
|
|
168
180
|
pi install git:github.com/jstxn/agentdir@<tag-or-commit>
|
|
@@ -192,7 +204,7 @@ This is intentionally boring setup. It prepares the repository once, then agents
|
|
|
192
204
|
operate AgentDir during normal coding work:
|
|
193
205
|
|
|
194
206
|
- creates the repo-local `.agentdir` store
|
|
195
|
-
- installs AgentDir-managed git hook shims
|
|
207
|
+
- installs non-blocking AgentDir-managed git hook shims
|
|
196
208
|
- installs the Codex skill into the user skill directory
|
|
197
209
|
- writes managed project guidance for common agent tools
|
|
198
210
|
- asks interactive users whether `.agentdir/` should be added to the project or
|
|
@@ -264,8 +276,11 @@ Default adoption writes only local files:
|
|
|
264
276
|
Managed guidance is wrapped in AgentDir markers. Existing unmanaged content is
|
|
265
277
|
preserved where the target format supports managed blocks. The active hooks
|
|
266
278
|
directory is `.git/hooks` by default and follows `core.hooksPath` or linked
|
|
267
|
-
worktree configuration.
|
|
268
|
-
|
|
279
|
+
worktree configuration. Hook shims record events asynchronously in the
|
|
280
|
+
background so Git commits, pushes, checkouts, and merges do not stall; set
|
|
281
|
+
`AGENTDIR_HOOK_SYNC=1` when synchronous hook recording is needed. In rulesync
|
|
282
|
+
repos, the source rule replaces the listed project guidance files as the managed
|
|
283
|
+
source of truth.
|
|
269
284
|
|
|
270
285
|
## Git Worktrees
|
|
271
286
|
|
|
@@ -274,8 +289,11 @@ run inside a linked worktree resolve to the main working tree's `.agentdir`, so
|
|
|
274
289
|
evidence and memory from all worktrees stay searchable together instead of
|
|
275
290
|
fragmenting into one store per branch.
|
|
276
291
|
|
|
277
|
-
Each worktree
|
|
278
|
-
different worktrees
|
|
292
|
+
Each worktree keeps its own active session and workspace-scoped lifecycle
|
|
293
|
+
locks, so parallel agents in different worktrees can start, expand context, and
|
|
294
|
+
finish sessions concurrently without overwriting or blocking each other.
|
|
295
|
+
Contended locks fail cleanly after a bounded timeout (`10s` by default;
|
|
296
|
+
configurable with `AGENTDIR_LOCK_TIMEOUT`) instead of hanging indefinitely.
|
|
279
297
|
|
|
280
298
|
Agents should probe the resolved store instead of checking whether the current
|
|
281
299
|
checkout contains a physical `.agentdir`:
|
|
@@ -347,7 +365,10 @@ raw envelopes -> SQLite index -> memory/search/audit/report
|
|
|
347
365
|
directory layout. These files are the source of truth.
|
|
348
366
|
2. **Derived indexes**
|
|
349
367
|
SQLite indexes, search tables, memory passages, context packs, and audit
|
|
350
|
-
views are derived from the raw event files and can be rebuilt.
|
|
368
|
+
views are derived from the raw event files and can be rebuilt. SQLite runs in
|
|
369
|
+
WAL mode so concurrent readers and writers do not block each other, rebuilds
|
|
370
|
+
update healthy databases safely via online backup, and incremental updates
|
|
371
|
+
use per-mailbox `mtime` watermarks to skip unchanged directories on disk.
|
|
351
372
|
|
|
352
373
|
Default project layout:
|
|
353
374
|
|
|
@@ -542,6 +563,50 @@ store, the same `work start`, `context build`, `memory search`, and
|
|
|
542
563
|
preserving both components in JSON output. Explicit `--retrieval` modes remain
|
|
543
564
|
available for diagnostics and comparisons.
|
|
544
565
|
|
|
566
|
+
### Optional Jev Context Filtering
|
|
567
|
+
|
|
568
|
+
Jev can filter and rank local context for `work start` and `context build` after
|
|
569
|
+
retrieval, before source diversification. It is disabled by default and needs
|
|
570
|
+
no extra Python dependencies. Opt in separately for each store:
|
|
571
|
+
|
|
572
|
+
```bash
|
|
573
|
+
agentdir memory reranker configure jev
|
|
574
|
+
# Supply TYPESAFE_API_KEY (or JEV_API_KEY) through your process environment.
|
|
575
|
+
agentdir work start "make database migrations safe to roll back"
|
|
576
|
+
|
|
577
|
+
# Restore fully local context selection.
|
|
578
|
+
agentdir memory reranker configure none
|
|
579
|
+
```
|
|
580
|
+
|
|
581
|
+
Enabling this sends the task (up to 2048 UTF-8 bytes) and up to 20 local
|
|
582
|
+
candidate passages (subject plus passage, up to 1024 bytes each) to
|
|
583
|
+
`https://api.typesafe.ai/v1/systemone`. Common secret patterns and the configured
|
|
584
|
+
API key are redacted before sending; redaction does not anonymize proprietary
|
|
585
|
+
material. Keys are read only from the environment, never saved in configuration;
|
|
586
|
+
AgentDir does not automatically load `.env` files. Review
|
|
587
|
+
[TypeSafe's data handling](https://docs.typesafe.ai/models) before opting in.
|
|
588
|
+
Federated/group context always uses local selection, even when Jev is enabled.
|
|
589
|
+
|
|
590
|
+
The evaluated `jev-1.13.0` model and relevance cutoff of 0.7 are pinned. A
|
|
591
|
+
successful response filters the shortlist and suppresses unscored recent
|
|
592
|
+
summaries, while preserving source tiers, diversity limits, original retrieval
|
|
593
|
+
scores, current evidence, and the agent's review requirement. Derived session
|
|
594
|
+
summaries are not sent for scoring. Missing credentials, request failures,
|
|
595
|
+
malformed responses, or the three-second worker deadline retain local selection
|
|
596
|
+
and report a fallback reason. There are no retries. Context retrieval and the
|
|
597
|
+
optional Jev request run before `work start` acquires its commit locks, so the
|
|
598
|
+
worker deadline does not block other sessions or worktrees.
|
|
599
|
+
|
|
600
|
+
Context JSON and persisted manifests include `reranking` metadata: status,
|
|
601
|
+
model, rubric version, cutoff, candidate identities and sanitized-text hashes,
|
|
602
|
+
scores, usage, and latency. Each surviving source also has `rerank_score`;
|
|
603
|
+
`memory_score` remains the original local score. Reviewing a saved pack or
|
|
604
|
+
rebuilding the index makes no Jev request. `memory search` and `memory explain`
|
|
605
|
+
continue to describe local retrieval. Jev scores are advisory and cannot verify
|
|
606
|
+
evidence or mark a source read, used, or cited. The
|
|
607
|
+
[synthetic evaluation](docs/investigations/2026-09-21-jev-evaluation.md) motivates
|
|
608
|
+
this opt-in feature; validation on real session history is still needed.
|
|
609
|
+
|
|
545
610
|
### Federated Memory
|
|
546
611
|
|
|
547
612
|
For multi-repo work, AgentDir can search explicitly registered roots:
|
|
@@ -553,18 +618,46 @@ agentdir memory search --federated "release evidence"
|
|
|
553
618
|
|
|
554
619
|
Each repository remains the canonical owner of its own `.agentdir` store.
|
|
555
620
|
|
|
556
|
-
## Safety
|
|
557
|
-
|
|
558
|
-
AgentDir is local-first
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
-
|
|
566
|
-
|
|
567
|
-
|
|
621
|
+
## Safety & Sandboxing Scope
|
|
622
|
+
|
|
623
|
+
AgentDir is a local-first, cooperative flight recorder—not an execution sandbox
|
|
624
|
+
or a tamper-proof enforcement boundary. It records what agents choose to record,
|
|
625
|
+
sends nothing to a hosted AgentDir service, and complements rather than replaces
|
|
626
|
+
code review, sandboxing, or CI.
|
|
627
|
+
|
|
628
|
+
What AgentDir does:
|
|
629
|
+
|
|
630
|
+
- **Keeps raw envelopes recoverable.** Immutable local envelopes are the source
|
|
631
|
+
of truth; derived SQLite indexes can be rebuilt anytime.
|
|
632
|
+
- **Redacts common secrets before persistence.** Command arguments, captured
|
|
633
|
+
output, and emitted envelope subjects, headers, and bodies are scanned and
|
|
634
|
+
redacted before writing to disk (`--no-redact` disables this per run), with
|
|
635
|
+
`secrets scan` and `secrets redact --apply` for cleaning up older records.
|
|
636
|
+
- **Bounds captured output.** `agentdir run` caps stored stdout and stderr at
|
|
637
|
+
`--max-capture-bytes` (256 KiB per stream by default) and marks partial
|
|
638
|
+
evidence in session and claim audits.
|
|
639
|
+
- **Bounds runaway commands.** `agentdir run --timeout <seconds>` terminates
|
|
640
|
+
the command's process group after the deadline and records exit code `124`.
|
|
641
|
+
- **Supports opt-in environment scrubbing.** `agentdir run --scrub-env` strips
|
|
642
|
+
common credential environment variables from the child process without
|
|
643
|
+
modifying the parent shell environment:
|
|
644
|
+
- Case-insensitive suffixes (bare or `*_`-prefixed): `API_KEY`, `APIKEY`,
|
|
645
|
+
`TOKEN`, `SECRET`, `SECRET_KEY`, `ACCESS_KEY`, `ACCESS_KEY_ID`,
|
|
646
|
+
`PASSWORD`, `PASSWD`, `PASSPHRASE`, `PRIVATE_KEY`, `CREDENTIAL`,
|
|
647
|
+
`CREDENTIALS`, `AUTH_HEADER`, `AUTHORIZATION`.
|
|
648
|
+
- Prefixes: `OPENAI_*`, `ANTHROPIC_*`.
|
|
649
|
+
- Exact names: `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`,
|
|
650
|
+
`AWS_SESSION_TOKEN`, `AWS_SECURITY_TOKEN`, `DATABASE_URL`, `GH_TOKEN`,
|
|
651
|
+
`GITHUB_TOKEN`, `JEV_API_KEY`, `PGPASSWORD`, `TYPESAFE_API_KEY`.
|
|
652
|
+
- Standard runtime variables (`PATH`, `HOME`, `USER`, `TERM`, `SHELL`,
|
|
653
|
+
`LANG`, `LC_*`, `TMPDIR`, `VIRTUAL_ENV`, `PYTHONPATH`, `XDG_*`,
|
|
654
|
+
`SSH_AUTH_SOCK`, and `AGENTDIR_*` including `AGENTDIR_SESSION`) are
|
|
655
|
+
preserved.
|
|
656
|
+
- Event headers record only the scrubbed count (`X-AgentDir-Env-Scrubbed`)
|
|
657
|
+
and stripped variable names (`X-AgentDir-Env-Scrubbed-Keys`), never
|
|
658
|
+
values.
|
|
659
|
+
|
|
660
|
+
Useful health and cleanup commands:
|
|
568
661
|
|
|
569
662
|
```bash
|
|
570
663
|
agentdir doctor
|
|
@@ -573,14 +666,25 @@ agentdir secrets redact
|
|
|
573
666
|
agentdir secrets redact --apply
|
|
574
667
|
```
|
|
575
668
|
|
|
669
|
+
What AgentDir intentionally leaves to the outer environment:
|
|
670
|
+
|
|
671
|
+
- **Filesystem, network, process, and privilege isolation.** Use your agent
|
|
672
|
+
harness, container, or VM to restrict what commands can read, write, execute,
|
|
673
|
+
or reach over the network.
|
|
674
|
+
- **Mandatory or tamper-proof enforcement.** Wrapped commands still run as your
|
|
675
|
+
local user, and `.agentdir` stores plain files protected by local filesystem
|
|
676
|
+
permissions.
|
|
677
|
+
|
|
576
678
|
## Upgrade And Rollback
|
|
577
679
|
|
|
578
|
-
|
|
680
|
+
Update an existing install and refresh current repo adoption:
|
|
579
681
|
|
|
580
682
|
```bash
|
|
581
|
-
agentdir
|
|
683
|
+
agentdir update
|
|
582
684
|
```
|
|
583
685
|
|
|
686
|
+
(`agentdir --upgrade` remains supported as a legacy alias.)
|
|
687
|
+
|
|
584
688
|
Rollback to the previous stable release:
|
|
585
689
|
|
|
586
690
|
```bash
|
|
@@ -22,6 +22,23 @@ Engineers should not have to manually start sessions, wrap commands, collect
|
|
|
22
22
|
evidence, or maintain agent memory by hand. Once a repository is adopted, the
|
|
23
23
|
agent operates AgentDir in the background and leaves behind a useful trail.
|
|
24
24
|
|
|
25
|
+
## Featured: Use Jev with Your Own Key
|
|
26
|
+
|
|
27
|
+
[](https://docs.typesafe.ai/introduction)
|
|
28
|
+
|
|
29
|
+
Get your API key from [TypeSafe](https://console.typesafe.ai), then run this in
|
|
30
|
+
your project's Bash terminal:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
read -rsp "Your Jev API key: " TYPESAFE_API_KEY
|
|
34
|
+
printf '\n'
|
|
35
|
+
export TYPESAFE_API_KEY
|
|
36
|
+
agentdir memory reranker configure jev
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Launch your coding agent from that terminal. This opt-in feature sends redacted
|
|
40
|
+
context to Jev. [Details and limits](#optional-jev-context-filtering).
|
|
41
|
+
|
|
25
42
|
## Why AgentDir Exists
|
|
26
43
|
|
|
27
44
|
Agentic engineering has a trust gap.
|
|
@@ -78,6 +95,7 @@ agentdir work start "fix checkout failure"
|
|
|
78
95
|
agentdir work context --expand 1
|
|
79
96
|
agentdir work context --use 1 --reason "prior checkout pattern informs the plan"
|
|
80
97
|
agentdir run -- pytest -q
|
|
98
|
+
agentdir claim test --passed
|
|
81
99
|
agentdir audit session
|
|
82
100
|
agentdir work finish --json --brief
|
|
83
101
|
```
|
|
@@ -129,7 +147,7 @@ available automatically during coding tasks:
|
|
|
129
147
|
Package page: [@jstxn/agentdir-pi](https://pi.dev/packages/@jstxn/agentdir-pi)
|
|
130
148
|
|
|
131
149
|
```bash
|
|
132
|
-
pi install npm:@jstxn/agentdir-pi@0.
|
|
150
|
+
pi install npm:@jstxn/agentdir-pi@0.11.0
|
|
133
151
|
# or install directly from a local checkout / release tag:
|
|
134
152
|
pi install /absolute/path/to/agentdir
|
|
135
153
|
pi install git:github.com/jstxn/agentdir@<tag-or-commit>
|
|
@@ -159,7 +177,7 @@ This is intentionally boring setup. It prepares the repository once, then agents
|
|
|
159
177
|
operate AgentDir during normal coding work:
|
|
160
178
|
|
|
161
179
|
- creates the repo-local `.agentdir` store
|
|
162
|
-
- installs AgentDir-managed git hook shims
|
|
180
|
+
- installs non-blocking AgentDir-managed git hook shims
|
|
163
181
|
- installs the Codex skill into the user skill directory
|
|
164
182
|
- writes managed project guidance for common agent tools
|
|
165
183
|
- asks interactive users whether `.agentdir/` should be added to the project or
|
|
@@ -231,8 +249,11 @@ Default adoption writes only local files:
|
|
|
231
249
|
Managed guidance is wrapped in AgentDir markers. Existing unmanaged content is
|
|
232
250
|
preserved where the target format supports managed blocks. The active hooks
|
|
233
251
|
directory is `.git/hooks` by default and follows `core.hooksPath` or linked
|
|
234
|
-
worktree configuration.
|
|
235
|
-
|
|
252
|
+
worktree configuration. Hook shims record events asynchronously in the
|
|
253
|
+
background so Git commits, pushes, checkouts, and merges do not stall; set
|
|
254
|
+
`AGENTDIR_HOOK_SYNC=1` when synchronous hook recording is needed. In rulesync
|
|
255
|
+
repos, the source rule replaces the listed project guidance files as the managed
|
|
256
|
+
source of truth.
|
|
236
257
|
|
|
237
258
|
## Git Worktrees
|
|
238
259
|
|
|
@@ -241,8 +262,11 @@ run inside a linked worktree resolve to the main working tree's `.agentdir`, so
|
|
|
241
262
|
evidence and memory from all worktrees stay searchable together instead of
|
|
242
263
|
fragmenting into one store per branch.
|
|
243
264
|
|
|
244
|
-
Each worktree
|
|
245
|
-
different worktrees
|
|
265
|
+
Each worktree keeps its own active session and workspace-scoped lifecycle
|
|
266
|
+
locks, so parallel agents in different worktrees can start, expand context, and
|
|
267
|
+
finish sessions concurrently without overwriting or blocking each other.
|
|
268
|
+
Contended locks fail cleanly after a bounded timeout (`10s` by default;
|
|
269
|
+
configurable with `AGENTDIR_LOCK_TIMEOUT`) instead of hanging indefinitely.
|
|
246
270
|
|
|
247
271
|
Agents should probe the resolved store instead of checking whether the current
|
|
248
272
|
checkout contains a physical `.agentdir`:
|
|
@@ -314,7 +338,10 @@ raw envelopes -> SQLite index -> memory/search/audit/report
|
|
|
314
338
|
directory layout. These files are the source of truth.
|
|
315
339
|
2. **Derived indexes**
|
|
316
340
|
SQLite indexes, search tables, memory passages, context packs, and audit
|
|
317
|
-
views are derived from the raw event files and can be rebuilt.
|
|
341
|
+
views are derived from the raw event files and can be rebuilt. SQLite runs in
|
|
342
|
+
WAL mode so concurrent readers and writers do not block each other, rebuilds
|
|
343
|
+
update healthy databases safely via online backup, and incremental updates
|
|
344
|
+
use per-mailbox `mtime` watermarks to skip unchanged directories on disk.
|
|
318
345
|
|
|
319
346
|
Default project layout:
|
|
320
347
|
|
|
@@ -509,6 +536,50 @@ store, the same `work start`, `context build`, `memory search`, and
|
|
|
509
536
|
preserving both components in JSON output. Explicit `--retrieval` modes remain
|
|
510
537
|
available for diagnostics and comparisons.
|
|
511
538
|
|
|
539
|
+
### Optional Jev Context Filtering
|
|
540
|
+
|
|
541
|
+
Jev can filter and rank local context for `work start` and `context build` after
|
|
542
|
+
retrieval, before source diversification. It is disabled by default and needs
|
|
543
|
+
no extra Python dependencies. Opt in separately for each store:
|
|
544
|
+
|
|
545
|
+
```bash
|
|
546
|
+
agentdir memory reranker configure jev
|
|
547
|
+
# Supply TYPESAFE_API_KEY (or JEV_API_KEY) through your process environment.
|
|
548
|
+
agentdir work start "make database migrations safe to roll back"
|
|
549
|
+
|
|
550
|
+
# Restore fully local context selection.
|
|
551
|
+
agentdir memory reranker configure none
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
Enabling this sends the task (up to 2048 UTF-8 bytes) and up to 20 local
|
|
555
|
+
candidate passages (subject plus passage, up to 1024 bytes each) to
|
|
556
|
+
`https://api.typesafe.ai/v1/systemone`. Common secret patterns and the configured
|
|
557
|
+
API key are redacted before sending; redaction does not anonymize proprietary
|
|
558
|
+
material. Keys are read only from the environment, never saved in configuration;
|
|
559
|
+
AgentDir does not automatically load `.env` files. Review
|
|
560
|
+
[TypeSafe's data handling](https://docs.typesafe.ai/models) before opting in.
|
|
561
|
+
Federated/group context always uses local selection, even when Jev is enabled.
|
|
562
|
+
|
|
563
|
+
The evaluated `jev-1.13.0` model and relevance cutoff of 0.7 are pinned. A
|
|
564
|
+
successful response filters the shortlist and suppresses unscored recent
|
|
565
|
+
summaries, while preserving source tiers, diversity limits, original retrieval
|
|
566
|
+
scores, current evidence, and the agent's review requirement. Derived session
|
|
567
|
+
summaries are not sent for scoring. Missing credentials, request failures,
|
|
568
|
+
malformed responses, or the three-second worker deadline retain local selection
|
|
569
|
+
and report a fallback reason. There are no retries. Context retrieval and the
|
|
570
|
+
optional Jev request run before `work start` acquires its commit locks, so the
|
|
571
|
+
worker deadline does not block other sessions or worktrees.
|
|
572
|
+
|
|
573
|
+
Context JSON and persisted manifests include `reranking` metadata: status,
|
|
574
|
+
model, rubric version, cutoff, candidate identities and sanitized-text hashes,
|
|
575
|
+
scores, usage, and latency. Each surviving source also has `rerank_score`;
|
|
576
|
+
`memory_score` remains the original local score. Reviewing a saved pack or
|
|
577
|
+
rebuilding the index makes no Jev request. `memory search` and `memory explain`
|
|
578
|
+
continue to describe local retrieval. Jev scores are advisory and cannot verify
|
|
579
|
+
evidence or mark a source read, used, or cited. The
|
|
580
|
+
[synthetic evaluation](docs/investigations/2026-09-21-jev-evaluation.md) motivates
|
|
581
|
+
this opt-in feature; validation on real session history is still needed.
|
|
582
|
+
|
|
512
583
|
### Federated Memory
|
|
513
584
|
|
|
514
585
|
For multi-repo work, AgentDir can search explicitly registered roots:
|
|
@@ -520,18 +591,46 @@ agentdir memory search --federated "release evidence"
|
|
|
520
591
|
|
|
521
592
|
Each repository remains the canonical owner of its own `.agentdir` store.
|
|
522
593
|
|
|
523
|
-
## Safety
|
|
524
|
-
|
|
525
|
-
AgentDir is local-first
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
-
|
|
533
|
-
|
|
534
|
-
|
|
594
|
+
## Safety & Sandboxing Scope
|
|
595
|
+
|
|
596
|
+
AgentDir is a local-first, cooperative flight recorder—not an execution sandbox
|
|
597
|
+
or a tamper-proof enforcement boundary. It records what agents choose to record,
|
|
598
|
+
sends nothing to a hosted AgentDir service, and complements rather than replaces
|
|
599
|
+
code review, sandboxing, or CI.
|
|
600
|
+
|
|
601
|
+
What AgentDir does:
|
|
602
|
+
|
|
603
|
+
- **Keeps raw envelopes recoverable.** Immutable local envelopes are the source
|
|
604
|
+
of truth; derived SQLite indexes can be rebuilt anytime.
|
|
605
|
+
- **Redacts common secrets before persistence.** Command arguments, captured
|
|
606
|
+
output, and emitted envelope subjects, headers, and bodies are scanned and
|
|
607
|
+
redacted before writing to disk (`--no-redact` disables this per run), with
|
|
608
|
+
`secrets scan` and `secrets redact --apply` for cleaning up older records.
|
|
609
|
+
- **Bounds captured output.** `agentdir run` caps stored stdout and stderr at
|
|
610
|
+
`--max-capture-bytes` (256 KiB per stream by default) and marks partial
|
|
611
|
+
evidence in session and claim audits.
|
|
612
|
+
- **Bounds runaway commands.** `agentdir run --timeout <seconds>` terminates
|
|
613
|
+
the command's process group after the deadline and records exit code `124`.
|
|
614
|
+
- **Supports opt-in environment scrubbing.** `agentdir run --scrub-env` strips
|
|
615
|
+
common credential environment variables from the child process without
|
|
616
|
+
modifying the parent shell environment:
|
|
617
|
+
- Case-insensitive suffixes (bare or `*_`-prefixed): `API_KEY`, `APIKEY`,
|
|
618
|
+
`TOKEN`, `SECRET`, `SECRET_KEY`, `ACCESS_KEY`, `ACCESS_KEY_ID`,
|
|
619
|
+
`PASSWORD`, `PASSWD`, `PASSPHRASE`, `PRIVATE_KEY`, `CREDENTIAL`,
|
|
620
|
+
`CREDENTIALS`, `AUTH_HEADER`, `AUTHORIZATION`.
|
|
621
|
+
- Prefixes: `OPENAI_*`, `ANTHROPIC_*`.
|
|
622
|
+
- Exact names: `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`,
|
|
623
|
+
`AWS_SESSION_TOKEN`, `AWS_SECURITY_TOKEN`, `DATABASE_URL`, `GH_TOKEN`,
|
|
624
|
+
`GITHUB_TOKEN`, `JEV_API_KEY`, `PGPASSWORD`, `TYPESAFE_API_KEY`.
|
|
625
|
+
- Standard runtime variables (`PATH`, `HOME`, `USER`, `TERM`, `SHELL`,
|
|
626
|
+
`LANG`, `LC_*`, `TMPDIR`, `VIRTUAL_ENV`, `PYTHONPATH`, `XDG_*`,
|
|
627
|
+
`SSH_AUTH_SOCK`, and `AGENTDIR_*` including `AGENTDIR_SESSION`) are
|
|
628
|
+
preserved.
|
|
629
|
+
- Event headers record only the scrubbed count (`X-AgentDir-Env-Scrubbed`)
|
|
630
|
+
and stripped variable names (`X-AgentDir-Env-Scrubbed-Keys`), never
|
|
631
|
+
values.
|
|
632
|
+
|
|
633
|
+
Useful health and cleanup commands:
|
|
535
634
|
|
|
536
635
|
```bash
|
|
537
636
|
agentdir doctor
|
|
@@ -540,14 +639,25 @@ agentdir secrets redact
|
|
|
540
639
|
agentdir secrets redact --apply
|
|
541
640
|
```
|
|
542
641
|
|
|
642
|
+
What AgentDir intentionally leaves to the outer environment:
|
|
643
|
+
|
|
644
|
+
- **Filesystem, network, process, and privilege isolation.** Use your agent
|
|
645
|
+
harness, container, or VM to restrict what commands can read, write, execute,
|
|
646
|
+
or reach over the network.
|
|
647
|
+
- **Mandatory or tamper-proof enforcement.** Wrapped commands still run as your
|
|
648
|
+
local user, and `.agentdir` stores plain files protected by local filesystem
|
|
649
|
+
permissions.
|
|
650
|
+
|
|
543
651
|
## Upgrade And Rollback
|
|
544
652
|
|
|
545
|
-
|
|
653
|
+
Update an existing install and refresh current repo adoption:
|
|
546
654
|
|
|
547
655
|
```bash
|
|
548
|
-
agentdir
|
|
656
|
+
agentdir update
|
|
549
657
|
```
|
|
550
658
|
|
|
659
|
+
(`agentdir --upgrade` remains supported as a legacy alias.)
|
|
660
|
+
|
|
551
661
|
Rollback to the previous stable release:
|
|
552
662
|
|
|
553
663
|
```bash
|
|
@@ -76,7 +76,7 @@ Useful variants:
|
|
|
76
76
|
```bash
|
|
77
77
|
agentdir update --install-skill none
|
|
78
78
|
agentdir update --no-adopt
|
|
79
|
-
agentdir update --version v0.
|
|
79
|
+
agentdir update --version v0.10.0
|
|
80
80
|
agentdir update --dry-run
|
|
81
81
|
```
|
|
82
82
|
|
|
@@ -110,19 +110,20 @@ agentdir work finish --json --brief
|
|
|
110
110
|
If you already have the wheel asset:
|
|
111
111
|
|
|
112
112
|
```bash
|
|
113
|
-
AGENTDIR_WHEEL=/path/to/agentdir_cli-0.
|
|
113
|
+
AGENTDIR_WHEEL=/path/to/agentdir_cli-0.11.0-py3-none-any.whl bash scripts/install.sh
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
To force the virtual environment installer even when `pipx` is present:
|
|
117
117
|
|
|
118
118
|
```bash
|
|
119
|
-
AGENTDIR_FORCE_VENV=1 AGENTDIR_WHEEL=/path/to/agentdir_cli-0.
|
|
119
|
+
AGENTDIR_FORCE_VENV=1 AGENTDIR_WHEEL=/path/to/agentdir_cli-0.11.0-py3-none-any.whl bash scripts/install.sh
|
|
120
120
|
```
|
|
121
121
|
|
|
122
122
|
## Roll Back To The Previous Release
|
|
123
123
|
|
|
124
|
-
Rollback does not rely on the installed `agentdir` binary. It
|
|
125
|
-
installer
|
|
124
|
+
Rollback does not rely on the installed `agentdir` binary. It runs the current
|
|
125
|
+
installer targeting the requested GitHub Release tag and verifies the installed
|
|
126
|
+
version.
|
|
126
127
|
|
|
127
128
|
To return to the previous stable release:
|
|
128
129
|
|
|
@@ -133,13 +134,13 @@ curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/rollbac
|
|
|
133
134
|
To choose a specific release:
|
|
134
135
|
|
|
135
136
|
```bash
|
|
136
|
-
curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/rollback.sh | bash -s -- v0.
|
|
137
|
+
curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/rollback.sh | bash -s -- v0.10.0
|
|
137
138
|
```
|
|
138
139
|
|
|
139
140
|
The equivalent manual rollback is:
|
|
140
141
|
|
|
141
142
|
```bash
|
|
142
|
-
curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/install.sh | AGENTDIR_VERSION=v0.
|
|
143
|
+
curl -fsSL https://raw.githubusercontent.com/jstxn/agentdir/main/scripts/install.sh | AGENTDIR_VERSION=v0.10.0 bash
|
|
143
144
|
```
|
|
144
145
|
|
|
145
146
|
## Optional Extras
|
|
@@ -171,7 +172,6 @@ than setup weight:
|
|
|
171
172
|
```bash
|
|
172
173
|
pipx inject agentdir-cli 'agentdir-cli[semantic]'
|
|
173
174
|
agentdir memory embeddings configure fastembed # one-time model download
|
|
174
|
-
agentdir memory backend configure sqlite-vec # optional: faster large stores
|
|
175
175
|
```
|
|
176
176
|
|
|
177
177
|
Once FastEmbed is configured and importable, normal automatic callers fuse its
|
|
@@ -186,13 +186,14 @@ Reach for it when:
|
|
|
186
186
|
|
|
187
187
|
- queries are paraphrases rather than the recorded wording ("auth timeouts"
|
|
188
188
|
should match "login requests hang for 30s"),
|
|
189
|
-
- memory is federated across several repos with different vocabularies
|
|
190
|
-
- the store has grown past tens of thousands of passages and `sqlite-vec`
|
|
191
|
-
lookup speed starts to matter.
|
|
189
|
+
- memory is federated across several repos with different vocabularies.
|
|
192
190
|
|
|
193
191
|
Skip it for single-repo stores with recent, literally-worded memory; automatic
|
|
194
192
|
retrieval will continue using the built-in backend without a model download.
|
|
195
|
-
`agentdir memory backend
|
|
193
|
+
`agentdir memory backend list` shows which backends are active. Note that
|
|
194
|
+
`agentdir memory backend configure sqlite-vec` records backend configuration
|
|
195
|
+
intent, while `sqlite-vec` retrieval currently reports `not-implemented` and
|
|
196
|
+
active searches run on the built-in hybrid/FastEmbed SQLite index.
|
|
196
197
|
|
|
197
198
|
## Store Location Scopes
|
|
198
199
|
|
|
@@ -36,7 +36,7 @@ pi install git:github.com/jstxn/agentdir@<tag-or-commit>
|
|
|
36
36
|
If the npm package has been published:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
pi install npm:@jstxn/agentdir-pi@0.
|
|
39
|
+
pi install npm:@jstxn/agentdir-pi@0.11.0
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
Use `pi config` to enable or disable the bundled skill after installation.
|
|
@@ -50,7 +50,7 @@ The root `package.json` declares the Pi resources:
|
|
|
50
50
|
"keywords": ["pi-package"],
|
|
51
51
|
"pi": {
|
|
52
52
|
"skills": ["./skills"],
|
|
53
|
-
"image": "https://raw.githubusercontent.com/jstxn/agentdir/v0.
|
|
53
|
+
"image": "https://raw.githubusercontent.com/jstxn/agentdir/v0.11.0/docs/assets/agentdir-overview.png"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
```
|
|
@@ -45,9 +45,9 @@ chmod +x dist/rollback-agentdir.sh
|
|
|
45
45
|
Expected assets (substitute the release version):
|
|
46
46
|
|
|
47
47
|
```text
|
|
48
|
-
dist/agentdir_cli-0.
|
|
49
|
-
dist/agentdir_cli-0.
|
|
50
|
-
dist/jstxn-agentdir-pi-0.
|
|
48
|
+
dist/agentdir_cli-0.11.0-py3-none-any.whl
|
|
49
|
+
dist/agentdir_cli-0.11.0.tar.gz
|
|
50
|
+
dist/jstxn-agentdir-pi-0.11.0.tgz
|
|
51
51
|
dist/install-agentdir.sh
|
|
52
52
|
dist/rollback-agentdir.sh
|
|
53
53
|
```
|
|
@@ -55,19 +55,19 @@ dist/rollback-agentdir.sh
|
|
|
55
55
|
## Tag And Release
|
|
56
56
|
|
|
57
57
|
```bash
|
|
58
|
-
git tag -a v0.
|
|
58
|
+
git tag -a v0.11.0 -m "Release AgentDir v0.11.0"
|
|
59
59
|
git push origin main
|
|
60
|
-
git push origin v0.
|
|
60
|
+
git push origin v0.11.0
|
|
61
61
|
|
|
62
|
-
gh release create v0.
|
|
63
|
-
dist/agentdir_cli-0.
|
|
64
|
-
dist/agentdir_cli-0.
|
|
65
|
-
dist/jstxn-agentdir-pi-0.
|
|
62
|
+
gh release create v0.11.0 \
|
|
63
|
+
dist/agentdir_cli-0.11.0-py3-none-any.whl \
|
|
64
|
+
dist/agentdir_cli-0.11.0.tar.gz \
|
|
65
|
+
dist/jstxn-agentdir-pi-0.11.0.tgz \
|
|
66
66
|
dist/install-agentdir.sh \
|
|
67
67
|
dist/rollback-agentdir.sh \
|
|
68
68
|
--repo jstxn/agentdir \
|
|
69
|
-
--title "AgentDir v0.
|
|
70
|
-
--notes-file docs/releases/v0.
|
|
69
|
+
--title "AgentDir v0.11.0" \
|
|
70
|
+
--notes-file docs/releases/v0.11.0.md
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
Publishing the release triggers `publish.yml`, which rebuilds the sdist and
|
|
@@ -94,7 +94,7 @@ Use a disposable environment:
|
|
|
94
94
|
|
|
95
95
|
```bash
|
|
96
96
|
tmp="$(mktemp -d)"
|
|
97
|
-
gh release download v0.
|
|
97
|
+
gh release download v0.11.0 --repo jstxn/agentdir --pattern install-agentdir.sh --dir "$tmp"
|
|
98
98
|
AGENTDIR_PREFIX="$tmp/prefix" AGENTDIR_HOME="$tmp/home" AGENTDIR_FORCE_VENV=1 bash "$tmp/install-agentdir.sh"
|
|
99
99
|
"$tmp/prefix/bin/agentdir" --help
|
|
100
100
|
"$tmp/prefix/bin/agentdir" --version
|
|
@@ -130,13 +130,13 @@ tmp="$(mktemp -d)"
|
|
|
130
130
|
AGENTDIR_PREFIX="$tmp/prefix" \
|
|
131
131
|
AGENTDIR_HOME="$tmp/home" \
|
|
132
132
|
AGENTDIR_FORCE_VENV=1 \
|
|
133
|
-
AGENTDIR_WHEEL="$PWD/dist/agentdir_cli-0.
|
|
133
|
+
AGENTDIR_WHEEL="$PWD/dist/agentdir_cli-0.11.0-py3-none-any.whl" \
|
|
134
134
|
bash dist/install-agentdir.sh
|
|
135
135
|
|
|
136
136
|
AGENTDIR_PREFIX="$tmp/prefix" \
|
|
137
137
|
AGENTDIR_HOME="$tmp/home" \
|
|
138
138
|
AGENTDIR_FORCE_VENV=1 \
|
|
139
|
-
bash dist/rollback-agentdir.sh v0.
|
|
139
|
+
bash dist/rollback-agentdir.sh v0.10.0
|
|
140
140
|
|
|
141
141
|
"$tmp/prefix/bin/agentdir" --help
|
|
142
142
|
```
|