parley-wizard
Configure a parley project by interview — full init (eval, types, rubrics, classification, retention, resume/retries, remote daemon, vendors) or targeted reconfig. Use when the user wants to set up parley, run /parley-wizard, reconfigure .parley, turn eval on/off, edit task types or rubrics, or fix project config.
- License 许可
- MIT
- 所属仓库
- femoral/parley
- 最近更新
- 2026-10-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- parley-wizard
- description
- Configure a parley project by interview — full init (eval, types, rubrics, classification, retention, resume/retries, remote daemon, vendors) or targeted reconfig. Use when the user wants to set up parley, run /parley-wizard, reconfigure .parley, turn eval on/off, edit task types or rubrics, or fix project config.
- disable-model-invocation
- true
03 SKILL.md 正文
Configuring parley
Walk the user to a correct project setup through conversation. Two branches:
| Invocation | Path |
|---|---|
/parley-wizard, init, or "set up parley" |
Full interview — every area below, in order |
/parley-wizard {intent} (e.g. "turn eval on", "add a type", "change retention") |
Targeted reconfig — only that intent's steps, then lint + verification offer |
Ground rules (every run):
- Ask scope first, then start from what exists. The first prompt always chooses project, global, or both. Then load current project and daemon settings. Never factory-reset; never wipe files the user didn't ask to change.
- Accepting everything is a no-op. If the user keeps every current value (or every shipped default when nothing is written yet), write nothing.
- Show before write. Diff or full content of every file you are about to create or change; wait for approval.
- Layers: project, global, daemon. Project files live under
.parley/in the repo. Shared project-settings (eval, resume, retry, optional taskTypes) may also live in the global home layer (~/.parley/parley.jsonand/or~/.parley/config.json); project overrides global per key. Daemon-only keys (retention.days,daemon.url, vendors, profiles,defaults.vendor/defaults.profile) go throughparley config— same surface for local and remote daemons. Effective resolution: shipped defaults < global home < project. - Finish with lint, then offer a dry run. See After writes.
Full interview (init)
Work the stages in order. Each stage ends when the user confirms the value (or accepts the current/default). Rubric editing is skippable wholesale; every other stage still needs an explicit accept.
0. Settings scope — always the first prompt
Before reading config or asking any setting value, always ask:
Where should shared project settings be configured: this project only, your global defaults, or both?
Explain the choices accurately:
- Project only —
.parley/config.json; may hold only the per-key layered settingseval,resume,retry, andtaskTypes. - Global defaults — the home layer; may provide shared
eval,resume,retry, andtaskTypesdefaults. Daemon-only settings still live in~/.parley/parley.json. - Both — global shared defaults plus intentional project overrides/project-owned types.
Use $PARLEY_HOME when set instead of ~/.parley. Existing global files never suppress this question. The selected scope controls only layerable project settings. Daemon-only keys (vendors, profiles, defaults.vendor, defaults.profile, retention.days, and daemon.url) always go to the home parley.json through parley config, regardless of this choice.
Done when the user explicitly chooses project, global, or both.
0b. Load current state
From the project root:
ls -la .parley/ .parley/rubrics/ 2>/dev/null
cat .parley/config.json 2>/dev/null
cat .parley/classification.json 2>/dev/null
ls "${PARLEY_HOME:-$HOME/.parley}/parley.json" "${PARLEY_HOME:-$HOME/.parley}/config.json" 2>/dev/null
parley config show --json 2>/dev/null
parley models --json 2>/dev/null
command -v codex grok claude gemini opencode goose pi cline kilo openhands hermes openclaw kimi 2>/dev/null
Summarize what is already configured vs still at shipped defaults — including whether a global home config is present. Preserve the scope choice already made; discovery never silently changes it. Done when you know the baseline you will edit from.
1. Evaluation on/off
Default is OFF. Ask whether structured evaluation of completed tasks should be required (word as "this project" when scope is project-only; as a shared default when scope includes global).
Cost warning (always state when enabling): turning eval on means every reviewed task needs parley eval … --answers (and session provenance when eval is on). That is orchestrator token cost and process overhead — not free. Prefer OFF unless the user wants metrics and scored rubrics.
Write according to settings scope:
{ "eval": { "enabled": false } }
- Project (or project side of both) →
.parley/config.json - Global (or global side of both) →
parley config set eval.enabled false(or homeconfig.json)
Done when the user confirms on or off.
2. Task types
Shipped set (8 + automatic fallback other, which is always valid and never listed):
coding, design, research, infrastructure, writing, data, review, planning.
Negotiate keep / trim / add / override. Each configured type maps to a rubric id:
{
"taskTypes": {
"coding": { "rubric": "coding" },
"my-type": { "rubric": "generic" }
}
}
- Shorthand
"coding": "coding"is also valid. - Custom types default to the
genericrubric unless the user picks or authors another. - Omitting
taskTypesentirely means shipped defaults — prefer omit when the user wants the full shipped set unchanged.
Done when the effective type set is confirmed.
3. Rubrics (skippable wholesale)
Ask once: "Edit any rubrics now, or keep shipped/generic defaults?" If skip → leave .parley/rubrics/ alone and continue.
If editing:
- Shape:
{ "id", "version", "criteria": [{ "id", "kind": "positive"|"negative", "weight": <positive int>, "text" }] }. - One file per rubric:
.parley/rubrics/<id>.json(idmust match the filename stem). - Bump
versionon every criteria edit (integer; lint warns if criteria diverge from a shipped rubric at the same version). - Shipped rubrics resolve without project files; only write a file when customizing or adding. Materialize from an existing project file when present; otherwise author the full document from the interview.
- Custom types without their own file keep resolving to
generic.
Done when the user accepts the rubric set (or explicitly skipped).
4. Classification guidance
Sizes and difficulties are project-owned how-to-classify lines in .parley/classification.json. Shipped ids:
- sizes:
XSSMLXL - difficulties:
trivialeasymediumhardextreme
{
"version": 1,
"sizes": [{ "id": "M", "guidance": "…" }],
"difficulties": [{ "id": "hard", "guidance": "…" }]
}
Walk guidance only where the user wants project-specific wording; omit the file entirely when shipped guidance is fine. Bump version when changing guidance. Every entry needs non-empty guidance.
Done when the user accepts guidance (or shipped defaults).
5. Retention
Daemon-side only: how long terminal task data is kept before parley gc may purge it (rows, logs, worktrees — never branches). Default 30 days.
parley config set retention.days 30
Done when the user confirms the number of days.
6. Resume and retries
Shared settings (respect settings scope; merge with eval/taskTypes on the same layer):
| Key | Default | Meaning |
|---|---|---|
resume.enabled |
true |
parley fix resumes the parent vendor session |
retry.max |
1 |
Max resumed fixes per attempt chain |
retry.window |
"30m" |
Freshness window for resume (30m, 90s, bare ms) |
Confirm each; only write keys that differ from what is already effective.
- Project scope →
.parley/config.json - Global / both (global side) →
parley config set resume.enabled|retry.max|retry.window …(or homeconfig.json)
Done when resume/retry policy is confirmed.
7. Remote daemon
Only when the daemon runs elsewhere (or the user asks). Otherwise leave unset so the CLI auto-spawns locally.
parley config set daemon.url "http://host:port"
Unset with parley config unset daemon.url when returning to local. Done when local-vs-remote is confirmed.
8. Vendors and models
Probe PATH (stage 0). For each vendor the user wants:
- Confirm the CLI is installed and credentials exist (vendor-specific env / login).
- Pick a child channel (transport) from the defaults table below — set it only when it differs from the adapter default, or when the user chooses an alternate.
- Pick model+effort combos (allowlist) — required; see below. Deny-by-default: a vendor with no allowlist cannot be delegated to.
- Optional overrides:
parley config set vendors.<id>.bin|args|env|plugin|childChannel … - Named profiles for real use-cases (shortcuts on top of the allowlist):
parley config set profiles.<name>.vendor <id>(+.model,.effortas needed; must be allowlisted combos).
Model+effort allowlist (required per vendor)
Breaking / deny-by-default: until vendors.<id>.models is set, parley delegate -v <id> fails fast and points here. The advisory catalog (parley models) is for discovery only — the allowlist is the authority.
For each vendor, walk:
- Refresh discovery (optional but recommended) — see Model discovery below — then show catalog models/efforts for that vendor.
- Pick combos — which model+effort pairs are allowed. Prefer catalog ids/efforts when present; free-entry (hand-typed model or effort) is fine when the catalog is empty or incomplete. Efforts are explicit: listing a model does not unlock max/ultra-class levels unless the user names them.
- Mark one default — exactly one combo is the default used when
parley delegateomits-m/-e. If none is marked, omit-model/effort delegates fail with an error that says so. - Optional hints — free-text per model, surfaced by
parley infoso orchestrators know when to pick that model.
Write the map with parley config set (JSON value), e.g.:
parley config set vendors.codex.models '{
"gpt-5.4": {
"efforts": ["low", "medium", "high"],
"default": "medium",
"hint": "daily coding driver"
},
"o3": {
"efforts": ["medium"],
"hint": "hard reasoning only"
}
}'
Field rules:
| Field | Shape | Notes |
|---|---|---|
efforts |
string[] (required) |
Explicit allowlist. Empty ⇒ model allowed only with no effort (effort-less vendors). |
default |
true or "<effort>" |
At most one model per vendor. true requires exactly one effort (or empty efforts). A string names the default effort and must appear in efforts. |
hint |
string (optional) | Orchestrator-facing guidance in parley info. |
Profiles remain single-combo shortcuts; they do not replace the allowlist. A profile that names a disallowed combo fails at delegate time with the same error shape as a bad -m/-e.
Done when each enabled vendor has a non-empty allowlist, one default (unless the user explicitly wants no default and will always pass -m/-e), and any hints the user wanted.
Child-channel defaults (per vendor)
Children reach the daemon three ways: mcp (tool calls), http (curl/fetch against /child/*), cli (parley child report|ask|task). Prefer the default below; ask the user only when the note says multiple are viable. Write with:
parley config set vendors.<id>.childChannel mcp|http|cli
| Vendor | Default | Note |
|---|---|---|
claude |
mcp |
Native streamable-HTTP MCP + headers via --mcp-config / --strict-mcp-config. |
cline |
mcp |
MCP via materialized cline_mcp_settings.json under an isolated data-dir. |
codex |
mcp |
Strong MCP inject via -c / CODEX_HOME; canonical Parley path. |
gemini |
mcp |
MCP via project .gemini/settings.json (httpUrl + headers); no CLI MCP inject flag. |
goose |
mcp |
Streamable HTTP MCP under GOOSE_PATH_ROOT isolation. |
grok |
mcp |
MCP via worktree .grok/config.toml or Claude-format .mcp.json. |
hermes |
mcp |
MCP HTTP + headers in private HERMES_HOME config.yaml. |
kilo |
mcp |
Remote MCP via KILO_CONFIG_CONTENT / project config. |
kimi |
mcp |
MCP client with HTTP + headers in project mcp.json. |
openclaw |
mcp |
Agent runtime MCP registry (not the lean infer probe path). |
opencode |
mcp |
Remote MCP via OPENCODE_CONFIG_CONTENT (raise server timeout). |
openhands |
mcp |
MCP HTTP/SSE + headers in persistence-dir mcp.json. |
pi |
cli |
No native MCP. Default cli (parley child …). Also viable: http (REST via a Parley hub extension) or mcp only if pi-mcp-adapter (or equivalent) is installed — ask which when the user wants something other than CLI. |
Omit childChannel when the adapter default already matches (most vendors default to mcp). Always set it for pi so the preamble teaches CLI tools instead of MCP.
Model discovery
During vendor/model setup, refresh the advisory catalog so profiles and the interview use what the vendor actually offers (ids + effort levels):
parley models refresh
# equivalent: parley models --refresh
# optional: parley models refresh --vendor <id>
Then show the result (parley models or parley models --vendor <id> --json).
- Live probe wins when the vendor CLI answers.
- If refresh cannot fetch (vendor missing, probe fails, empty list, or no probe hook) and the entry would be empty, the CLI fills shipped reference catalog entries and labels the source as a point-in-time reference (
shipped catalog (point-in-time reference; …)—fetched_at/ provenance come from the catalog). Tell the user those rows are snapshot data, not a live listing. The on-disk catalog (~/.parley/models.json) remains the source of truth after refresh.
Use refreshed (or shipped-fallback) model ids and efforts when offering allowlist combos and profile .model / .effort values. Profiles beat ad-hoc flags for metrics. Catalog stays advisory and hand-editable; the allowlist gates spawn.
Also offer the first-party session-provenance plugins for detected Claude Code, Codex, Grok, and Pi harnesses. parley init surfaces the supported plugin picker and setup commands; it installs @useparley/plugin-claude-code, @useparley/plugin-codex, @useparley/plugin-grok, or @useparley/plugin-pi through each harness's native plugin manager. These provenance plugins are unrelated to vendor adapter modules configured at vendors.<id>.plugin.
When scope includes global (or the user wants a home-wide fallback), also offer delegate defaults:
parley config set defaults.vendor <id>
parley config set defaults.profile <name>
(defaults.profile wins over defaults.vendor when both are set; CLI flags always win.)
Done when the user confirms the vendor set, allowlists (combos/default/hints), child channels, any profiles (and defaults, if asked).
9. Write
Apply only approved diffs, honoring settings scope.
Project layer (project-only, or project side of both) — typical .parley/config.json:
{
"eval": { "enabled": false },
"resume": { "enabled": true },
"retry": { "max": 1, "window": "30m" },
"taskTypes": { "coding": { "rubric": "coding" } }
}
When scope is global only or both, put eval/resume/retry (and defaults.vendor / defaults.profile) on the global layer instead of duplicating them in the project file unless the user wants a project override. Example global writes:
parley config set eval.enabled false
parley config set resume.enabled true
parley config set retry.max 1
parley config set retry.window 30m
parley config set defaults.vendor <id>
Write classification and rubric files only when those stages changed them. Do not create empty stub files.
Done when disk matches the approved plan (or no writes were needed).
Then go to After writes.
Targeted reconfig ({intent})
Map the intent to the smallest set of stages above:
| Intent examples | Stages |
|---|---|
| turn eval on/off | 1 |
| add/trim/rename types | 2, maybe 3 for new custom types |
| edit a rubric | 3 (bump version) |
| change size/difficulty wording | 4 |
| retention | 5 |
| fix/retry policy | 6 |
| point at a remote daemon | 7 |
| vendors / profiles / models | 8 |
Ask the settings-scope question first (stage 0), even for targeted reconfiguration. Then load current state (stage 0b), change only what the intent needs, show diffs, write, then After writes.
After writes
Lint
parley lint
Must exit 0. Fix every error with the user before offering a dry run. Warnings (e.g. rubric version-bump reminders) are callouts — address or consciously keep.
Dry-run offer (token-cost warning)
Before launching anything, warn explicitly:
A dry run still spawns a real vendor child and consumes tokens. It records no task row (
--dry-run), but it is not free. Proceed only if you accept that cost.
Only after the user consents:
parley delegate -v <vendor> -n wizard-dry --session wizard-dry --dry-run \
"Reply via submit_report with outcome success and a one-line summary. Change no files."
Use a profile instead of -v when they configured one. Prefer a throwaway session id. Optionally parley watch --json --session wizard-dry if they want to see completion — still costs tokens while the child runs.
Skip the dry run entirely when the user declines. Done when lint is clean and the dry-run choice is resolved.
Surfaces (where things live)
| Concern | Surface |
|---|---|
| eval, resume, retry, taskTypes (project override) | .parley/config.json |
| eval, resume, retry, taskTypes (global defaults) | parley config → ~/.parley/parley.json and/or ~/.parley/config.json |
| size/difficulty guidance | .parley/classification.json |
| custom/edited rubrics | .parley/rubrics/<id>.json |
| retention, daemon.url, vendors, profiles, defaults.vendor/profile | parley config (daemon home) |
| model catalog | parley models → ~/.parley/models.json |
| validate project files | parley lint |
Resolution order for project-settings keys: shipped defaults < global home < project. Missing project files mean that layer is empty — still valid. other is always a valid --type; it is not listed in taskTypes.
Orchestrator loop after setup: install parley-delegate (parley init) and use that skill for delegate → watch → review.
04 同仓库更多 Skills
fixture-beta
Tiny fixture skill beta for multi-skill install tests.
fixture-alpha
Tiny fixture skill alpha for multi-skill install tests.
parley-delegate
Delegate tasks to other agent CLIs (e.g codex, grok, opencode, pi, etc) with the parley CLI. Use when the user asks to delegate to other agents, or mentions parley.
writing-great-skills
Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.
wayfinder
Plan a huge chunk of work — more than one agent session can hold — as a shared map of investigation tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
triage
Move issues and external PRs through a state machine of triage roles — categorise, verify, grill if needed, and write agent-ready briefs.