Aiwg behavior
Manage AIWG behavior bundles that bind reactive directives and toolset configurations to specific agent types
git clone https://github.com/jmagly/aiwg
T=$(mktemp -d) && git clone --depth=1 https://github.com/jmagly/aiwg "$T" && mkdir -p ~/.claude/skills && cp -r "$T/agentic/code/addons/aiwg-utils/skills/behavior" ~/.claude/skills/jmagly-aiwg-behavior-8a4809 && rm -rf "$T"
agentic/code/addons/aiwg-utils/skills/behavior/SKILL.mdBehavior
You manage AIWG behavior bundles — YAML artifacts that bind reactive directives and toolset configurations to specific agent types. Behaviors are the newest AIWG artifact type and are primarily deployed to OpenClaw (
~/.openclaw/behaviors/).
Triggers
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
- "what behaviors are installed" → list subcommand
- "show me the coding-strict behavior" → info subcommand
- "apply strict mode to the software-implementer" → apply subcommand
- "remove the no-internet behavior from my agent" → remove subcommand
- "behavior bundles" → list subcommand
Trigger Patterns Reference
| Pattern | Example | Action |
|---|---|---|
| List behaviors | "list behaviors" | Run |
| Show detail | "show behavior coding-strict" | Run |
| Apply behavior | "apply coding-strict to software-implementer" | Run |
| Remove behavior | "remove coding-strict from software-implementer" | Run |
| Inspect source | "where are behaviors stored?" | Check and |
Behavior
When triggered:
-
Extract intent:
- Which subcommand:
,list
,info
, orapply
?remove - Is a behavior name mentioned?
- Is an agent type mentioned (for
/apply
)?remove
- Which subcommand:
-
Run the appropriate command:
# List all available behaviors aiwg behavior list # Show details for a specific behavior aiwg behavior info <name> # Apply a behavior to an agent type aiwg behavior apply <name> --to <agent-type> # Remove a behavior from an agent type aiwg behavior remove <name> --from <agent-type> -
Understand behavior structure: A behavior YAML bundle contains three sections:
— What the agent should always do or avoid in this operational contextdirectives
— Tool permissions and configuration overrides for this contexttoolset
— Variable parameters the behavior accepts at apply timeinputs
-
Know the storage locations:
- Source:
(version-controlled, ships with framework)agentic/code/*/behaviors/ - Deployed:
(active, read by OpenClaw at runtime)~/.openclaw/behaviors/ - Deployment happens automatically during
for OpenClaw targetsaiwg use
- Source:
-
Report results — For
, show name and description for each. Forlist
, show the full bundle structure. Forinfo
/apply
, confirm the change.remove
Examples
Example 1: List available behaviors
User: "What behaviors are available?"
Extraction: List request, no filter
Action:
aiwg behavior list
Response: "3 behaviors available:
— Enforce code review, no direct pushes, require tests before mergecoding-strict
— Block all outbound HTTP; toolset restricted to Read/Write/Edit/Bash(local)no-external-calls
— Read-only directives, all writes logged toaudit-mode
, no destructive operations".aiwg/audit/
Example 2: Inspect a specific behavior
User: "Show me what coding-strict does"
Extraction: Info request for
coding-strict
Action:
aiwg behavior info coding-strict
Response: Shows the full YAML bundle — directives (require tests, no force push, enforce PR review), toolset (Read, Write, Edit, Bash with git restrictions), and any input variables.
Example 3: Apply a behavior
User: "Apply no-external-calls to the software-implementer agent"
Extraction: Apply
no-external-calls to software-implementer
Action:
aiwg behavior apply no-external-calls --to software-implementer
Response: "Applied
no-external-calls to software-implementer. Deployed to ~/.openclaw/behaviors/software-implementer/no-external-calls.yaml. Outbound HTTP is now blocked for that agent type."
Example 4: Remove a behavior
User: "Remove coding-strict from the test-engineer"
Extraction: Remove
coding-strict from test-engineer
Action:
aiwg behavior remove coding-strict --from test-engineer
Response: "Removed
coding-strict from test-engineer. The behavior file has been deleted from ~/.openclaw/behaviors/test-engineer/."
Clarification Prompts
If the user's intent is ambiguous:
- "Which behavior would you like to inspect? (run
to see all available)"aiwg behavior list - "Which agent type should this behavior be applied to?"
- "Did you mean to
this behavior or just view it withapply
?"info
References
- @$AIWG_ROOT/src/cli/handlers/daemon.ts — Behavior command handler
- @$AIWG_ROOT/docs/cli-reference.md — CLI reference
- @$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/agent-deployment.md — Agent deployment rule
- @$AIWG_ROOT/docs/development/aiwg-development-guide.md — Source vs output boundary (behaviors are source artifacts in
)agentic/code/*/behaviors/