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.
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/CHANGELOG.md +19 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/PKG-INFO +17 -2
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/README.md +16 -1
- agentpool_cli-0.1.10/docs/examples.md +49 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/quickstart.md +15 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/security.md +4 -2
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/usage-detection.md +1 -1
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/pyproject.toml +2 -1
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/server.json +2 -2
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/__init__.py +1 -1
- agentpool_cli-0.1.10/src/agentpool/__main__.py +11 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/cli.py +949 -45
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/git_worktree.py +25 -2
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/onboarding.py +9 -2
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/session_manager.py +54 -8
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/integration/test_fake_tmux_flow.py +18 -1
- agentpool_cli-0.1.10/tests/unit/test_cli.py +647 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_models_config_store.py +93 -1
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_onboarding.py +9 -1
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_redaction.py +12 -1
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/uv.lock +1 -1
- agentpool_cli-0.1.8/docs/examples.md +0 -20
- agentpool_cli-0.1.8/tests/unit/test_cli.py +0 -260
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.cursor/mcp.json.example +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.github/CODEOWNERS +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.github/ISSUE_TEMPLATE/provider_probe.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.github/dependabot.yml +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.github/workflows/ci.yml +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.github/workflows/release.yml +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.gitignore +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/.mcp.json.example +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/AGENTS.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/CONTRIBUTING.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/LICENSE +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/SECURITY.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/agent-cli-and-mcp.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/agentpool-skill.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/architecture.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/examples/README.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/install.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/mcp-clients.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/mcp-tools.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/model-catalog.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/onboarding.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/provider-adapters.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/provider-lifecycle-matrix.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/release.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/setup-claude-code.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/setup-codex.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/setup-copilot.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/setup-cursor-cli.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/setup-cursor.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/setup-devin.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/setup-droid.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/stats.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/docs/usage-probe-matrix.md +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/scripts/install.sh +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/agent_io.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/artifacts.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/config.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/event_detection.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/__init__.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/__init__.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/fake_approval_agent.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/fake_common.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/fake_completed_agent.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/fake_idle_agent.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/fake_limit_agent.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/fake_patch_agent.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/fixtures/fake_agents/fake_question_agent.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/mcp/__init__.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/mcp/resources.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/mcp/tools.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/mcp_server.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/models.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/policy.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/preferences.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/provider_model_catalog.json +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/providers/__init__.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/providers/base.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/providers/registry.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/redaction.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/runtimes/__init__.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/runtimes/base.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/runtimes/tmux.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/stats/__init__.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/stats/card.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/stats/compute.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/stats/queries.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/stats/render.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/stats/window.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/store.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/__init__.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/_common.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/ccusage.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/claude.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/codex.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/codexbar.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/combine.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/copilot.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/devin.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/parsers.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/probes.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/provider_parsers.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/usage/summary.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/src/agentpool/utils.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/fixtures/provider_model_catalog_golden.json +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/fixtures/stats_seed.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/fixtures/usage/claude_usage.txt +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/fixtures/usage/codex_rate_limits.json +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/fixtures/usage/copilot_user.json +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/fixtures/usage/devin_plan_status.json +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_agent_io.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_event_policy.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_mcp_surface.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_mcp_tools.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_stats_cli.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_stats_mcp.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_stats_window.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_subprocess_safety.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_usage_probes.py +0 -0
- {agentpool_cli-0.1.8 → agentpool_cli-0.1.10}/tests/unit/test_usage_provider_parsers.py +0 -0
- {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.
|
|
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
|
|
20
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
16
|
+
"version": "0.1.10",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
},
|