Files
HAL9000 7f47ec85da
CI / build (pull_request) Successful in 1m7s
CI / lint (pull_request) Successful in 1m13s
CI / quality (pull_request) Successful in 1m13s
CI / helm (pull_request) Successful in 43s
CI / typecheck (pull_request) Successful in 1m22s
CI / security (pull_request) Successful in 1m25s
CI / push-validation (pull_request) Successful in 31s
CI / unit_tests (pull_request) Successful in 5m11s
CI / integration_tests (pull_request) Successful in 8m22s
CI / docker (pull_request) Successful in 2m22s
CI / coverage (pull_request) Successful in 10m39s
CI / status-check (pull_request) Successful in 4s
docs(milestones): split oversized milestone pages into sub-pages (PR #9957)
Refactor Milestones documentation to address PR #9957 reviewer feedback:

- Split v3.0.0.md (506 lines) into 3 sub-pages under milestones/v3.0.0/:
  - index.md — Overview, goals, feature table, architecture notes (87 lines)
  - cli-reference.md — Full CLI command reference (142 lines)
  - deep-dive.md — Sandbox, persistence, domain model internals (95 lines)

- Split v3.1.0.md (682 lines) into 5 sub-pages under milestones/v3.1.0/:
  - index.md — Overview, goals, feature table, architecture notes (69 lines)
  - actor-yaml.md — Actor YAML format + Compiler/LangGraph integration (131 lines)
  - integration.md — MCP Adapter + Tool Router provider normalization (91 lines)
  - skills.md — Skill Registry + Validation Runner gates (127 lines)
  - quickstart.md — Common workflows and reference guide (66 lines)

- Update mkdocs.yml navigation to reflect the new sub-page structure
- Total: from 2 files at 506/682 lines to 9 files all under 150 lines

ISSUES CLOSED: #9957
2026-06-04 01:49:54 -04:00

143 lines
4.1 KiB
Markdown

# v3.0.0 — Action, Resource, Project & Plan CLI Reference
Complete command documentation for all CleverAgents v3.0.0 CLI commands.
---
## Action Management (`agents action`)
Actions are reusable plan templates defined in YAML. They specify which actors
handle each phase of the plan lifecycle and what arguments the plan accepts.
### `agents action create`
```bash
agents action create --config ./my-action.yaml
```
**Minimal action YAML:**
```yaml
name: local/code-coverage
description: Increase code coverage to the target percentage
strategy_actor: openai/gpt-4
execution_actor: openai/gpt-4
definition_of_done: |
Line coverage reaches the target percentage for all modules under src/.
arguments:
- name: target_coverage
type: integer
required: true
```
**Full action YAML:**
```yaml
name: local/refactor
description: Refactor a module to follow SOLID principles
strategy_actor: openai/gpt-4
execution_actor: anthropic/claude-3
estimation_actor: openai/gpt-4
invariant_actor: anthropic/claude-3
automation_profile: trusted
definition_of_done: |
All classes follow Single Responsibility Principle.
No method exceeds 20 lines.
invariants:
- "No reduction in test coverage"
- "All public APIs remain backward compatible"
arguments:
- name: module_path
type: string
required: true
```
### `agents action list` / `show` / `archive`
```bash
agents action list # all actions
agents action list --namespace local # filter by namespace
agents action list --state available # filter by state
agents action show local/code-coverage # show action details
agents action archive local/old-action # soft-delete action
```
---
## Resource Management (`agents resource`)
Resources are external entities (git repos, directories, mounts) that plans
can read or modify.
### `agents resource add`
```bash
agents resource add git-checkout local/my-repo --path /home/user/projects/my-repo
agents resource add fs-directory local/data --path /data --read-only
```
**Built-in resource types (v3.0.0):** `git-checkout`, `fs-directory`, `fs-mount`
### `agents resource list` / `show` / `remove`
```bash
agents resource list # all resources
agents resource show local/my-repo # resource details
agents resource remove --yes local/my-repo # remove resource
```
---
## Project Management (`agents project`)
Projects group resources together for plan execution context.
### `agents project create` / `link-resource` / `list` / `show`
```bash
agents project create local/my-project --description "My application"
agents project link-resource local/my-project local/my-repo
agents project list
agents project show local/my-project
```
---
## Plan Lifecycle (`agents plan`)
Plans are the central execution unit. Lifecycle: **Strategize -> Execute -> Apply**.
### `agents plan use` — Create a plan
```bash
agents plan use local/code-coverage my-project --arg target_coverage=80
agents plan use local/lint proj-1 proj-2 # multiple projects
agents plan use local/refactor my-project \ # with automation profile & invariants
--automation-profile trusted --invariant "No new warnings"
agents plan use local/code-coverage my-project \ # with actor overrides
--strategy-actor openai/gpt-4 --execution-actor anthropic/claude-3
```
### `agents plan execute` / `diff` / `apply` — Run and merge changes
```bash
agents plan execute # Strategize -> Execute phases
agents plan diff 01HXYZ... # preview proposed changes
agents plan apply --yes # merge changes (skip confirmation)
```
### `agents plan list` / `status` / `cancel` — Manage plans
```bash
agents plan list --state complete # filter plans
agents plan status 01HXYZ... # plan details
agents plan cancel 01HXYZ... --reason "Requirements changed"
```
---
## See Also
- [CLI overview (v3.0.0)](index.md) — Goals, architecture notes, feature table
- [Deep Dive](deep-dive.md) — Sandbox, persistence, domain model internals