agentpool-cli 0.1.8__tar.gz → 0.1.10__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 (124) hide show
  1. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/CHANGELOG.md +19 -0
  2. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/PKG-INFO +17 -2
  3. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/README.md +16 -1
  4. agentpool_cli-0.1.10/docs/examples.md +49 -0
  5. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/quickstart.md +15 -0
  6. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/security.md +4 -2
  7. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/usage-detection.md +1 -1
  8. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/pyproject.toml +2 -1
  9. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/server.json +2 -2
  10. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/__init__.py +1 -1
  11. agentpool_cli-0.1.10/src/agentpool/__main__.py +11 -0
  12. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/cli.py +949 -45
  13. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/git_worktree.py +25 -2
  14. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/onboarding.py +9 -2
  15. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/session_manager.py +54 -8
  16. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/integration/test_fake_tmux_flow.py +18 -1
  17. agentpool_cli-0.1.10/tests/unit/test_cli.py +647 -0
  18. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_models_config_store.py +93 -1
  19. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_onboarding.py +9 -1
  20. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_redaction.py +12 -1
  21. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/uv.lock +1 -1
  22. agentpool_cli-0.1.8/docs/examples.md +0 -20
  23. agentpool_cli-0.1.8/tests/unit/test_cli.py +0 -260
  24. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.cursor/mcp.json.example +0 -0
  25. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.github/CODEOWNERS +0 -0
  26. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  27. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.github/ISSUE_TEMPLATE/provider_probe.md +0 -0
  28. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.github/dependabot.yml +0 -0
  29. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.github/workflows/ci.yml +0 -0
  30. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.github/workflows/release.yml +0 -0
  31. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.gitignore +0 -0
  32. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.mcp.json.example +0 -0
  33. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/AGENTS.md +0 -0
  34. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/CONTRIBUTING.md +0 -0
  35. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/LICENSE +0 -0
  36. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/SECURITY.md +0 -0
  37. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/agent-cli-and-mcp.md +0 -0
  38. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/agentpool-skill.md +0 -0
  39. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/architecture.md +0 -0
  40. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/examples/README.md +0 -0
  41. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/install.md +0 -0
  42. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/mcp-clients.md +0 -0
  43. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/mcp-tools.md +0 -0
  44. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/model-catalog.md +0 -0
  45. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/onboarding.md +0 -0
  46. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/provider-adapters.md +0 -0
  47. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/provider-lifecycle-matrix.md +0 -0
  48. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/release.md +0 -0
  49. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/setup-claude-code.md +0 -0
  50. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/setup-codex.md +0 -0
  51. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/setup-copilot.md +0 -0
  52. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/setup-cursor-cli.md +0 -0
  53. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/setup-cursor.md +0 -0
  54. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/setup-devin.md +0 -0
  55. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/setup-droid.md +0 -0
  56. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/stats.md +0 -0
  57. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/usage-probe-matrix.md +0 -0
  58. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/scripts/install.sh +0 -0
  59. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/agent_io.py +0 -0
  60. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/artifacts.py +0 -0
  61. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/config.py +0 -0
  62. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/event_detection.py +0 -0
  63. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/__init__.py +0 -0
  64. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/__init__.py +0 -0
  65. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/fake_approval_agent.py +0 -0
  66. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/fake_common.py +0 -0
  67. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/fake_completed_agent.py +0 -0
  68. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/fake_idle_agent.py +0 -0
  69. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/fake_limit_agent.py +0 -0
  70. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/fake_patch_agent.py +0 -0
  71. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/fake_question_agent.py +0 -0
  72. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/mcp/__init__.py +0 -0
  73. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/mcp/resources.py +0 -0
  74. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/mcp/tools.py +0 -0
  75. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/mcp_server.py +0 -0
  76. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/models.py +0 -0
  77. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/policy.py +0 -0
  78. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/preferences.py +0 -0
  79. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/provider_model_catalog.json +0 -0
  80. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/providers/__init__.py +0 -0
  81. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/providers/base.py +0 -0
  82. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/providers/registry.py +0 -0
  83. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/redaction.py +0 -0
  84. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/runtimes/__init__.py +0 -0
  85. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/runtimes/base.py +0 -0
  86. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/runtimes/tmux.py +0 -0
  87. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/stats/__init__.py +0 -0
  88. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/stats/card.py +0 -0
  89. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/stats/compute.py +0 -0
  90. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/stats/queries.py +0 -0
  91. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/stats/render.py +0 -0
  92. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/stats/window.py +0 -0
  93. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/store.py +0 -0
  94. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/__init__.py +0 -0
  95. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/_common.py +0 -0
  96. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/ccusage.py +0 -0
  97. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/claude.py +0 -0
  98. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/codex.py +0 -0
  99. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/codexbar.py +0 -0
  100. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/combine.py +0 -0
  101. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/copilot.py +0 -0
  102. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/devin.py +0 -0
  103. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/parsers.py +0 -0
  104. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/probes.py +0 -0
  105. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/provider_parsers.py +0 -0
  106. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/summary.py +0 -0
  107. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/utils.py +0 -0
  108. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/fixtures/provider_model_catalog_golden.json +0 -0
  109. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/fixtures/stats_seed.py +0 -0
  110. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/fixtures/usage/claude_usage.txt +0 -0
  111. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/fixtures/usage/codex_rate_limits.json +0 -0
  112. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/fixtures/usage/copilot_user.json +0 -0
  113. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/fixtures/usage/devin_plan_status.json +0 -0
  114. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_agent_io.py +0 -0
  115. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_event_policy.py +0 -0
  116. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_mcp_surface.py +0 -0
  117. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_mcp_tools.py +0 -0
  118. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_stats_cli.py +0 -0
  119. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_stats_mcp.py +0 -0
  120. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_stats_window.py +0 -0
  121. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_subprocess_safety.py +0 -0
  122. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_usage_probes.py +0 -0
  123. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_usage_provider_parsers.py +0 -0
  124. {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_usage_summary_enrichment.py +0 -0
@@ -2,6 +2,25 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.1.10 - 2026-06-03
6
+
7
+ - Add an AI-agent start section to root help pointing agents at bundled skill
8
+ guidance before they infer workflows from flags.
9
+ - Add `agentpool skills` with `list`, `get`, and `path` so agents can load
10
+ version-matched AgentPool usage guidance from the installed CLI.
11
+ - Include examples with packaged docs so `agentpool skills get core --full`
12
+ returns both the skill and copy-paste CLI flows.
13
+
14
+ ## 0.1.9 - 2026-06-02
15
+
16
+ - Harden agent-facing CLI recovery with examples on root/group help, structured
17
+ `models` action errors, and next-command hints for invalid output choices.
18
+ - Add side-effect-free previews for `preferences init`, `interrupt`, and
19
+ `leases release`; add `session show --plain`.
20
+ - Format `terminate`, `collect`, and `artifacts` human output without raw Python
21
+ dicts while preserving JSON payloads.
22
+ - Ship `python -m agentpool` support and expand CLI regression coverage.
23
+
5
24
  ## 0.1.8 - 2026-06-01
6
25
 
7
26
  - Treat stale usage snapshots as age metadata, not as an unusable-provider
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentpool-cli
3
- Version: 0.1.8
3
+ Version: 0.1.10
4
4
  Summary: Make full use of every coding-agent subscription you pay for: a local CLI + MCP server that surfaces live usage limits and offloads work to providers with headroom.
5
5
  Author: AgentPool contributors
6
6
  License-Expression: MIT
@@ -103,6 +103,13 @@ notes.
103
103
 
104
104
  ## Quickstart
105
105
 
106
+ For AI agents, start by loading the bundled version-matched skill:
107
+
108
+ ```bash
109
+ agentpool skills get agentpool
110
+ agentpool skills get core --full
111
+ ```
112
+
106
113
  ```bash
107
114
  agentpool init
108
115
  agentpool setup cursor
@@ -131,8 +138,10 @@ agentpool observe <session-id> --wait-for completed,error,question,approval_prom
131
138
  agentpool send <session-id> "Continue with the smallest useful check."
132
139
  agentpool artifacts <session-id> --json
133
140
  agentpool transcript <session-id> --tail-lines 80 --json
141
+ agentpool session show <session-id> --json
134
142
  agentpool sessions --recent 10 --json
135
143
  agentpool collect <session-id> --json
144
+ agentpool terminate <session-id> --dry-run --json
136
145
  agentpool terminate <session-id> --json
137
146
  ```
138
147
 
@@ -153,6 +162,7 @@ agentpool spawn \
153
162
  --isolation worktree
154
163
 
155
164
  agentpool worktrees list --repo .
165
+ agentpool worktrees cleanup --session-id <session-id> --dry-run --json
156
166
  agentpool worktrees cleanup --session-id <session-id>
157
167
  ```
158
168
 
@@ -164,6 +174,7 @@ requested through `--isolation worktree` or policy configuration.
164
174
 
165
175
  ```bash
166
176
  agentpool usage-summary --refresh --json
177
+ agentpool usage-summary --refresh --no-interactive --json
167
178
  agentpool stats --since 7d --json
168
179
  agentpool usage-summary --refresh --backend codexbar --json
169
180
  agentpool usage-summary --refresh --backend ccusage --provider claude-code --json
@@ -185,7 +196,8 @@ in `~/.agentpool/config.yaml`.
185
196
  AgentPool still does not pick an alternative provider for you.
186
197
  MCP usage refreshes are intentionally bounded and may return `partial=true`;
187
198
  use the CLI commands above when a shell-capable agent needs a complete live
188
- refresh.
199
+ refresh. Use `--no-interactive` or `AGENTPOOL_NO_INTERACTIVE_USAGE=1` when a
200
+ shell script must avoid provider TUI fallback probes.
189
201
 
190
202
  ## Provider Matrix
191
203
 
@@ -307,6 +319,9 @@ summary, provider models, preferences, spawn, observe, send, interrupt,
307
319
  collect, artifact manifest, transcript paging, and terminate. Add opt-in
308
320
  toolsets with `agentpool mcp --toolsets default,stats,sessions,leases,worktrees`.
309
321
 
322
+ Shell-capable agents can use `agentpool skills get agentpool` instead of MCP
323
+ resources to load the same core usage guidance from the installed CLI.
324
+
310
325
  Coding agents with shell access should prefer the CLI path. It is more
311
326
  token-efficient because large worker output stays in artifact files and
312
327
  `observe`/`collect` return compact manifests by default. MCP remains first-class
@@ -82,6 +82,13 @@ notes.
82
82
 
83
83
  ## Quickstart
84
84
 
85
+ For AI agents, start by loading the bundled version-matched skill:
86
+
87
+ ```bash
88
+ agentpool skills get agentpool
89
+ agentpool skills get core --full
90
+ ```
91
+
85
92
  ```bash
86
93
  agentpool init
87
94
  agentpool setup cursor
@@ -110,8 +117,10 @@ agentpool observe <session-id> --wait-for completed,error,question,approval_prom
110
117
  agentpool send <session-id> "Continue with the smallest useful check."
111
118
  agentpool artifacts <session-id> --json
112
119
  agentpool transcript <session-id> --tail-lines 80 --json
120
+ agentpool session show <session-id> --json
113
121
  agentpool sessions --recent 10 --json
114
122
  agentpool collect <session-id> --json
123
+ agentpool terminate <session-id> --dry-run --json
115
124
  agentpool terminate <session-id> --json
116
125
  ```
117
126
 
@@ -132,6 +141,7 @@ agentpool spawn \
132
141
  --isolation worktree
133
142
 
134
143
  agentpool worktrees list --repo .
144
+ agentpool worktrees cleanup --session-id <session-id> --dry-run --json
135
145
  agentpool worktrees cleanup --session-id <session-id>
136
146
  ```
137
147
 
@@ -143,6 +153,7 @@ requested through `--isolation worktree` or policy configuration.
143
153
 
144
154
  ```bash
145
155
  agentpool usage-summary --refresh --json
156
+ agentpool usage-summary --refresh --no-interactive --json
146
157
  agentpool stats --since 7d --json
147
158
  agentpool usage-summary --refresh --backend codexbar --json
148
159
  agentpool usage-summary --refresh --backend ccusage --provider claude-code --json
@@ -164,7 +175,8 @@ in `~/.agentpool/config.yaml`.
164
175
  AgentPool still does not pick an alternative provider for you.
165
176
  MCP usage refreshes are intentionally bounded and may return `partial=true`;
166
177
  use the CLI commands above when a shell-capable agent needs a complete live
167
- refresh.
178
+ refresh. Use `--no-interactive` or `AGENTPOOL_NO_INTERACTIVE_USAGE=1` when a
179
+ shell script must avoid provider TUI fallback probes.
168
180
 
169
181
  ## Provider Matrix
170
182
 
@@ -286,6 +298,9 @@ summary, provider models, preferences, spawn, observe, send, interrupt,
286
298
  collect, artifact manifest, transcript paging, and terminate. Add opt-in
287
299
  toolsets with `agentpool mcp --toolsets default,stats,sessions,leases,worktrees`.
288
300
 
301
+ Shell-capable agents can use `agentpool skills get agentpool` instead of MCP
302
+ resources to load the same core usage guidance from the installed CLI.
303
+
289
304
  Coding agents with shell access should prefer the CLI path. It is more
290
305
  token-efficient because large worker output stays in artifact files and
291
306
  `observe`/`collect` return compact manifests by default. MCP remains first-class
@@ -0,0 +1,49 @@
1
+ # Examples
2
+
3
+ Load agent guidance from the installed CLI:
4
+
5
+ ```bash
6
+ agentpool skills get agentpool
7
+ agentpool skills get core --full
8
+ ```
9
+
10
+ Spawn a fake question worker:
11
+
12
+ ```bash
13
+ agentpool spawn \
14
+ --provider fake-question \
15
+ --repo . \
16
+ --task "Inspect the project and ask one clarifying question." \
17
+ --isolation read_only
18
+ ```
19
+
20
+ Observe and steer:
21
+
22
+ ```bash
23
+ agentpool observe <session-id> --wait-for question,completed,error --timeout 120 --json
24
+ agentpool send <session-id> "Inspect migrations first. Stay read-only."
25
+ agentpool session show <session-id> --json
26
+ agentpool collect <session-id> --json
27
+ agentpool terminate <session-id> --dry-run --json
28
+ agentpool terminate <session-id>
29
+ ```
30
+
31
+ Read task text from stdin:
32
+
33
+ ```bash
34
+ cat task.md | agentpool spawn --provider <provider-id> --repo . --stdin --json
35
+ ```
36
+
37
+ Run usage probes without provider TUI fallbacks:
38
+
39
+ ```bash
40
+ AGENTPOOL_NO_INTERACTIVE_USAGE=1 agentpool usage-summary --refresh --json
41
+ agentpool usage --provider claude-code --no-interactive --json
42
+ ```
43
+
44
+ Preview worktree cleanup before removing anything:
45
+
46
+ ```bash
47
+ agentpool worktrees cleanup --session-id <session-id> --dry-run --json
48
+ agentpool worktrees cleanup --session-id <session-id> --force --json
49
+ ```
@@ -7,6 +7,14 @@ plane, not a router: you pick the provider and model explicitly.
7
7
 
8
8
  ## 1. Verify the environment
9
9
 
10
+ AI agents should load the bundled version-matched skill before inferring flows
11
+ from flags:
12
+
13
+ ```bash
14
+ agentpool skills get agentpool
15
+ agentpool skills get core --full
16
+ ```
17
+
10
18
  ```bash
11
19
  agentpool init
12
20
  agentpool doctor --deep --privacy
@@ -29,8 +37,12 @@ cycle. `"ok": true` means the control plane works end to end.
29
37
  ```bash
30
38
  agentpool inventory --json
31
39
  agentpool usage-summary --json # add --refresh for live probes
40
+ agentpool usage-summary --refresh --no-interactive --json
32
41
  ```
33
42
 
43
+ Use `--no-interactive` or `AGENTPOOL_NO_INTERACTIVE_USAGE=1` for scripts that
44
+ must avoid provider TUI fallback probes.
45
+
34
46
  ## 4. Run a real worker (explicit provider + isolation)
35
47
 
36
48
  ```bash
@@ -44,7 +56,9 @@ The result includes a top-level `session_id`. Drive it with:
44
56
  ```bash
45
57
  agentpool observe <session-id> --wait-for question,completed,error --timeout 120 --json
46
58
  agentpool send <session-id> "Continue with the smallest useful check." --json
59
+ agentpool session show <session-id> --json
47
60
  agentpool collect <session-id> --json
61
+ agentpool terminate <session-id> --dry-run --json
48
62
  agentpool terminate <session-id> --json
49
63
  ```
50
64
 
@@ -52,6 +66,7 @@ Use `--isolation worktree` instead of `read_only` for tasks that edit files.
52
66
 
53
67
  ## Next
54
68
 
69
+ - CLI agent guidance: `agentpool skills get agentpool`
55
70
  - Full agent guidance: `agentpool://skill.md`
56
71
  - Setup and privacy detail: `agentpool://onboarding`
57
72
  - User delegation preferences: `agentpool://preferences.md`
@@ -16,8 +16,10 @@ Guardrails:
16
16
  key, URI-password, JWT, and private-key patterns.
17
17
 
18
18
  Live usage probes are explicit. `inventory` does not run provider TUIs or
19
- network quota probes. `usage --refresh` and `usage-summary --refresh` may read
20
- existing CLI auth state and contact provider APIs, depending on the provider.
19
+ network quota probes. `usage` and `usage-summary --refresh` may read existing
20
+ CLI auth state and contact provider APIs, depending on the provider. Use
21
+ `--no-interactive` or `AGENTPOOL_NO_INTERACTIVE_USAGE=1` when automation must
22
+ avoid provider TUI fallback probes.
21
23
 
22
24
  Worker output is an untrusted channel. CLI and MCP observe/collect paths return
23
25
  summary metadata by default; inline excerpts and transcript/event resources are
@@ -4,7 +4,7 @@ Usage is best effort and confidence-tagged. Unknown is valid.
4
4
 
5
5
  Allowed confidence values include `official`, `local_cli`, `local_config`, `provider_warning`, `observed`, `user_configured`, and `unknown`. AgentPool does not fabricate exact quotas and does not scrape browser sessions in v0.1.
6
6
 
7
- Live probes are only run by explicit usage requests. Inventory remains non-invasive and reports whether a provider supports an explicit usage probe. Successful explicit probes are persisted to SQLite; `agentpool usage --cached`, `get_usage_summary(refresh=false)`, and `get_usage_snapshot(refresh=false)` read the latest persisted snapshots without refreshing providers. MCP refreshes do not run interactive provider TUI probes, because those can interfere with the host agent that is calling AgentPool. MCP refreshes are also bounded by a short server-side budget; if a provider is slow, AgentPool returns a partial response with an unknown row instead of holding the MCP connection open.
7
+ Live probes are only run by explicit usage requests. Inventory remains non-invasive and reports whether a provider supports an explicit usage probe. Successful explicit probes are persisted to SQLite; `agentpool usage --cached`, `get_usage_summary(refresh=false)`, and `get_usage_snapshot(refresh=false)` read the latest persisted snapshots without refreshing providers. MCP refreshes do not run interactive provider TUI probes, because those can interfere with the host agent that is calling AgentPool. CLI callers can use `--no-interactive` on `usage` / `usage-summary`, or set `AGENTPOOL_NO_INTERACTIVE_USAGE=1`, to take the same headless posture. MCP refreshes are also bounded by a short server-side budget; if a provider is slow, AgentPool returns a partial response with an unknown row instead of holding the MCP connection open.
8
8
 
9
9
  `agentpool usage-summary` returns a `providers` map keyed by provider id. The
10
10
  CLI `capacity-summary` command is a human convenience alias; MCP does not expose
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "agentpool-cli"
7
- version = "0.1.8"
7
+ version = "0.1.10"
8
8
  description = "Make full use of every coding-agent subscription you pay for: a local CLI + MCP server that surfaces live usage limits and offloads work to providers with headroom."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -54,5 +54,6 @@ include = [
54
54
 
55
55
  [tool.hatch.build.targets.wheel.force-include]
56
56
  "docs/agentpool-skill.md" = "agentpool/docs/agentpool-skill.md"
57
+ "docs/examples.md" = "agentpool/docs/examples.md"
57
58
  "docs/onboarding.md" = "agentpool/docs/onboarding.md"
58
59
  "docs/quickstart.md" = "agentpool/docs/quickstart.md"
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.sidduHERE/agentpool",
4
4
  "title": "AgentPool",
5
5
  "description": "See each coding-agent subscription's live limits and offload work to one with headroom.",
6
- "version": "0.1.8",
6
+ "version": "0.1.10",
7
7
  "repository": {
8
8
  "url": "https://github.com/sidduHERE/agentpool",
9
9
  "source": "github"
@@ -13,7 +13,7 @@
13
13
  {
14
14
  "registryType": "pypi",
15
15
  "identifier": "agentpool-cli",
16
- "version": "0.1.8",
16
+ "version": "0.1.10",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  },
@@ -1,3 +1,3 @@
1
1
  """AgentPool local agent control plane."""
2
2
 
3
- __version__ = "0.1.8"
3
+ __version__ = "0.1.10"
@@ -0,0 +1,11 @@
1
+ from __future__ import annotations
2
+
3
+ from agentpool.cli import app
4
+
5
+
6
+ def main() -> None:
7
+ app()
8
+
9
+
10
+ if __name__ == "__main__":
11
+ main()