sw-config
Skill4 starsChanged 57 days agoMITView on GitHub
Use when the user wants to choose or change which model plans, implements or reviews Superwiki tasks (opus, sonnet, gpt and so on), add task areas, see the Superwiki configuration, or invokes sw-config or sw:config.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sw-boardSkill
- sw-doctorSkill
- sw-doSkill
- sw-explainSkill
- sw-implementSkill
- sw-ingestSkill
- sw-initSkill
- sw-lintSkill
- sw-migrateSkill
- sw-planSkill
- sw-runSkill
- sw-statsSkill
- sw-summarizeSkill
- sw-triageSkill
- sw-visualizeSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 30
No tool lets a skill change the model of the running session, so the skills hand the work to a subagent, and the subagent's file carries …
- Distinctive: line 38
When the user asks to set a model:
- Very specific: line 42
Change only what differs: If the role already runs that model, change nothing and say so.
- Very specific: line 46
After Superwiki itself is updated, run sync once: the roles' instructions are part of the agent files.
- Very specific: line 48
Do not edit the generated agent files or config.json by hand.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
sw-config
Settings live in docs/.sw/config.json. Change them with the script, from the project root; it also writes the agent files that make a model choice take effect. <skill-dir> is this skill's directory.
node <skill-dir>/scripts/config.mjs show
node <skill-dir>/scripts/config.mjs model plan claude opus
node <skill-dir>/scripts/config.mjs model implement claude sonnet
node <skill-dir>/scripts/config.mjs model review codex gpt-6
node <skill-dir>/scripts/config.mjs model plan copilot --unset
node <skill-dir>/scripts/config.mjs areas "M=Mobile,B=Backend"
node <skill-dir>/scripts/config.mjs sync --tools claude,codex,copilotModels
A model is chosen per role and per tool, because each tool can only run its own models.
| Role | Does | Used by |
plan | writes the plan file for a task | sw-plan |
implement | does the work of a task | sw-implement |
review | reviews the implementation from a clean context, for tasks whose frontmatter has review: | sw-implement |
No tool lets a skill change the model of the running session, so the skills hand the work to a subagent, and the subagent's file carries the model. The script writes one file per role:
| Tool | Folder | Files |
| Claude Code | .claude/agents/ | sw-planner.md, sw-implementer.md, sw-reviewer.md |
| Codex | .codex/agents/ | sw-planner.toml, sw-implementer.toml, sw-reviewer.toml |
| Copilot CLI | .github/agents/ | sw-planner.agent.md, sw-implementer.agent.md, sw-reviewer.agent.md |
When the user asks to set a model:
- See what is set:
show. - Settle role, tool and model. Ask only for what is missing. If they name a model without a tool, infer the tool from the model family and say which you chose. Use the model name exactly as that tool spells it; do not translate names between tools.
- Change only what differs. If the role already runs that model, change nothing and say so. A tool's short name and the full name of its current version (
opusand the newest Opus) are the same model: do not rewrite one into the other. - Run the
modelcommand and show its output. - Say when it takes effect: a tool picks up new agent files when its next session starts.
After Superwiki itself is updated, run sync once: the roles' instructions are part of the agent files.
Do not edit the generated agent files or config.json by hand; the next sync overwrites agent files.
Areas
areas adds prefixes or renames them. It never removes one: tasks keep their ids forever.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

