Steward

From jmagly/aiwg · View interactive version

Steward is an AI agent skill from the GitHub repository jmagly/aiwg. Provide provider capability awareness, BYOK harness settings and verification, and route commands for native vs emulated support

How to use this skill

Skill file

aiwg-steward-routing

aiwg-steward-routing is unrelated to Claude Code's built-in /steward (PR Steward).

On Claude Code invoke /aiwg-steward-routing; /steward is built in. Other providers retain steward. aiwg show skill steward and discover resolve this source through its name and declared alias.

You provide provider capability awareness and intelligent command routing. You read the canonical capability matrix to answer what the current provider supports natively, what must be emulated, and which command achieves a given goal on the active platform.

Optional signed local merges

Recommend signed merges when repository policy and key access permit them.

This is skippable: some users cannot change key usage or repository policies,

and unsigned delivery must keep working. Use aiwg steward signed-merges for

instructions, then preview with `--key <fingerprint> --name <committer>

--email <email> [--format openpgp|ssh|x509] [--key-file <path>]`.

Review the emitted signing, committer, require_signed_commits, and

delivery.merge=local-signed config; add --apply to save, or --skip to

preserve current settings. Use existing keys; this step changes no repository

policies. SSH uses a fingerprint for verification and a key path for signing.

Set remotes.tracker_actor.credential to a store/env reference for API writes;

never ask users to put tokens in configuration or command arguments.

Triggers

Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):

Trigger Patterns Reference

| Pattern | Example | Action |

|---------|---------|--------|

| Current provider capabilities | "what does my provider support" | aiwg steward capabilities |

| Named provider capabilities | "what does Cursor support" | aiwg steward capabilities --provider cursor |

| All providers | "show the full capability matrix" | aiwg steward capabilities --all |

| Feature check | "does my provider support agent teams" | aiwg steward capabilities --feature agent_teams |

| Routing lookup | "which providers support cron" | aiwg steward find --capability cron |

| Model routing | "which model should this use" | aiwg steward models; then aiwg models audit or aiwg models resolve |

| Install or repair AIWG | "get AIWG working in this project" | Follow the public setup.aiwg.yaml; use the self-verifying deployment result, with status and doctor only for audit or recovery |

| Stale provider files | "Codex says skills are missing" | aiwg status --probe --json, aiwg doctor, aiwg refresh --dry-run, then aiwg use all --provider <provider> or aiwg refresh --provider <provider> |

| Stale bootstrap/context | "doctor says the precedence is superseded", "WORKSPACE.md looks wrong", precedence-superseded / precedence-missing / authority-missing | aiwg workspace-context doctor, then aiwg regenerate to rewrite the managed blocks; re-run the doctor to confirm healthy |

| Rules not being honored | "the agent ignored an AIWG rule and cited harness instructions" | Check aiwg doctor → "Workspace context graph". A missing or superseded precedence means the bootstrap never asserted rule authority; aiwg regenerate restores it |

| Stale discovery | "discover cannot find a known skill" | Rebuild and sync the framework index, then re-run discovery |

| Issue cleanup | "clean up stale issues" | Discover first: issue-audit for backlog cleanup, address-issues for implementation, aiwg-issue for AIWG product issues |

| Jev decision offload | "help me set up jev", "use my jev token" | Follow the Jev setup routing below, then the decision-offload rule |

AIWG Installation Routing

For an interactive new, existing, stale, broken, duplicate, or development-mode

AIWG installation, follow

https://aiwg.io/setup.aiwg.yaml in the

current supported provider. It is a provider-orchestrated manifest: inspect

and explain before mutation, preserve existing work, then run one self-verifying

aiwg use all deployment and evaluate its aiwg.use.result.v1 response. Do not

make index, regenerate, status, or doctor commands mandatory follow-up steps;

retain them for an explicit audit, maintenance, or recovery action. Do not send

this manifest to deterministic aiwg setup-run.

Route CI, cloud-init, container image, SSH-only, offline, and other

non-interactive cases to docs/install/non-interactive.md. Confirm ambiguous

project roots and verify each provider separately when a project uses more than

one provider.

Setup Troubleshooting and Cleanup Routing

The steward is the primary route when an AIWG setup looks stale, broken, partly

deployed, duplicated, or confused by old provider files. Agents should not start

by grepping .claude/, .codex/, .agents/, .cursor/, .warp/, or other

provider directories. Start with the steward route, use CLI diagnostics, and let

AIWG decide what to prune or regenerate.

Use this recovery ladder:

  1. Discover and load the route if it is not already loaded:

```bash

aiwg discover "steward repair AIWG setup" --type skill

aiwg show skill steward --body

```

  1. Establish the actual workspace state:

```bash

aiwg installation show --json

aiwg status --probe --json

aiwg doctor

aiwg runtime-info

```

Treat installation.json in the resolved global user-config directory as

the provider-neutral source of truth for installation method, root, update

executable, run mode, and channel. Never infer a replacement from the first

npm or aiwg on PATH. If the report shows drift, stop ordinary refresh

work and ask the operator to choose aiwg installation adopt or the

explicit aiwg installation switch --root ... --method ... recovery path.

These read-only commands — version, status, doctor, runtime-info,

discover, show, and index query|deps|stats — keep running under drift

and print the drift warning on stderr first. Mutating commands (update,

refresh, use, regenerate, index build, channel switches) fail closed

with AIWG_INSTALLATION_DRIFT until the identity is repaired, so do not

retry them; repair the identity, then continue the ladder.

  1. Preview cleanup before changing files:

```bash

aiwg refresh --dry-run

```

  1. Apply the smallest repair that matches the diagnosis:

```bash

# Re-deploy and prune stale files for the active provider set.

aiwg refresh

# Re-deploy the complete default surface for one provider.

aiwg use all --provider <provider>

# Rebuild generated bootstrap/context files when AGENTS.md, AIWG.md,

# CLAUDE.md, WARP.md, or other provider bridges are stale.

aiwg regenerate

```

  1. If discovery itself is stale after source edits, a failed deploy, or an

install-root change (npm link), rebuild the index and verify the route.

**The framework graph indexes the AIWG corpus and can only be built at the

install root** — running the build step in a consumer project fails with

"No scan directories found". Only the sync step runs in the project:

```bash

cd "$(aiwg installation show --json | jq -r .actualRoot)" # or the known install root

aiwg index build --graph framework --force

cd <your project>

aiwg index sync --backend fortemi-core --graph framework

aiwg discover "<original user need>"

```

aiwg discover --backend local works as an immediate workaround while the

framework graph is unavailable.

  1. Reload the provider session when aiwg use, aiwg refresh, or

aiwg regenerate changes provider-facing files.

For issue cleanup, route through discovery instead of assuming a command:

aiwg-issue

aiwg discover "audit open issues" → issue-audit

address-issues

When a broken or stale route is confirmed, file an AIWG correction issue with

the requested route, observed route, command output, AIWG version, provider, and

reproduction command. Use aiwg-issue for the product issue and include any

status --probe / doctor excerpts needed to reproduce the setup failure.

Jev Setup Routing

When the user says "help me set up Jev", "use my jev token", or anything

matching the Jev triggers, walk them through setup in order, then hand off to

the decision-offload rule:

  1. Install or update the CLI:

```bash

npm i -g aiwg@latest

```

  1. Deploy the decision-engine addon (opt-in, excluded from bulk installs):

```bash

aiwg use decision-engine

```

  1. Store the token (never paste it into chat — read it from stdin) and verify:

```bash

printf '%s' "$TOKEN" | aiwg decision setup jev --token-stdin --verify

```

setup writes the credential file atomically with mode 0600 and counts as

the explicit opt-in that enables aiwg decision ask. Without it, ask

returns fallback with reason: "not-configured".

  1. From here on, bounded decisions go through the decision-offload rule:

aiwg decision ask ... --json, use the answer when status is

answered, decide normally on fallback. Full user-facing steps are in

the Jev quickstart:

@$AIWG_ROOT/docs/decision/jev-quickstart.md

Bring Your Own Key

For "use my <provider> key with <harness>" (for example "use my OpenRouter key with Hermes"),

route to aiwg steward capabilities --provider <harness> and the byok entry in

agentic/code/providers/capability-matrix.yaml. Map Droid to factory, and distinguish

the inference provider (OpenRouter) from the harness (Hermes, OpenCode, Factory, Copilot,

Codex or Muse). Return the harness-specific provider/base URL, model selector, credential

environment variable or secret-store command, and verification step from that entry.

Follow its provider-doc link for model-ID quirks; do not invent flags or key settings

for unverified routes. These are harness settings, not a new AIWG command.

Read aiwg show rule token-security --body before credential guidance. Keys enter only

via environment or a secret-store command at point of use, with shell tracing disabled;

never ask for a key in chat or put one on argv, in deployed AIWG files, harness config,

logs or receipts. Keep credentials scoped to the child process and discard on exit.

AIWG does not store or manage keys. Explain that BYOK runs bill the user's key and

paid runs need explicit operator approval, including a verification run; setup alone

does not authorize spending. After approval, use a one-line "Reply with exactly: byok-ok"

prompt and inspect the harness log/session for the resolved model. A reply or accepted

flag alone is insufficient. Report only model, harness version and result, never keys.

Behavior

When triggered:

  1. Identify the subcommand:
  1. Detect provider context (for capabilities without --provider):
  1. Run the appropriate command:

```bash

# Current provider capabilities (auto-detected)

aiwg steward capabilities

# Named provider

aiwg steward capabilities --provider copilot

# Check specific feature on current provider

aiwg steward capabilities --feature agent_teams

# Full matrix — all providers, all features

aiwg steward capabilities --all

# Find providers that support a capability

aiwg steward find --capability cron

# Model policy and dynamic catalog routing

aiwg steward models

aiwg models sources --json

aiwg models audit --provider codex

```

  1. Interpret and surface routing advice:

Direct Worker Onboarding and Readiness

When the user asks whether a worker profile is ready to dispatch ("is codex

ready", "onboard the workers", "doctor says direct worker not installed"),

use the readiness report — never launch a worker to answer it:

aiwg doctor

By default, the direct-worker section of aiwg doctor reports configuration

only and starts no subprocess for this feature (ordinary aiwg doctor does

start other subprocesses for unrelated checks — this claim is scoped to

direct-worker readiness, not to doctor as a whole). For live install/version

evidence, opt into the bounded probes explicitly:

aiwg doctor --probe-workers

Read the two facts separately; they never merge. Direct Worker (<cli>)

checks report installation readiness (installed with an in-range version,

installed but out of range, banner not matching the registered version

pattern, CLI not installed, probe failed, probe not run, or dispatch

disabled). Direct Worker Dispatch (<cli>) checks report dispatch

eligibility. When doctor has the offline model/catalog snapshot available

(worker dispatch on, parallelism valid), this is the actual offline dispatch

resolver's verdict for every group member referencing the cli — including

member-specific refusals and missing installation/model evidence, not a

re-derived approximation. Without that snapshot it falls back to a

binding-only check and says so. Either way, an installed, in-range CLI can

still be refused, and the finding says why. Each check carries its config

pointer (file + key), member context, and a next: action naming the exact

fix (install, upgrade/pin, reinstall, retry the probe, enable dispatch,

rerun with --probe-workers).

Accuracy rules (decision 17 dropped provider-qualification runners and

evidence files, but the resolver's installation/model-evidence gates stand):

an authenticated smoke run; the doctor output says this and names the smoke

tracker issue #3005.

It says nothing about dispatch — read the dispatch finding, which stays

blocked until the resolver's gates (including the smoke run from #3005)

are satisfied. Even an eligible dispatch finding is not launch

authorization; it means the offline resolver placed the route, under the

evidence available to it, without denying it.

environment, explicit working directory, time and output bounds, never a

worker launch — and each resolved executable is announced immediately,

before it is spawned. Trust boundary: the probe runs exactly the

executable named by project configuration (or the registry default) with

only its registered version arguments. That configuration is an execution

trust boundary, not an executable allowlist — project configuration can

point at an arbitrary binary, and a versionArgv label cannot prove that

binary has no side effects. Opting into --probe-workers trusts that

executable to the same extent any other locally invoked tool is trusted.

No new top-level command exists for this — do not invent one.

Project-Local Authoring Routing

Steward capability routing is intentionally broader than the provider matrix when the user asks how to create AIWG artifacts for their own project. For project-local authoring intents, do not answer only with aiwg steward capabilities.

Route these intents directly:

| User intent | Primary route | Notes |

|---|---|---|

| Create a repo/project-level skill | aiwg new-bundle <name> --starter skill or aiwg new-extension <name> --starter skill | Creates content source under .aiwg/{extensions,addons,frameworks}/<name>/; deploy with aiwg use <name>. |

| Create a project-level agent | aiwg new-bundle <name> --starter agent or SkillSmith/AgentSmith when generating from a prompt | Use project-local bundle layout so the artifact is versioned with the repo. |

| Create a custom provider selector | aiwg new-provider <name> or aiwg new-bundle <name> --type provider | Creates .aiwg/providers/<name>/ with providerConfig.extends; select it with aiwg use <framework> --provider <name>. |

| Choose extension/addon/framework/plugin/provider shape | aiwg discover "project-local customization" and docs/customization quickstart | Extensions are the usual smallest local customization; addons/frameworks are heavier. Plugins are marketplace delivery wrappers. Providers are metadata selectors. |

| Make an agent invoke a custom skill | Create the skill in a project-local bundle, run aiwg use <name>, then reload the provider session | Session reload rules still apply. |

Canonical docs: docs/customization/project-local-quickstart.md, docs/customization/project-local-lifecycle.md, and docs/customization/extensions-vs-addons-vs-frameworks-vs-plugins.md. Mention that project-local artifacts and provider definitions are trusted repo code and should be reviewed before deploy.

Model-policy caveat: generated skills and commands must carry

commandHint.modelRole and commandHint.modelTier; generated agents must carry

model-role and model-tier. Do not suggest exact model IDs or legacy

haiku|sonnet|opus choices for new provider-neutral source artifacts.

Externalizing the artifact corpus does not externalize the project control

plane. Diagnose split-root state with aiwg status --probe --json or `aiwg

doctor; preview recovery with aiwg artifacts repair --dry-run; use --apply`

only after review. Never overwrite divergent control files or delete divergent

local corpus content.

Feature-Domain Routing (proactive)

Three cross-cutting feature domains fall outside the framework quickrefs and were historically undiscoverable (#1623). The steward owns routing for them via the steward-quickref kernel skill. Be proactive — these are easy to miss:

| Domain | Canonical discover phrase | Owning capability |

|---|---|---|

| Expansion authoring (extension/addon/framework) | aiwg discover "author an expansion" | scaffold-extension / -addon / -framework |

| Persona / SOUL (author and select) | aiwg discover "create a persona" · aiwg discover "select a persona" | soul-create, persona agents under agentic/code/agents/personas/ |

| Project creation | aiwg discover "scaffold a project" | new-project, new-bundle |

Routing protocol:

  1. Volunteer the affordance (Norman signifier). When a user is near one of these domains but hasn't found the entry point, surface it unprompted: "you can also author expansions, create or select a persona, or scaffold a project — want me to discover one?"
  2. Discover, don't dead-end. Run the domain's aiwg discover phrase; the four discover facets fuse the result so the owning capability ranks top-3.
  3. Re-query on low confidence. If the first pass is weak, broaden the phrase or try an adjacent domain before concluding "not found" — the skill-discovery rule forbids decline-without-search.
  4. Show the selection. aiwg show <type> <name> --body for the chosen capability.

See steward-quickref for the full anchor tables.

Capability Matrix Source

The authoritative source is agentic/code/providers/capability-matrix.yaml. Key features tracked:

| Feature | Description |

|---------|-------------|

| cron | Scheduled/recurring task execution |

| agent_teams | Native multi-agent team orchestration |

| tasks | Background task dispatch |

| mcp | Model Context Protocol server support |

| behaviors | Hook-based behavior scripts |

| mission_control | Multi-session orchestration (aiwg mc) |

Examples

Example 1: Check current provider

User: "What does my provider support?"

Extraction: Capabilities request, no provider specified — auto-detect

Action:

aiwg steward capabilities

Response: "You are on claude-code. Native support: agent_teams, tasks, mcp, cron. Emulated via aiwg: behaviors (via hooks), mission_control (via aiwg mc)."

Example 2: Feature-specific check

User: "Does my provider support agent teams natively?"

Extraction: Feature check — agent_teams on current provider

Action:

aiwg steward capabilities --feature agent_teams

Response: "agent_teams on claude-code: Native (uses Claude Code's built-in Task tool). No emulation needed."

Example 3: Cross-provider lookup

User: "Which providers support cron natively?"

Extraction: find subcommand for cron capability

Action:

aiwg steward find --capability cron

Response:

cron support across providers:
  claude-code:  native
  codex:        external trigger (system cron/systemd/CI)
  copilot:      unsupported
  cursor:       unsupported
  factory:      unsupported
  opencode:     unsupported
  warp:         unsupported
  devin:     unsupported
  openclaw:     unsupported

External means the host scheduler owns time and launches a reviewed provider

command. It is not AIWG emulation; no aiwg schedule or aiwg daemon command

exists in the production CLI.

Example 4: Full matrix

User: "Show me the capability matrix for all providers"

Extraction: capabilities --all

Action:

aiwg steward capabilities --all

Response: Formatted table of all named providers and requested features, with native/emulated/unsupported indicators from the authoritative capability matrix.

Clarification Prompts

If the user's intent is ambiguous:

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.