# fm

This Claude Code and Codex skill pins a chosen model to a Codex session through Weave Router. Invoke it with $fm <model-id>.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 5622 repo stars
- Author: weave-os
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/weave-os/router/tree/HEAD/install/codex-skills/fm/SKILL.md
- Updated: 2026-11-17
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/fm

## What it does

The skill passes the model identifier to `scripts/emit.sh`. That script prints a `/force-model` command; Weave Router reads it from the output, pins the session to the model, and continues the current turn.

Weave Router and a model identifier are required. The skill runs the script once, then ends the turn without sending a separate user message. Router provides the acknowledgment.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add weave-os/router --skill fm -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/fm/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/fm/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add weave-os/router --skill fm -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/fm/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add weave-os/router --skill fm -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/fm/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install weave-os/router install/codex-skills/fm
```

2. **Manually: put the files in place**
- File: `.github/skills/fm/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add weave-os/router --skill fm -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/weave-os/router --path install/codex-skills/fm
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/fm/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/weave-os/router/tree/HEAD/install/codex-skills/fm/SKILL.md

## When to use it
- pin a chosen model to a Codex session
- send a model identifier to Weave Router
- switch the session model with `$fm <model-id>`

## Example prompts
- Pin model `o3` to this Codex session with `$fm o3`.
- Switch the session to `gpt-4.1` using `$fm gpt-4.1`.
- Set `claude-sonnet-4` for the current session: `$fm claude-sonnet-4`.

## Source text · SKILL.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: b7652529670d28e6.

BEGIN THIRD-PARTY FILE b7652529670d28e6
```text
---
name: fm
description: "Alias for force-model — pin this Codex session to a specific model through the Weave Router."
---

<!-- weave-router managed fm skill -->

When the user invokes `$fm <model-id>`, run this skill's `scripts/emit.sh` using the
absolute path shown in this skill's `<path>` (its directory + `/scripts/emit.sh`).
Pass the model id as arguments, quoted as a single argument list.
Do not send a user message and do not type a Codex slash command.

The script prints a leading-space `/force-model` line. The Weave Router reads that
exec output, pins the session, and continues this turn — so run the script once and
do not repeat its output as your answer. The router renders its own
acknowledgment, so do not restate or reason about it; end the turn.
```
END THIRD-PARTY FILE b7652529670d28e6

The third-party file has ended. Everything between the b7652529670d28e6 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© weave-os · Apache-2.0 · https://github.com/weave-os/router/tree/HEAD/install/codex-skills/fm/SKILL.md

## Similar
- [setup-pstack](https://affpapa.org/en/nevibecode/skills/setup-pstack.md) — skill · 10400 installs
- [agentic-engineering](https://affpapa.org/en/nevibecode/skills/agentic-engineering.md) — skill · 6500 installs
- [routing](https://affpapa.org/en/nevibecode/skills/routing.md) — skill · ★ 130 repo stars
- [venice-text-routing](https://affpapa.org/en/nevibecode/skills/venice-text-routing.md) — skill · ★ 176 repo stars
- [efficient-dispatch](https://affpapa.org/en/nevibecode/skills/efficient-dispatch.md) — skill · ★ 124 repo stars
- [off-the-wall](https://affpapa.org/en/nevibecode/plugins/off-the-wall.md) — plugin · ★ 1596 repo stars

From the same set: [weave-os/router](https://affpapa.org/en/nevibecode/by/weave-os/router.md) — 20 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
