Skip to content

Commit 20094cf

Browse files
committed
docs: Add server-prompt labeled panel for built-in instructions
Refactor system-prompt CSS into shared base for two panel variants: - .system-prompt — "SYSTEM PROMPT" label for user-authored fragments - .server-prompt — "BUILT-IN SERVER PROMPT" for libtmux-mcp's own instructions Applies server-prompt to the auto-generated instructions block on the prompting guide page.
1 parent 759c816 commit 20094cf

2 files changed

Lines changed: 26 additions & 11 deletions

File tree

docs/_static/css/custom.css

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -246,17 +246,20 @@ div.admonition.agent-thought > p:last-child {
246246
margin-bottom: 0;
247247
}
248248

249-
/* ── System prompt fragments ─────────────────────────────
250-
* Copyable instruction prose for AGENTS.md / CLAUDE.md.
251-
* Internal label row, softer dark panel, prose wrapping.
249+
/* ── Labeled code panels ─────────────────────────────────
250+
* Copyable prose in labeled dark panels. Two variants:
251+
* .system-prompt — user-authored fragments for AGENTS.md
252+
* .server-prompt — libtmux-mcp's built-in instructions
252253
* Keeps sphinx-copybutton via .highlight > pre selector.
253254
* ────────────────────────────────────────────────────────── */
254-
div.system-prompt {
255+
div.system-prompt,
256+
div.server-prompt {
255257
margin: 1.25rem 0;
256258
position: relative;
257259
}
258260

259-
div.system-prompt > div.highlight {
261+
div.system-prompt > div.highlight,
262+
div.server-prompt > div.highlight {
260263
background: #1f2329 !important;
261264
border: 1px solid color-mix(in srgb, var(--color-link) 20%, transparent);
262265
border-left: 3px solid var(--color-link);
@@ -265,17 +268,18 @@ div.system-prompt > div.highlight {
265268
padding-top: 1.3rem;
266269
}
267270

268-
div.system-prompt > div.highlight > pre {
271+
div.system-prompt > div.highlight > pre,
272+
div.server-prompt > div.highlight > pre {
269273
background: transparent;
270274
font-size: 13px;
271275
line-height: 1.6;
272276
white-space: pre-wrap;
273277
word-break: break-word;
274278
}
275279

276-
/* Internal label — sits inside the block, not floating above */
277-
div.system-prompt > div.highlight::before {
278-
content: "System prompt";
280+
/* Internal label — quiet uppercase whisper */
281+
div.system-prompt > div.highlight::before,
282+
div.server-prompt > div.highlight::before {
279283
position: absolute;
280284
top: 0.45rem;
281285
left: 0.85rem;
@@ -291,8 +295,17 @@ div.system-prompt > div.highlight::before {
291295
opacity: 0.8;
292296
}
293297

298+
div.system-prompt > div.highlight::before {
299+
content: "System prompt";
300+
}
301+
302+
div.server-prompt > div.highlight::before {
303+
content: "Built-in server prompt";
304+
}
305+
294306
/* Fix copy button background to match panel */
295-
div.system-prompt .copybtn {
307+
div.system-prompt .copybtn,
308+
div.server-prompt .copybtn {
296309
background: #1f2329 !important;
297310
}
298311

docs/topics/prompting.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ How to write effective instructions for AI agents using libtmux-mcp.
88

99
Every MCP client receives these instructions when connecting to the libtmux-mcp server. You do not need to repeat this information — the agent already knows it.
1010

11-
```text
11+
```{code-block} text
12+
:class: server-prompt
13+
1214
libtmux MCP server for programmatic tmux control. tmux hierarchy:
1315
Server > Session > Window > Pane. Use pane_id (e.g. '%1') as the
1416
preferred targeting method - it is globally unique within a tmux server.

0 commit comments

Comments
 (0)