agentpack-cli 0.1.4__tar.gz → 0.1.6__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.
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/PKG-INFO +82 -98
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/README.md +81 -97
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/pyproject.toml +1 -1
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/__init__.py +1 -1
- agentpack_cli-0.1.6/src/agentpack/adapters/antigravity.py +27 -0
- agentpack_cli-0.1.6/src/agentpack/adapters/detect.py +47 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/application/pack_service.py +2 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/install.py +32 -5
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/pack.py +13 -7
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/session.py +2 -2
- agentpack_cli-0.1.6/src/agentpack/installers/antigravity.py +49 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/installers/codex.py +1 -1
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/installers/cursor.py +2 -2
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/installers/windsurf.py +2 -2
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/integrations/git_hooks.py +4 -1
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/renderers/markdown.py +14 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/.gitignore +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/LICENSE +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/adapters/__init__.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/adapters/base.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/adapters/claude.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/adapters/codex.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/adapters/cursor.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/adapters/generic.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/adapters/windsurf.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/analysis/__init__.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/analysis/dependency_graph.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/analysis/go_imports.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/analysis/java_imports.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/analysis/js_ts_imports.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/analysis/python_imports.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/analysis/ranking.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/analysis/rust_imports.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/analysis/symbols.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/analysis/tests.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/application/__init__.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/cli.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/__init__.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/_shared.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/benchmark.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/claude_cmd.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/diff.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/doctor.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/explain.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/init.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/monitor.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/scan.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/stats.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/status.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/summarize.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/commands/watch.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/__init__.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/bootstrap.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/cache.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/config.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/context_pack.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/diff.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/git.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/git_hooks.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/global_install.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/ignore.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/merkle.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/models.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/redactor.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/scanner.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/snapshot.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/token_estimator.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/core/vscode_tasks.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/data/agentpack.md +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/installers/__init__.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/installers/claude.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/integrations/__init__.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/integrations/global_install.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/integrations/vscode_tasks.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/renderers/__init__.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/renderers/compact.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/renderers/receipts.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/session/__init__.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/session/state.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/summaries/__init__.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/summaries/base.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/summaries/llm.py +0 -0
- {agentpack_cli-0.1.4 → agentpack_cli-0.1.6}/src/agentpack/summaries/offline.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentpack-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: Token-aware context packing for AI coding agents — Claude, Cursor, Windsurf, and Codex
|
|
5
5
|
License: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -45,7 +45,7 @@ Description-Content-Type: text/markdown
|
|
|
45
45
|
[](https://opensource.org/licenses/MIT)
|
|
46
46
|
[](https://github.com/vishal2612200/agentpack/actions/workflows/ci.yml)
|
|
47
47
|
|
|
48
|
-
> **Status: alpha (v0.1.
|
|
48
|
+
> **Status: alpha (v0.1.5).** Works, tested, used in real sessions. Python and JavaScript/TypeScript are the best-supported languages. Not yet validated across a wide range of repos. API may change before 1.0.
|
|
49
49
|
>
|
|
50
50
|
> **Platform note:** macOS and Linux are fully supported. Windows support is not yet implemented (git hooks use POSIX shell; the Claude Code session hooks use `python3`/`rm -f`). Contributions welcome.
|
|
51
51
|
|
|
@@ -84,28 +84,22 @@ pip install agentpack-cli
|
|
|
84
84
|
# Session mode: start once, then work normally
|
|
85
85
|
cd your-project
|
|
86
86
|
agentpack init
|
|
87
|
-
agentpack install
|
|
87
|
+
agentpack install # auto-detects your IDE
|
|
88
88
|
agentpack session start
|
|
89
89
|
agentpack watch # in another terminal — keeps context fresh automatically
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
Then open Claude / Cursor / Codex and write your task normally. AgentPack keeps `.agentpack/context.md` current.
|
|
93
|
-
|
|
94
|
-
Or without any setup at all:
|
|
95
|
-
|
|
96
|
-
```bash
|
|
97
|
-
agentpack pack --agent claude --task "fix auth session bug" --print | claude
|
|
98
|
-
```
|
|
92
|
+
Then open Claude Code / Cursor / Windsurf / Codex / Antigravity and write your task normally. AgentPack keeps `.agentpack/context.md` current.
|
|
99
93
|
|
|
100
94
|
For power users who want background repacking on every commit and cd:
|
|
101
95
|
|
|
102
96
|
```bash
|
|
103
97
|
# Advanced: global automation (opt-in repos only — never touches repos without .agentpack/)
|
|
104
|
-
agentpack global-install --
|
|
105
|
-
agentpack global-install
|
|
98
|
+
agentpack global-install --dry-run # preview first
|
|
99
|
+
agentpack global-install
|
|
106
100
|
```
|
|
107
101
|
|
|
108
|
-
Supported agents: **Claude Code**, **Cursor**, **Windsurf**, **Codex**, or any LLM
|
|
102
|
+
Supported agents: **Claude Code**, **Cursor**, **Windsurf**, **Codex**, **Antigravity** (Google), or any LLM.
|
|
109
103
|
|
|
110
104
|
---
|
|
111
105
|
|
|
@@ -146,11 +140,9 @@ Per session: ~4.1M raw repo → ~35K packed context.
|
|
|
146
140
|
|
|
147
141
|
| Workflow | Value |
|
|
148
142
|
|---|---|
|
|
149
|
-
|
|
|
150
|
-
| `claude < .agentpack/context.claude.md` — stdin | **High** — same |
|
|
151
|
-
| Claude API calls without tool use | **High** — same |
|
|
143
|
+
| Claude API calls without tool use | **High** — pack is the only context the model sees |
|
|
152
144
|
| CI: generate pack per PR, attach as artifact | **High** — reviewers get instant focused context |
|
|
153
|
-
| Cursor / Windsurf / Codex sessions | **Medium** — context auto-injected on startup, repacked on commit |
|
|
145
|
+
| Cursor / Windsurf / Codex / Antigravity sessions | **Medium** — context auto-injected on startup, repacked on commit |
|
|
154
146
|
| Large repos (>50k tokens) where exploration is slow | **Medium** — summary cache eliminates repeated file reads |
|
|
155
147
|
| Claude Code interactive session, small repo | **Low** — Claude reads files on demand already |
|
|
156
148
|
|
|
@@ -178,11 +170,11 @@ The other difference: all three pack uniformly (full content or nothing). AgentP
|
|
|
178
170
|
|
|
179
171
|
Different category. Aider is an interactive pair programmer — it reads, edits, and commits files directly. Its repo-map is genuinely smart. If you want an AI coding assistant making actual edits, aider is excellent.
|
|
180
172
|
|
|
181
|
-
AgentPack is not a coding assistant. It's a context preparation tool. The output is a markdown file you
|
|
173
|
+
AgentPack is not a coding assistant. It's a context preparation tool. The output is a markdown file you can pass as context.
|
|
182
174
|
|
|
183
175
|
**Use aider if:** you want interactive, supervised AI coding sessions in a terminal.
|
|
184
176
|
|
|
185
|
-
**Use agentpack if:** you're
|
|
177
|
+
**Use agentpack if:** you're working on large repos and want automatic, task-driven file selection — CI, scripts, batch workflows, or interactive sessions.
|
|
186
178
|
|
|
187
179
|
### Claude Code / Cursor / Windsurf / Codex (agentic IDEs)
|
|
188
180
|
|
|
@@ -194,14 +186,13 @@ AgentPack's value here is different: `agentpack install --agent <x>` configures
|
|
|
194
186
|
|
|
195
187
|
| Scenario | repomix | gitingest | code2prompt | aider | agentpack |
|
|
196
188
|
|---|---|---|---|---|---|
|
|
197
|
-
| Piped CLI (`... \| claude`) | ✓ dump | ✓ dump | ✓ dump | ✗ | ✓ task-filtered |
|
|
198
189
|
| API call without tool use | ✓ dump | ✗ | ✓ | ✗ | ✓ task-filtered |
|
|
199
190
|
| CI per-PR context | ✓ dump | ✗ | ✓ | ✗ | ✓ task-filtered |
|
|
200
191
|
| Auto task inference from git | ✗ | ✗ | ✗ | partial | ✓ |
|
|
201
192
|
| Relevance ranking by task | ✗ | ✗ | ✗ | ✗ | ✓ |
|
|
202
193
|
| Import graph traversal | ✗ | ✗ | ✗ | ✓ | ✓ |
|
|
203
194
|
| Token budget enforcement | manual | manual | manual | ✓ | ✓ |
|
|
204
|
-
| Cursor / Windsurf / Codex install | ✗ | ✗ | ✗ | ✗ | ✓ |
|
|
195
|
+
| Cursor / Windsurf / Codex / Antigravity install | ✗ | ✗ | ✗ | ✗ | ✓ |
|
|
205
196
|
| Zero API calls | ✓ | ✓ | ✓ | ✗ | ✓ |
|
|
206
197
|
| Interactive coding sessions | ✗ | ✗ | ✗ | ✓✓ | ✗ |
|
|
207
198
|
| Any LLM | ✓ | ✓ | ✓ | ✓ | partial* |
|
|
@@ -255,7 +246,8 @@ Then open Claude Code / Cursor / Codex and write your coding task normally.
|
|
|
255
246
|
| Codex | Medium | `AGENTS.md` + `session start` + `watch` |
|
|
256
247
|
| Cursor | Medium | `.cursor/rules/agentpack.mdc` + `session start` + `watch` |
|
|
257
248
|
| Windsurf | Medium | `.windsurfrules` + `session start` + `watch` |
|
|
258
|
-
|
|
|
249
|
+
| Antigravity | Medium | `.agent/skills/agentpack/SKILL.md` + `GEMINI.md` + `session start` + `watch` |
|
|
250
|
+
| Generic | Basic | `watch` mode + read `context.md` |
|
|
259
251
|
|
|
260
252
|
### Honest limitations
|
|
261
253
|
|
|
@@ -272,24 +264,18 @@ Then open Claude Code / Cursor / Codex and write your coding task normally.
|
|
|
272
264
|
pip install agentpack-cli
|
|
273
265
|
cd your-project
|
|
274
266
|
agentpack init
|
|
275
|
-
agentpack install
|
|
276
|
-
agentpack session start
|
|
277
|
-
agentpack watch
|
|
267
|
+
agentpack install # auto-detects your IDE (Claude Code, Cursor, Windsurf, Codex, Antigravity)
|
|
268
|
+
agentpack session start # generate initial context
|
|
269
|
+
agentpack watch # in another terminal — keeps context fresh
|
|
278
270
|
```
|
|
279
271
|
|
|
280
|
-
Then open
|
|
281
|
-
|
|
282
|
-
**Just want to pipe?**
|
|
283
|
-
|
|
284
|
-
```bash
|
|
285
|
-
agentpack pack --agent claude --task "fix auth session bug" --print | claude
|
|
286
|
-
```
|
|
272
|
+
Then open your agent and write your task normally.
|
|
287
273
|
|
|
288
274
|
**Power users (global automation):**
|
|
289
275
|
|
|
290
276
|
```bash
|
|
291
|
-
agentpack global-install --
|
|
292
|
-
agentpack global-install
|
|
277
|
+
agentpack global-install --dry-run # preview
|
|
278
|
+
agentpack global-install # apply
|
|
293
279
|
source ~/.zshrc
|
|
294
280
|
```
|
|
295
281
|
|
|
@@ -301,6 +287,8 @@ Then opt each project in: `cd your-project && agentpack init`. After that git ho
|
|
|
301
287
|
|
|
302
288
|
Run once per project. Each command is idempotent — safe to re-run, never clobbers unrelated config.
|
|
303
289
|
|
|
290
|
+
`agentpack install` without `--agent` auto-detects the active IDE from environment variables and project files. Pass `--agent` explicitly to override.
|
|
291
|
+
|
|
304
292
|
### Claude Code
|
|
305
293
|
|
|
306
294
|
```bash
|
|
@@ -348,14 +336,28 @@ Configures:
|
|
|
348
336
|
- `AGENTS.md` — tells Codex to read the context pack before each task
|
|
349
337
|
- `.git/hooks/post-commit`, `post-merge`, `post-checkout` — background repack on tree change
|
|
350
338
|
|
|
339
|
+
### Antigravity
|
|
340
|
+
|
|
341
|
+
```bash
|
|
342
|
+
agentpack install --agent antigravity
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
Configures:
|
|
346
|
+
- `.agent/skills/agentpack/SKILL.md` — AgentPack context as a Skill; Antigravity activates it automatically for coding tasks
|
|
347
|
+
- `GEMINI.md` — registers the agentpack skill reference
|
|
348
|
+
- `.git/hooks/post-commit`, `post-merge`, `post-checkout` — background repack on tree change
|
|
349
|
+
- `.vscode/tasks.json` — "AgentPack: Repack context" in Command Palette + `runOn: folderOpen`
|
|
350
|
+
|
|
351
|
+
The Skill descriptor activates AgentPack automatically — no `--task` flag required when working in Antigravity.
|
|
352
|
+
|
|
351
353
|
### Auto-repack comparison
|
|
352
354
|
|
|
353
|
-
| Mechanism | Claude Code | Cursor | Windsurf | Codex |
|
|
354
|
-
|
|
355
|
-
| Config file patched | `CLAUDE.md` + `.claude/settings.json` | `.cursorrules` + `.cursor/rules/*.mdc` | `.windsurfrules` | `AGENTS.md` |
|
|
356
|
-
| Auto-inject on startup | ✅ `UserPromptSubmit` hook | ✅ `alwaysApply` | ✅ rules file | ✅ `AGENTS.md` |
|
|
357
|
-
| Auto-repack when stale | ✅ hook (snapshot hash, ~1ms when fresh) | ✅ git hooks | ✅ git hooks | ✅ git hooks |
|
|
358
|
-
| Manual repack shortcut | ✅ `/agentpack` slash cmd | ✅ VS Code task | ✅ VS Code task | `agentpack pack` |
|
|
355
|
+
| Mechanism | Claude Code | Cursor | Windsurf | Codex | Antigravity |
|
|
356
|
+
|---|---|---|---|---|---|
|
|
357
|
+
| Config file patched | `CLAUDE.md` + `.claude/settings.json` | `.cursorrules` + `.cursor/rules/*.mdc` | `.windsurfrules` | `AGENTS.md` | `.agent/skills/agentpack/SKILL.md` + `GEMINI.md` |
|
|
358
|
+
| Auto-inject on startup | ✅ `UserPromptSubmit` hook | ✅ `alwaysApply` | ✅ rules file | ✅ `AGENTS.md` | ✅ Skill auto-activation |
|
|
359
|
+
| Auto-repack when stale | ✅ hook (snapshot hash, ~1ms when fresh) | ✅ git hooks | ✅ git hooks | ✅ git hooks | ✅ git hooks |
|
|
360
|
+
| Manual repack shortcut | ✅ `/agentpack` slash cmd | ✅ VS Code task | ✅ VS Code task | `agentpack pack` | ✅ VS Code task |
|
|
359
361
|
|
|
360
362
|
---
|
|
361
363
|
|
|
@@ -444,13 +446,7 @@ jobs:
|
|
|
444
446
|
retention-days: 7
|
|
445
447
|
```
|
|
446
448
|
|
|
447
|
-
Reviewers download the artifact and
|
|
448
|
-
|
|
449
|
-
```bash
|
|
450
|
-
claude < context.claude.md
|
|
451
|
-
```
|
|
452
|
-
|
|
453
|
-
No repo clone needed. Claude gets focused context for exactly the PR's changes.
|
|
449
|
+
Reviewers download the artifact and open it in their agent of choice. No repo clone needed — the pack contains full content for changed files and summaries for dependencies.
|
|
454
450
|
|
|
455
451
|
---
|
|
456
452
|
|
|
@@ -461,10 +457,12 @@ No repo clone needed. Claude gets focused context for exactly the PR's changes.
|
|
|
461
457
|
Install once — works in every repo from that point on. The recommended first step.
|
|
462
458
|
|
|
463
459
|
```bash
|
|
464
|
-
agentpack global-install
|
|
465
|
-
agentpack global-install --agent
|
|
466
|
-
agentpack global-install --agent
|
|
467
|
-
agentpack global-install --agent
|
|
460
|
+
agentpack global-install # auto-detect IDE
|
|
461
|
+
agentpack global-install --agent claude # Claude Code
|
|
462
|
+
agentpack global-install --agent cursor # Cursor
|
|
463
|
+
agentpack global-install --agent windsurf # Windsurf
|
|
464
|
+
agentpack global-install --agent codex # Codex
|
|
465
|
+
agentpack global-install --agent antigravity # Antigravity
|
|
468
466
|
```
|
|
469
467
|
|
|
470
468
|
What it does:
|
|
@@ -478,7 +476,7 @@ Options:
|
|
|
478
476
|
|
|
479
477
|
| Flag | Default | Description |
|
|
480
478
|
|---|---|---|
|
|
481
|
-
| `--agent` | `
|
|
479
|
+
| `--agent` | `auto` | Target agent (`auto` \| `claude` \| `cursor` \| `windsurf` \| `codex` \| `antigravity`) |
|
|
482
480
|
| `--no-pipx` | — | Skip pipx install (if agentpack already installed) |
|
|
483
481
|
| `--no-shell-hook` | — | Skip shell rc patching |
|
|
484
482
|
| `--no-git-template` | — | Skip git template hooks |
|
|
@@ -580,10 +578,12 @@ Creates:
|
|
|
580
578
|
Configure agentpack for your AI coding agent.
|
|
581
579
|
|
|
582
580
|
```bash
|
|
583
|
-
agentpack install
|
|
584
|
-
agentpack install --agent
|
|
585
|
-
agentpack install --agent
|
|
586
|
-
agentpack install --agent
|
|
581
|
+
agentpack install # auto-detect IDE
|
|
582
|
+
agentpack install --agent claude # CLAUDE.md + .claude/settings.json hooks
|
|
583
|
+
agentpack install --agent cursor # .cursorrules + .mdc + git hooks + VS Code tasks
|
|
584
|
+
agentpack install --agent windsurf # .windsurfrules + git hooks + VS Code tasks
|
|
585
|
+
agentpack install --agent codex # AGENTS.md + git hooks
|
|
586
|
+
agentpack install --agent antigravity # .agent/skills/agentpack/SKILL.md + GEMINI.md + git hooks + VS Code tasks
|
|
587
587
|
```
|
|
588
588
|
|
|
589
589
|
All installs are idempotent — safe to re-run, merge with existing config, never duplicate.
|
|
@@ -608,30 +608,25 @@ Run this once after `init`. After that, pack automatically rebuilds summaries on
|
|
|
608
608
|
Generate a context pack.
|
|
609
609
|
|
|
610
610
|
```bash
|
|
611
|
-
|
|
612
|
-
agentpack pack --agent claude --task "fix auth
|
|
613
|
-
|
|
614
|
-
# Save to file
|
|
615
|
-
agentpack pack --agent claude --task "fix auth session bug"
|
|
616
|
-
claude < .agentpack/context.claude.md
|
|
611
|
+
agentpack pack --task "fix auth session bug" # auto-detects your IDE
|
|
612
|
+
agentpack pack --agent claude --task "fix auth bug" # explicit agent
|
|
617
613
|
|
|
618
614
|
# Only include changes since a git ref
|
|
619
|
-
agentpack pack --
|
|
615
|
+
agentpack pack --task "review these changes" --since main
|
|
620
616
|
|
|
621
617
|
# Watch mode — re-packs on every file change
|
|
622
|
-
agentpack pack --
|
|
618
|
+
agentpack pack --task "refactor auth" --session
|
|
623
619
|
```
|
|
624
620
|
|
|
625
621
|
Options:
|
|
626
622
|
|
|
627
623
|
| Flag | Default | Description |
|
|
628
624
|
|------|---------|-------------|
|
|
629
|
-
| `--agent` | `
|
|
625
|
+
| `--agent` | `auto` | Target agent (`auto` \| `claude` \| `cursor` \| `windsurf` \| `codex` \| `antigravity` \| `generic`). `auto` detects the active IDE from env and project files. |
|
|
630
626
|
| `--task` | `auto` | Task description, or `auto` to infer from git |
|
|
631
627
|
| `--mode` | `balanced` | Budget mode: `minimal`, `balanced`, `deep` |
|
|
632
628
|
| `--budget` | 25000 | Token budget |
|
|
633
629
|
| `--since` | — | Only include files changed since this git ref |
|
|
634
|
-
| `--print` | off | Print to stdout (use with pipe) |
|
|
635
630
|
| `--session` | off | Re-pack on every file change (watch mode) |
|
|
636
631
|
| `--refresh` | off | Force rebuild summaries before packing |
|
|
637
632
|
|
|
@@ -1062,11 +1057,12 @@ Works like `.gitignore`. Default rules exclude:
|
|
|
1062
1057
|
┌────────────────────▼────────────────────┐
|
|
1063
1058
|
│ RENDERING │
|
|
1064
1059
|
│ │
|
|
1065
|
-
│ Claude adapter
|
|
1066
|
-
│ Cursor adapter
|
|
1067
|
-
│ Windsurf adapter
|
|
1068
|
-
│ Codex adapter
|
|
1069
|
-
│
|
|
1060
|
+
│ Claude adapter ──▶ context.claude.md │
|
|
1061
|
+
│ Cursor adapter ──▶ context.md │
|
|
1062
|
+
│ Windsurf adapter ──▶ context.md │
|
|
1063
|
+
│ Codex adapter ──▶ context.md │
|
|
1064
|
+
│ Antigravity adapter ──▶ .agent/skills/agentpack/SKILL.md │
|
|
1065
|
+
│ Generic adapter ──▶ context.md │
|
|
1070
1066
|
│ │
|
|
1071
1067
|
│ Context receipts (why each file in/out)│
|
|
1072
1068
|
│ Secret redaction (AWS/GH/OpenAI tokens)│
|
|
@@ -1133,13 +1129,16 @@ src/agentpack/
|
|
|
1133
1129
|
cursor.py # renders context.md via render_generic()
|
|
1134
1130
|
windsurf.py # renders context.md
|
|
1135
1131
|
codex.py # renders context.md
|
|
1132
|
+
antigravity.py # renders .agent/skills/agentpack/SKILL.md (SKILL.md frontmatter + body)
|
|
1136
1133
|
generic.py # renders context.md (any LLM)
|
|
1134
|
+
detect.py # detect_agent(): infers active IDE from env vars + project files
|
|
1137
1135
|
|
|
1138
1136
|
installers/ # repo/tool configuration — separate from rendering
|
|
1139
1137
|
claude.py # ClaudeInstaller: CLAUDE.md + .claude/settings.json
|
|
1140
1138
|
cursor.py # CursorInstaller: .cursorrules + .mdc + auto-repack
|
|
1141
1139
|
windsurf.py # WindsurfInstaller: .windsurfrules + auto-repack
|
|
1142
1140
|
codex.py # CodexInstaller: AGENTS.md + git hooks
|
|
1141
|
+
antigravity.py # AntigravityInstaller: GEMINI.md + .agent/skills/ + auto-repack
|
|
1143
1142
|
|
|
1144
1143
|
integrations/ # system/tool integration (not core domain)
|
|
1145
1144
|
git_hooks.py # install/remove .git/hooks post-commit/merge/checkout
|
|
@@ -1180,6 +1179,7 @@ src/agentpack/
|
|
|
1180
1179
|
- **`PackPlanner` owns shared planning**: `PackPlanner.plan()` runs scan → summarize → graph → rank → select and returns a `PackPlan`. Both `pack` and `explain` use the same planner — no duplicated pipeline logic, no drift.
|
|
1181
1180
|
- **`PackService` materializes a plan**: takes a `PackPlan`, builds the `ContextPack` artifact, delegates rendering to `AdapterRegistry`, persists snapshot + metadata + metrics.
|
|
1182
1181
|
- **`AdapterRegistry` maps agent → adapter**: adding a new agent output format requires one entry in `AdapterRegistry.get()`, not changes to `PackService`.
|
|
1182
|
+
- **`detect_agent()` runs at invocation time**: `--agent auto` (the default) calls `detect_agent()` fresh on every `pack` run and git hook execution — so context is always written for the active IDE, even when switching between agents or running in CI.
|
|
1183
1183
|
- **`DependencyGraph` is typed**: `dependency_graph.build()` returns `DependencyGraph(nodes: dict[str, DependencyNode])` — no more `dict[str, dict]` with stringly-typed keys like `"imported_by"`. Typos are caught at the model layer.
|
|
1184
1184
|
- **`integrations/` vs `core/`**: git hooks, shell rc patching, and VS Code tasks are infrastructure concerns — they live in `integrations/`, not `core/`. `core/` is pure domain logic.
|
|
1185
1185
|
- **Adapters render; installers configure**: `adapters/` knows how to write a context file for an agent. `installers/` knows how to configure the agent's tool (CLAUDE.md, .cursorrules, settings.json). They are separate concerns and separate classes.
|
|
@@ -1192,10 +1192,10 @@ src/agentpack/
|
|
|
1192
1192
|
|
|
1193
1193
|
```bash
|
|
1194
1194
|
# You're debugging a test failure in the auth module
|
|
1195
|
-
agentpack pack --
|
|
1195
|
+
agentpack pack --task "fix failing test in auth token validation"
|
|
1196
1196
|
```
|
|
1197
1197
|
|
|
1198
|
-
AgentPack selects: the failing test file (modified), `auth/token.py` (dep), `auth/session.py` (dep), `config/settings.py` (config), skips 180 unrelated files.
|
|
1198
|
+
AgentPack selects: the failing test file (modified), `auth/token.py` (dep), `auth/session.py` (dep), `config/settings.py` (config), skips 180 unrelated files. Your agent gets 12k tokens of precisely relevant context and starts debugging immediately.
|
|
1199
1199
|
|
|
1200
1200
|
---
|
|
1201
1201
|
|
|
@@ -1203,10 +1203,10 @@ AgentPack selects: the failing test file (modified), `auth/token.py` (dep), `aut
|
|
|
1203
1203
|
|
|
1204
1204
|
```bash
|
|
1205
1205
|
# On a feature branch, nothing modified yet
|
|
1206
|
-
agentpack pack --
|
|
1206
|
+
agentpack pack --task "add rate limiting to REST API endpoints"
|
|
1207
1207
|
```
|
|
1208
1208
|
|
|
1209
|
-
Keyword expansion activates: "rate limiting" → `throttle`, `leaky`, `bucket`, `quota`. AgentPack scores: `middleware/` directory (path keyword `api`), existing `throttle.py` or `leaky_bucket.py` (content keyword), `routes/*.py` (deps).
|
|
1209
|
+
Keyword expansion activates: "rate limiting" → `throttle`, `leaky`, `bucket`, `quota`. AgentPack scores: `middleware/` directory (path keyword `api`), existing `throttle.py` or `leaky_bucket.py` (content keyword), `routes/*.py` (deps). Your agent gets the full middleware stack and starts implementing, not exploring.
|
|
1210
1210
|
|
|
1211
1211
|
---
|
|
1212
1212
|
|
|
@@ -1214,20 +1214,20 @@ Keyword expansion activates: "rate limiting" → `throttle`, `leaky`, `bucket`,
|
|
|
1214
1214
|
|
|
1215
1215
|
```bash
|
|
1216
1216
|
# Review only what changed vs main
|
|
1217
|
-
agentpack pack --
|
|
1217
|
+
agentpack pack --task "code review auth refactor" --since main
|
|
1218
1218
|
```
|
|
1219
1219
|
|
|
1220
|
-
Only files touched in this branch are included (full content). Everything else is summaries or omitted.
|
|
1220
|
+
Only files touched in this branch are included (full content). Everything else is summaries or omitted. Your agent reviews exactly the diff-visible code, not the whole codebase.
|
|
1221
1221
|
|
|
1222
1222
|
---
|
|
1223
1223
|
|
|
1224
1224
|
### Refactor: "Help me refactor the database layer"
|
|
1225
1225
|
|
|
1226
1226
|
```bash
|
|
1227
|
-
agentpack pack --
|
|
1227
|
+
agentpack pack --task "refactor database connection pooling" --mode deep
|
|
1228
1228
|
```
|
|
1229
1229
|
|
|
1230
|
-
`--mode deep` adds: related docs, more full-content files, broader dep tree. Use when the task touches many files and you want
|
|
1230
|
+
`--mode deep` adds: related docs, more full-content files, broader dep tree. Use when the task touches many files and you want your agent to see more context upfront.
|
|
1231
1231
|
|
|
1232
1232
|
---
|
|
1233
1233
|
|
|
@@ -1251,22 +1251,6 @@ agentpack watch # in a second terminal — refreshes context on every save
|
|
|
1251
1251
|
|
|
1252
1252
|
---
|
|
1253
1253
|
|
|
1254
|
-
### Pipe into any LLM
|
|
1255
|
-
|
|
1256
|
-
```bash
|
|
1257
|
-
# Claude CLI (piped)
|
|
1258
|
-
agentpack pack --task "fix SSE cancellation bug" --print | claude
|
|
1259
|
-
|
|
1260
|
-
# OpenAI CLI
|
|
1261
|
-
agentpack pack --task "fix SSE cancellation bug" --print | llm "fix this"
|
|
1262
|
-
|
|
1263
|
-
# Anthropic API via curl
|
|
1264
|
-
agentpack pack --task "debug memory leak" --print > /tmp/context.md
|
|
1265
|
-
# then reference /tmp/context.md in your API call
|
|
1266
|
-
```
|
|
1267
|
-
|
|
1268
|
-
---
|
|
1269
|
-
|
|
1270
1254
|
### Debug why a file isn't showing up
|
|
1271
1255
|
|
|
1272
1256
|
```bash
|
|
@@ -1288,7 +1272,7 @@ agentpack explain --task "fix rate limiting in auth middleware"
|
|
|
1288
1272
|
Skip writing a task description — agentpack infers it from your branch name, changed files, and recent commits:
|
|
1289
1273
|
|
|
1290
1274
|
```bash
|
|
1291
|
-
agentpack pack --task auto
|
|
1275
|
+
agentpack pack --task auto
|
|
1292
1276
|
```
|
|
1293
1277
|
|
|
1294
1278
|
Priority order: branch name → changed file paths → recent commit message. The more descriptive your branch names (`feat/add-rate-limiting` beats `dev`), the better the inferred task.
|
|
@@ -1314,7 +1298,7 @@ Every teammate and CI job skips the summarize step. `agentpack pack` is signific
|
|
|
1314
1298
|
### Use `--since` for PR reviews
|
|
1315
1299
|
|
|
1316
1300
|
```bash
|
|
1317
|
-
agentpack pack --task "review auth changes" --since main
|
|
1301
|
+
agentpack pack --task "review auth changes" --since main
|
|
1318
1302
|
```
|
|
1319
1303
|
|
|
1320
1304
|
Only includes files changed since `main`. Cuts out noise from unrelated work in long-running branches.
|
|
@@ -1375,7 +1359,7 @@ config_file = 60 # was 25 — configs always matter here
|
|
|
1375
1359
|
|
|
1376
1360
|
- **Local-first**: `init`, `scan`, `diff`, `pack`, `stats`, `summarize` make zero API calls by default
|
|
1377
1361
|
- **Non-destructive**: never overwrites user files; config patching only touches agentpack-managed blocks
|
|
1378
|
-
- **Agent-neutral**: architecture is generic; Claude is the primary target (deepest integration); Cursor, Windsurf, and
|
|
1362
|
+
- **Agent-neutral**: architecture is generic; Claude Code is the primary target (deepest integration); Cursor, Windsurf, Codex, and Antigravity are supported but less battle-tested
|
|
1379
1363
|
- **No daemons**: file watching is opt-in via `agentpack watch`; session management is opt-in via `agentpack session start`; git hooks run in the background and are opt-in via `install`
|
|
1380
1364
|
- **Honest**: packed token count reflects real content, not raw repo size
|
|
1381
1365
|
|