Skip to content

Commit eb52bd4

Browse files
authored
πŸ€– docs: generate first-class models table from knownModels.ts (#948)
Converts all docs to .mdx, adds auto-generated first-class models table, and unifies doc generation. **Changes:** - **docs/*.mdx**: Renamed all .md β†’ .mdx for consistent JSX comment handling - **docs/models.mdx**: First-class models table (generated from `knownModels.ts`) - **scripts/gen_docs.ts**: Unified generator for system prompt snippet + models table (replaces `sync_system_prompt_docs.sh`) - **fmt.mk**: Updated prettier patterns for .mdx; `fmt-sync-docs` now calls the unified generator - **AGENTS.mdx**: Added `Model: openai.*` section with `gh` CLI guidance _Generated with `mux`_
1 parent ab873ab commit eb52bd4

File tree

13 files changed

+204
-79
lines changed

13 files changed

+204
-79
lines changed

β€Ždocs/AGENTS.mdβ€Ž

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ gh pr view <number> --json mergeable,mergeStateStatus | jq '.'
3636

3737
## Documentation Rules
3838

39-
- No free-floating Markdown. User docs live in `docs/` (read `docs/README.md`, add pages to `docs.json` navigation, use standard Markdown + mermaid). Developer/test notes belong inline as comments.
39+
- No free-floating Markdown. User docs live in `docs/` (read `docs/README.mdx`, add pages to `docs.json` navigation, use standard Markdown + mermaid). Developer/test notes belong inline as comments.
4040
- For planning artifacts, use the `propose_plan` tool or inline comments instead of ad-hoc docs.
4141
- Do not add new root-level docs without explicit request; during feature work rely on code + tests + inline comments.
4242
- Test documentation stays inside the relevant test file as commentary explaining setup/edge cases.
@@ -168,6 +168,10 @@ Avoid mock-heavy tests that verify implementation details rather than behavior.
168168
- When Plan Mode is requested, assume the user wants the actual completed plan; do not merely describe how you would devise one.
169169
- Attach a net LoC estimate (product code only) to each recommended approach.
170170

171+
## Model: openai.\*
172+
173+
- Use the `gh` CLI for GitHub operations (e.g., opening/submitting PRs).
174+
171175
## Tool: status_set
172176

173177
- Set status url to the Pull Request once opened

β€Ždocs/README.mdβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ docs/
2424
β”œβ”€β”€ docs.json # Mintlify configuration (navigation, theme, etc.)
2525
β”œβ”€β”€ custom.css # Custom styling
2626
β”œβ”€β”€ img/ # Images and logos
27-
└── *.md # Documentation pages
27+
└── *.mdx # Documentation pages
2828
```
2929

3030
## Adding Content
3131

32-
1. Create a new `.md` file in `docs/`
32+
1. Create a new `.mdx` file in `docs/`
3333
2. Add frontmatter with title and description
3434
3. Add the page to `docs.json` navigation
3535
4. Use standard markdown + mermaid diagrams
@@ -45,7 +45,7 @@ description: Brief description for SEO
4545

4646
## Writing Guidelines
4747

48-
See [STYLE.md](./STYLE.md) for documentation writing guidelines.
48+
See [STYLE.mdx](./STYLE.mdx) for documentation writing guidelines.
4949

5050
## CI/CD
5151

β€Ždocs/agentic-git-identity.mdβ€Ž

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ Create a separate GitHub account for your agent:
2626
2. Use a distinctive username (e.g., `yourname-agent`, `yourname-ai`)
2727
3. Use a separate email (GitHub allows plus-addressing: `yourname+ai@example.com`)
2828

29-
<Info>This is optional but recommended. You can also use your main account with a different email/name.</Info>
29+
<Info>
30+
This is optional but recommended. You can also use your main account with a different email/name.
31+
</Info>
3032

3133
## Step 2: Generate Classic GitHub Token
3234

@@ -57,7 +59,10 @@ Add the Git identity environment variables as [Project Secrets](/project-secrets
5759

5860
These environment variables will be automatically injected when the agent runs Git commands in that project.
5961

60-
<Info>If you need the agent identity outside of mux, you can alternatively set these as global environment variables in your shell configuration (`~/.zshrc`, `~/.bashrc`, etc.)</Info>
62+
<Info>
63+
If you need the agent identity outside of mux, you can alternatively set these as global
64+
environment variables in your shell configuration (`~/.zshrc`, `~/.bashrc`, etc.)
65+
</Info>
6166

6267
## Step 4: Configure GitHub Authentication
6368

@@ -101,4 +106,7 @@ git config --global credential.helper ""
101106
git config --global --add credential.helper '!gh auth git-credential'
102107
```
103108

104-
<Warning>The "replace all" approach will disable platform keychain helpers and may break Git authentication for non-GitHub remotes (GitLab, Bitbucket, etc.).</Warning>
109+
<Warning>
110+
The "replace all" approach will disable platform keychain helpers and may break Git authentication
111+
for non-GitHub remotes (GitLab, Bitbucket, etc.).
112+
</Warning>

β€Ždocs/context-management.mdβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ Remove oldest 50% of messages.
152152

153153
### OpenAI Responses API Limitation
154154

155-
<Warning>`/truncate` does not work with OpenAI models due to the Responses API architecture:</Warning>
155+
<Warning>
156+
`/truncate` does not work with OpenAI models due to the Responses API architecture:
157+
</Warning>
156158

157159
- OpenAI's Responses API stores conversation state server-side
158160
- Manual message deletion via `/truncate` doesn't affect the server-side state

β€Ždocs/install.mdβ€Ž

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ Download pre-built binaries of `main` from [GitHub Actions](https://github.com/c
2222
- `macos-dmg-arm64` (Apple Silicon)
2323
- **Linux**: AppImage (portable, works on most distros)
2424

25-
<Info>Windows builds are only available from [releases](https://github.com/coder/mux/releases), not from development builds.</Info>
25+
<Info>
26+
Windows builds are only available from [releases](https://github.com/coder/mux/releases), not from
27+
development builds.
28+
</Info>
2629

2730
To download:
2831

@@ -57,11 +60,17 @@ The app is code-signed and notarized by Apple, so it will open without security
5760
3. Follow the installation prompts
5861
4. Launch Mux from the Start menu or desktop shortcut
5962

60-
<Warning>Windows support is currently in alpha. Please [report any issues](https://github.com/coder/mux/issues) you encounter.</Warning>
63+
<Warning>
64+
Windows support is currently in alpha. Please [report any
65+
issues](https://github.com/coder/mux/issues) you encounter.
66+
</Warning>
6167

6268
### Testing Pre-Release Builds
6369

64-
<Warning>Only builds from the `main` branch are signed and notarized. If you're testing a build from a pull request or other branch, you'll need to bypass macOS Gatekeeper:</Warning>
70+
<Warning>
71+
Only builds from the `main` branch are signed and notarized. If you're testing a build from a pull
72+
request or other branch, you'll need to bypass macOS Gatekeeper:
73+
</Warning>
6574

6675
1. After installing, open Terminal
6776
2. Run: `xattr -cr /Applications/Mux.app`

β€Ždocs/keybinds.mdβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ description: Complete keyboard shortcut reference for mux
55

66
mux is designed to be keyboard-driven for maximum efficiency. All major actions have keyboard shortcuts.
77

8-
<Info>This document should be kept in sync with `src/utils/ui/keybinds.ts`, which is the source of truth for keybind definitions.</Info>
8+
<Info>
9+
This document should be kept in sync with `src/utils/ui/keybinds.ts`, which is the source of truth
10+
for keybind definitions.
11+
</Info>
912

1013
## Platform Conventions
1114

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,28 @@ See also:
99

1010
mux supports multiple AI providers through its flexible provider architecture.
1111

12+
### First-class models
13+
14+
mux ships with a curated set of first-class models that we keep up to date with the frontier. You can also use any custom model from a supported provider with `/model <provider:model_id>`.
15+
16+
{/* BEGIN KNOWN_MODELS_TABLE */}
17+
18+
| Model | ID | Aliases | Default |
19+
| -------------------- | ----------------------------- | ---------------------------------------- | ------- |
20+
| Opus 4.5 | `anthropic:claude-opus-4-5` | `opus` | Yes |
21+
| Sonnet 4.5 | `anthropic:claude-sonnet-4-5` | `sonnet` | β€” |
22+
| Haiku 4.5 | `anthropic:claude-haiku-4-5` | `haiku` | β€” |
23+
| GPT-5.1 | `openai:gpt-5.1` | `gpt-5.1` | β€” |
24+
| GPT-5 Pro | `openai:gpt-5-pro` | `gpt-5-pro` | β€” |
25+
| GPT-5.1 Codex | `openai:gpt-5.1-codex` | `codex` | β€” |
26+
| GPT-5.1 Codex Mini | `openai:gpt-5.1-codex-mini` | `codex-mini` | β€” |
27+
| GPT-5.1 Codex Max | `openai:gpt-5.1-codex-max` | `codex-max` | β€” |
28+
| Gemini 3 Pro Preview | `google:gemini-3-pro-preview` | `gemini-3`, `gemini-3-pro` | β€” |
29+
| Grok 4 1 Fast | `xai:grok-4-1-fast` | `grok`, `grok-4`, `grok-4.1`, `grok-4-1` | β€” |
30+
| Grok Code Fast 1 | `xai:grok-code-fast-1` | `grok-code` | β€” |
31+
32+
{/* END KNOWN_MODELS_TABLE */}
33+
1234
### Supported Providers
1335

1436
#### Anthropic (Cloud)

β€Ždocs/runtime/local.mdβ€Ž

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@ Local runtime runs the agent directly in your project directoryβ€”the same direc
1313

1414
## Caveats
1515

16-
<Warning>**No isolation**: Multiple local workspaces for the same project see and modify the same files. Running them simultaneously can cause conflicts. mux shows a warning when another local workspace is actively streaming.</Warning>
17-
18-
<Warning>**Affects your working copy**: Agent changes happen in your actual project directory.</Warning>
16+
<Warning>
17+
**No isolation**: Multiple local workspaces for the same project see and modify the same files.
18+
Running them simultaneously can cause conflicts. mux shows a warning when another local workspace
19+
is actively streaming.
20+
</Warning>
21+
22+
<Warning>
23+
**Affects your working copy**: Agent changes happen in your actual project directory.
24+
</Warning>
1925

2026
## Filesystem
2127

β€Ždocs/runtime/ssh.mdβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ Host ovh-1
3636

3737
## Authentication
3838

39-
<Info>As we delegate to `ssh`, this is really an abbreviated reference of how `ssh` authenticates.</Info>
39+
<Info>
40+
As we delegate to `ssh`, this is really an abbreviated reference of how `ssh` authenticates.
41+
</Info>
4042

4143
There are a few practical ways to set up authentication.
4244

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Even with consistent support at the protocol layer, we have found that different
1313

1414
Here's a snippet from `src/node/services/systemMessage.ts` which is our shared system prompt (minus tools).
1515

16-
1716
{/* BEGIN SYSTEM_PROMPT_DOCS */}
1817

1918
```typescript

0 commit comments

Comments
Β (0)