bots-garden/mini-mepublic Fork
⑂ fa7ac7c
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/mini-me.git
git clone ssh://git@rickub.com/bots-garden/mini-me.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

🎫 Ticket 270: /meta-prompt (and /meta), a [ picker, hard-coded catalogue (v2.1.1)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agent committed 2026-11-26T21:31:42+01:00 Browse files
fa7ac7c parent: 9b0dd90
added .tickets/issues/0270-meta-prompt-command-pick-a-style-prefix-for-the-question.yaml +146 -0
new file mode 100644
@@ -0,0 +1,146 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 270
3+title: "/meta-prompt: pick a style prefix ([Brief], [Step-by-Step]…) from a list, for the question"
4+state: open
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-27T03:30:00.000Z
9+updatedAt: 2026-11-27T03:45:00.000Z
10+labels:
11+ - enhancement
12+ - kind::feature
13+milestone: v2.1.1
14+epic: Improve TUI
15+related:
16+ - 262
17+body: |
18+ ## Asked (user, 2026-11-27)
19+ A `/meta-prompt` command that lets the user choose a meta-prompt from a
20+ list. Model: pk's `/meta` (one of the pk features listed in ticket 262).
21+
22+ ## What a meta-prompt is (pk's design)
23+ A short bracketed prefix put before the question to steer the FORM of the
24+ answer: `[Brief] What is machine learning?`. The prefix has no meaning
25+ for the agent: it is part of the user message, the model reads it as an
26+ inline instruction. Picking one sends nothing: the prefix is written in
27+ the input, the cursor after it, the user types the question and sends.
28+ No change to the agent loop.
29+
30+ pk's catalogue (13 entries, each prefix ends with ONE space):
31+ | Prefix | Purpose |
32+ |---|---|
33+ | `[Brief] ` | concise answer |
34+ | `[In Layman's Terms] ` | simplified explanation |
35+ | `[As a Story] ` | information as a story |
36+ | `[Pros and Cons] ` | balanced view |
37+ | `[Step-by-Step] ` | detailed step-by-step guide |
38+ | `[Factual] ` | direct factual answer |
39+ | `[Opinion] ` | opinion-based answer |
40+ | `[Comparison] ` | comparative analysis |
41+ | `[Timeline] ` | chronological account |
42+ | `[As a Poem] ` | poetic description |
43+ | `[For Kids] ` | explanation for children |
44+ | `[Advantages Only] ` | advantages only |
45+ | `[As a Recipe] ` | information as a recipe |
46+ pk: hard-coded Go catalogue (`Token`, `Prefix`, `Description`), tests
47+ check non-empty fields, `[`…`] ` shape, unique token and prefix.
48+
49+ ## Proposal for mm
50+ - **Catalogue**: a package (e.g. `internal/metaprompt`) with the 13
51+ entries above, same checks as pk in unit tests. One command-table
52+ entry `meta-prompt` in `internal/command` (description "Pick a style
53+ prefix for your question").
54+ - **Window** (`mm -tui`): `/meta-prompt` opens a list (the picker
55+ infrastructure of `/`, `@`, `$`); ↑↓, Enter writes the prefix in the
56+ input box with the cursor after it, Esc closes without inserting.
57+ `/meta-prompt brief` (a token as argument) inserts it at once.
58+ - **Line mode**: no editable input. `/meta-prompt` prints the numbered
59+ list; `/meta-prompt <token|n> <question>` sends the prefixed question
60+ (`/meta-prompt brief What is X?` → `[Brief] What is X?`).
61+ - **Editor (ACP)**: mm cannot write into the editor's input — offer the
62+ command with a hint `<token> <question>` and send the prefixed
63+ question, as in line mode; `/meta-prompt` alone answers with the list.
64+ - The prefix is part of the user's message: it is in the history and the
65+ session as typed, ↑ recalls it.
66+
67+ ## Open questions (for the user)
68+ - The name: `/meta-prompt` (asked) — also accept `/meta` as pk does?
69+ - A `[` trigger as a fourth picker in the window, as pk's first spec
70+ wanted? pk could not (its UI framework hard-codes `/`, `$`, `@`); mm's
71+ pickers are its own code, so it is possible — but `[` is common in
72+ ordinary text (Markdown links, arrays).
73+ - Catalogue built in only, or also a `metaPrompts:` list in agent.yaml to
74+ add or replace entries (pk kept it hard-coded; mm's agents are
75+ configured per model and per use — a translator agent may want its own)?
76+ - Whether to measure that small local models (Qwen3.5 4B, gpt-oss 20B)
77+ actually follow the prefixes — a demo with 3–4 prefixes on one question.
78+
79+ ## Done when
80+ - Catalogue + checks, command entry, window list + insertion, line-mode
81+ and ACP forms — with unit tests.
82+ - Docs EN+FR: reference/slash-commands.md, how-to use-the-window-mode,
83+ README index.
84+tasks:
85+ - id: 1
86+ title: "Decide with the user: name (/meta-prompt, /meta too?), `[` picker or not, YAML catalogue or not"
87+ state: closed
88+ priority: high
89+ author:
90+ name: k33g
91+ email: ph.charriere@gmail.com
92+ createdAt: 2026-11-27T03:30:00.000Z
93+ updatedAt: 2026-11-27T03:45:00.000Z
94+ closedAt: 2026-11-27T03:45:00.000Z
95+ - id: 2
96+ title: "Catalogue package (13 entries) + unit tests of its shape"
97+ state: open
98+ priority: medium
99+ author:
100+ name: k33g
101+ email: ph.charriere@gmail.com
102+ createdAt: 2026-11-27T03:30:00.000Z
103+ updatedAt: 2026-11-27T03:30:00.000Z
104+ - id: 3
105+ title: "Window: /meta-prompt (and /meta) opens the list, Enter inserts the prefix in the input box, Esc cancels; a `[` picker at the start of the box — with tests"
106+ state: open
107+ priority: medium
108+ author:
109+ name: k33g
110+ email: ph.charriere@gmail.com
111+ createdAt: 2026-11-27T03:30:00.000Z
112+ updatedAt: 2026-11-27T03:30:00.000Z
113+ - id: 4
114+ title: "Line mode and ACP: list, and /meta-prompt <token|n> <question> — with tests"
115+ state: open
116+ priority: medium
117+ author:
118+ name: k33g
119+ email: ph.charriere@gmail.com
120+ createdAt: 2026-11-27T03:30:00.000Z
121+ updatedAt: 2026-11-27T03:30:00.000Z
122+ - id: 5
123+ title: "Docs EN+FR (slash commands, the pickers, window how-to, index) — no demo"
124+ state: open
125+ priority: low
126+ author:
127+ name: k33g
128+ email: ph.charriere@gmail.com
129+ createdAt: 2026-11-27T03:30:00.000Z
130+ updatedAt: 2026-11-27T03:30:00.000Z
131+comments:
132+ - id: 1
133+ author:
134+ name: k33g
135+ email: ph.charriere@gmail.com
136+ createdAt: 2026-11-27T03:45:00.000Z
137+ body: |
138+ Decided (user, 2026-11-27):
139+ - `/meta` accepted too, beside `/meta-prompt` (same command).
140+ - A `[` trigger: yes — a fourth picker in the window, beside `/`, `@`
141+ and `$`. To settle in the implementation: where it opens (proposal:
142+ only when `[` is the first character of the box, so that Markdown
143+ links and arrays in ordinary text never open it), and how to type a
144+ literal `[` (Esc closes the picker and keeps the character).
145+ - Catalogue hard-coded only: no `metaPrompts:` in agent.yaml.
146+ - No demo.
new file mode 100644
@@ -0,0 +1,146 @@
1+# Managed by IssueSpec. Hand edits are welcome; keep the schema valid.
2+id: 270
3+title: "/meta-prompt: pick a style prefix ([Brief], [Step-by-Step]…) from a list, for the question"
4+state: open
5+author:
6+ name: k33g
7+ email: ph.charriere@gmail.com
8+createdAt: 2026-11-27T03:30:00.000Z
9+updatedAt: 2026-11-27T03:45:00.000Z
10+labels:
11+ - enhancement
12+ - kind::feature
13+milestone: v2.1.1
14+epic: Improve TUI
15+related:
16+ - 262
17+body: |
18+ ## Asked (user, 2026-11-27)
19+ A `/meta-prompt` command that lets the user choose a meta-prompt from a
20+ list. Model: pk's `/meta` (one of the pk features listed in ticket 262).
21+
22+ ## What a meta-prompt is (pk's design)
23+ A short bracketed prefix put before the question to steer the FORM of the
24+ answer: `[Brief] What is machine learning?`. The prefix has no meaning
25+ for the agent: it is part of the user message, the model reads it as an
26+ inline instruction. Picking one sends nothing: the prefix is written in
27+ the input, the cursor after it, the user types the question and sends.
28+ No change to the agent loop.
29+
30+ pk's catalogue (13 entries, each prefix ends with ONE space):
31+ | Prefix | Purpose |
32+ |---|---|
33+ | `[Brief] ` | concise answer |
34+ | `[In Layman's Terms] ` | simplified explanation |
35+ | `[As a Story] ` | information as a story |
36+ | `[Pros and Cons] ` | balanced view |
37+ | `[Step-by-Step] ` | detailed step-by-step guide |
38+ | `[Factual] ` | direct factual answer |
39+ | `[Opinion] ` | opinion-based answer |
40+ | `[Comparison] ` | comparative analysis |
41+ | `[Timeline] ` | chronological account |
42+ | `[As a Poem] ` | poetic description |
43+ | `[For Kids] ` | explanation for children |
44+ | `[Advantages Only] ` | advantages only |
45+ | `[As a Recipe] ` | information as a recipe |
46+ pk: hard-coded Go catalogue (`Token`, `Prefix`, `Description`), tests
47+ check non-empty fields, `[`…`] ` shape, unique token and prefix.
48+
49+ ## Proposal for mm
50+ - **Catalogue**: a package (e.g. `internal/metaprompt`) with the 13
51+ entries above, same checks as pk in unit tests. One command-table
52+ entry `meta-prompt` in `internal/command` (description "Pick a style
53+ prefix for your question").
54+ - **Window** (`mm -tui`): `/meta-prompt` opens a list (the picker
55+ infrastructure of `/`, `@`, `$`); ↑↓, Enter writes the prefix in the
56+ input box with the cursor after it, Esc closes without inserting.
57+ `/meta-prompt brief` (a token as argument) inserts it at once.
58+ - **Line mode**: no editable input. `/meta-prompt` prints the numbered
59+ list; `/meta-prompt <token|n> <question>` sends the prefixed question
60+ (`/meta-prompt brief What is X?` → `[Brief] What is X?`).
61+ - **Editor (ACP)**: mm cannot write into the editor's input — offer the
62+ command with a hint `<token> <question>` and send the prefixed
63+ question, as in line mode; `/meta-prompt` alone answers with the list.
64+ - The prefix is part of the user's message: it is in the history and the
65+ session as typed, ↑ recalls it.
66+
67+ ## Open questions (for the user)
68+ - The name: `/meta-prompt` (asked) — also accept `/meta` as pk does?
69+ - A `[` trigger as a fourth picker in the window, as pk's first spec
70+ wanted? pk could not (its UI framework hard-codes `/`, `$`, `@`); mm's
71+ pickers are its own code, so it is possible — but `[` is common in
72+ ordinary text (Markdown links, arrays).
73+ - Catalogue built in only, or also a `metaPrompts:` list in agent.yaml to
74+ add or replace entries (pk kept it hard-coded; mm's agents are
75+ configured per model and per use — a translator agent may want its own)?
76+ - Whether to measure that small local models (Qwen3.5 4B, gpt-oss 20B)
77+ actually follow the prefixes — a demo with 3–4 prefixes on one question.
78+
79+ ## Done when
80+ - Catalogue + checks, command entry, window list + insertion, line-mode
81+ and ACP forms — with unit tests.
82+ - Docs EN+FR: reference/slash-commands.md, how-to use-the-window-mode,
83+ README index.
84+tasks:
85+ - id: 1
86+ title: "Decide with the user: name (/meta-prompt, /meta too?), `[` picker or not, YAML catalogue or not"
87+ state: closed
88+ priority: high
89+ author:
90+ name: k33g
91+ email: ph.charriere@gmail.com
92+ createdAt: 2026-11-27T03:30:00.000Z
93+ updatedAt: 2026-11-27T03:45:00.000Z
94+ closedAt: 2026-11-27T03:45:00.000Z
95+ - id: 2
96+ title: "Catalogue package (13 entries) + unit tests of its shape"
97+ state: open
98+ priority: medium
99+ author:
100+ name: k33g
101+ email: ph.charriere@gmail.com
102+ createdAt: 2026-11-27T03:30:00.000Z
103+ updatedAt: 2026-11-27T03:30:00.000Z
104+ - id: 3
105+ title: "Window: /meta-prompt (and /meta) opens the list, Enter inserts the prefix in the input box, Esc cancels; a `[` picker at the start of the box — with tests"
106+ state: open
107+ priority: medium
108+ author:
109+ name: k33g
110+ email: ph.charriere@gmail.com
111+ createdAt: 2026-11-27T03:30:00.000Z
112+ updatedAt: 2026-11-27T03:30:00.000Z
113+ - id: 4
114+ title: "Line mode and ACP: list, and /meta-prompt <token|n> <question> — with tests"
115+ state: open
116+ priority: medium
117+ author:
118+ name: k33g
119+ email: ph.charriere@gmail.com
120+ createdAt: 2026-11-27T03:30:00.000Z
121+ updatedAt: 2026-11-27T03:30:00.000Z
122+ - id: 5
123+ title: "Docs EN+FR (slash commands, the pickers, window how-to, index) — no demo"
124+ state: open
125+ priority: low
126+ author:
127+ name: k33g
128+ email: ph.charriere@gmail.com
129+ createdAt: 2026-11-27T03:30:00.000Z
130+ updatedAt: 2026-11-27T03:30:00.000Z
131+comments:
132+ - id: 1
133+ author:
134+ name: k33g
135+ email: ph.charriere@gmail.com
136+ createdAt: 2026-11-27T03:45:00.000Z
137+ body: |
138+ Decided (user, 2026-11-27):
139+ - `/meta` accepted too, beside `/meta-prompt` (same command).
140+ - A `[` trigger: yes — a fourth picker in the window, beside `/`, `@`
141+ and `$`. To settle in the implementation: where it opens (proposal:
142+ only when `[` is the first character of the box, so that Markdown
143+ links and arrays in ordinary text never open it), and how to type a
144+ literal `[` (Esc closes the picker and keeps the character).
145+ - Catalogue hard-coded only: no `metaPrompts:` in agent.yaml.
146+ - No demo.