Aiwg config
Manage the user-level AIWG configuration file for persistent preferences across all projects
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/.agents/skills/config" ~/.claude/skills/jmagly-aiwg-config && rm -rf "$T"
.agents/skills/config/SKILL.mdConfig
You manage the user-level AIWG configuration file. This is the persistent preferences store that applies across all projects: default provider, default model, telemetry opt-in/out, and other global settings.
Triggers
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
- "what's my default provider" → get subcommand for
provider - "turn off telemetry" → set subcommand for
telemetry - "where is the aiwg config file" → path subcommand
- "reset aiwg to defaults" → reset subcommand
- "open config in my editor" → edit subcommand
- "is my config valid" → validate subcommand
Trigger Patterns Reference
| Pattern | Example | Action |
|---|---|---|
| List all settings | "show my aiwg config" | Run |
| Read a value | "what's my default model?" | Run |
| Write a value | "set default provider to copilot" | Run |
| Validate | "check my config for errors" | Run |
| Reset | "reset config to defaults" | Run |
| Locate file | "where is the config file?" | Run |
| Open editor | "edit config" | Run |
Behavior
When triggered:
-
Extract intent:
- Which subcommand:
,list
,get
,set
,validate
,reset
, orpath
?edit - For
/get
: what is the key? Forset
: what is the new value?set - Is a custom config directory specified via
?--config-dir
- Which subcommand:
-
Resolve config directory (in order):
environment variableAIWG_CONFIG
flag--config-dir <path>~/.aiwg/config.json~/.config/aiwg/config.json
-
Run the appropriate command:
# Show all configuration values aiwg config list # Read a specific key aiwg config get <key> # Write a value aiwg config set <key> <value> # Validate the config file aiwg config validate # Reset to factory defaults aiwg config reset # Show resolved config file path aiwg config path # Open in $EDITOR aiwg config edit # Use a custom config directory aiwg config list --config-dir /path/to/config -
Common configuration keys:
Key Type Description defaultProviderstring Active provider (e.g.,
,claude-code
)copilotdefaultModelstring Model override (e.g.,
)claude-opus-4-5telemetryboolean Usage telemetry opt-in updateChannelstring
,stable
, ornextnightlyconfigDirstring Custom config directory path -
Report results — For
/list
, display the value(s). Forget
, confirm what changed. Forset
, show any errors found. Forvalidate
, warn the user that this is destructive and confirm before proceeding.reset
Examples
Example 1: Show all settings
User: "Show me my AIWG configuration"
Extraction: List all settings
Action:
aiwg config list
Response: Displays all keys and their current values, e.g.:
defaultProvider claude-code defaultModel (not set — using platform default) telemetry true updateChannel stable
Example 2: Change default provider
User: "Set my default provider to GitHub Copilot"
Extraction: Set
defaultProvider to copilot
Action:
aiwg config set defaultProvider copilot
Response: "Set
defaultProvider to copilot. This will be used as the default for aiwg use and aiwg sync going forward."
Example 3: Disable telemetry
User: "Turn off telemetry"
Extraction: Set
telemetry to false
Action:
aiwg config set telemetry false
Response: "Telemetry disabled. AIWG will no longer send usage data."
Example 4: Locate config file
User: "Where does AIWG store its config?"
Extraction: Path lookup
Action:
aiwg config path
Response: "Config file:
~/.aiwg/config.json (exists)"
Example 5: Validate after manual edit
User: "I edited the config manually — check if it's valid"
Extraction: Validate request
Action:
aiwg config validate
Response: "Config valid. No errors found." — or lists specific schema errors if invalid.
Example 6: Custom config directory
User: "Check config using the team shared config dir at /opt/aiwg-team"
Extraction: List with
--config-dir
Action:
aiwg config list --config-dir /opt/aiwg-team
Response: Displays config values loaded from
/opt/aiwg-team/config.json.
Clarification Prompts
If the user's intent is ambiguous:
- "Which config key are you asking about? (run
to see all keys)"aiwg config list - "What value should I set
to?"<key> - "
will overwrite all settings with factory defaults. Proceed?"aiwg config reset
References
- @$AIWG_ROOT/src/cli/handlers/subcommands.ts — Config command handler
- @$AIWG_ROOT/docs/cli-reference.md — CLI reference