agentleFS
mhmtsrfglumhmtsrfglu/superwiki/skills/sw-config/SKILL.md

sw-config

Skill30 starsChanged 55 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), write the agent files Codex and Copilot need for the planner, implementer and reviewer roles, add task areas, see the Superwiki configuration, or invokes sw-config.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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
  1. Distinctive:

    When the user asks to set a model:

    line 43
  2. Very specific:

    Change only what differs: If the role already runs that model, change nothing and say so.

    line 47
  3. Very specific:

    After Superwiki itself is updated, run sync once: the roles' instructions are part of the agent files.

    line 51
  4. Very specific:

    Do not edit the generated agent files or config.json by hand.

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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, and that Codex and Copilot need before they can run a role at all. <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 peak 400k
node <skill-dir>/scripts/config.mjs sync --tools claude,codex,copilot

Models

A model is chosen per role and per tool, because each tool can only run its own models.

RoleDoesUsed by
planwrites the plan file for a tasksw-plan
implementdoes the work of a tasksw-implement
reviewreviews the implementation from a clean context, for tasks whose frontmatter has review: or on requestsw-implement, sw-review

Keep review on a mid-tier model or better. In the measurement the audit relies on, small models used as reviewers flagged none of ten planted defects at the right severity, and a review that finds nothing costs a dispatch and lends false confidence. The Claude Code reviewer file lists tools: Read, Grep, Glob, Bash, which removes the editing tools; the shell can still write a file, so the instruction in reviewer.md is what keeps the reviewer from writing.

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, with the role's instructions as its body (planner.md from the sw-plan skill, implementer.md and reviewer.md from the sw-implement skill, each under that skill's assets/):

ToolFolderFiles
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; the agents are named sw_planner, sw_implementer, sw_reviewer inside
Copilot CLI and VS Code Copilot Chat.github/agents/ (both hosts read it)sw-planner.agent.md, sw-implementer.agent.md, sw-reviewer.agent.md

Every host knows a role only through its file, and the files come from sync (or a model command), once per project: nothing else writes them, the installer copies no agents, and .claude/agents/ is git-ignored, so a fresh clone has none. Run sync --tools claude, codex, copilot or several, with or without a model choice, before the first sw-plan or sw-implement in a project. Without the files, Claude Code falls back to a general-purpose agent that reads the role file (the Claude Code row of sw-plan and sw-implement), and Codex and Copilot fall back to the main session following the role file.

When the user asks to set a model:

  1. See what is set: show.
  2. 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.
  3. 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 (opus and the newest Opus) are the same model: do not rewrite one into the other.
  4. Run the model command and show its output.
  5. 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.

Autopilot peak

peak sets autopilot.peak: the size of the orchestrating session, in tokens, above which sw-autopilot stops between tasks (its main row in node docs/.sw/sw.mjs usage). Unset, the limit is 200000. One small task grows that session by about 120k tokens, so a session that starts at 60k reaches the default after one task; a project that wants a run to take several tasks raises the limit, as far as the model's context window allows with room to spare: the host summarizes a session that fills its window, and that loses the reports the run decides from. peak --unset goes back to the default; show prints the current value.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.