tachibot-mcp 2.32.0 → 2.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +33 -13
- package/dist/src/profiles/balanced.js +3 -1
- package/dist/src/profiles/code_focus.js +2 -0
- package/dist/src/profiles/full.js +3 -1
- package/dist/src/profiles/heavy_coding.js +2 -0
- package/dist/src/profiles/minimal.js +2 -0
- package/dist/src/profiles/research_power.js +3 -1
- package/dist/src/prompt-engineer-lite.js +82 -0
- package/dist/src/tools/blog-writer-tool.js +55 -0
- package/dist/src/tools/prompt-technique-tools.js +40 -1
- package/dist/src/tools/provider-catalog.js +1 -0
- package/dist/src/tools/registry.js +3 -0
- package/docs/TOOLS_REFERENCE.md +27 -2
- package/docs/TOOL_PROFILES.md +15 -15
- package/docs/superpowers/plans/2026-08-17-writing-techniques.md +637 -0
- package/docs/superpowers/plans/2026-08-25-file-grounded-deliberation.md +855 -0
- package/package.json +2 -2
- package/profiles/balanced.json +2 -1
- package/profiles/code_focus.json +1 -0
- package/profiles/full.json +2 -1
- package/profiles/heavy_coding.json +1 -0
- package/profiles/minimal.json +1 -0
- package/profiles/research_power.json +2 -1
- package/skills/prompt/SKILL.md +4 -3
- package/smithery.yaml +1 -1
- package/tools.config.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ All notable changes to TachiBot MCP will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.33.0] - 2026-08-27
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **The writing family (`storm`, `re3`, `de_generic`)** — the library had creative *thinking* (`what_if`, `innovate`, `alt_view`, `creative_use`) and zero creative *writing*. Against a 7-stage pipeline, stage 4 (structure) and stage 5 (draft) were empty, and stage 6 (revise) fell to `reflexion`, which optimises toward *correct* — prose revision is cutting, rhythm and specificity, which is a different objective. 85 → 88 techniques.
|
|
12
|
+
- **`blog_writer`** — researched long-form in one call, composing `storm` and `re3` rather than carrying a private copy of their text. A copy would drift the moment either template was edited, and drift *silently*, because both paths still emit well-formed prose. `research: true` runs the persona interview first and feeds its 3 surprising answers into the four-pass write; `research: false` goes straight to the passes. 66 → 67 tools; enabled in `full`, `balanced` and `research_power`, off in `minimal`, `code_focus` and `heavy_coding`.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- **`preview_prompt_technique(technique="auto")` had no route for writing intent.** `RECOMMEND_RULES` carried no matcher for it, so "write a blog post" fell through to `CORE_TECHNIQUES.slice(0, 3)` — `chain_of_note` / `astute_rag` / `spotlighting` — while `list_prompt_techniques` advertised `auto` as the way in. Writing verbs now route to `storm`, `re3`, `de_generic`.
|
|
16
|
+
- **`blog_writer` truncated silently at `maxTokens: 8000`.** Its output is several full renderings of the same piece (`re3`'s draft, restructure and line-edit passes, plus `storm`'s 16 marked answers on the default research path), unlike sibling tools that emit one artifact. 8000 was already at the ceiling at the word count the docs use as their own example, and nothing errored on truncation. Raised to 16000.
|
|
17
|
+
- **The storm → re3 seam discarded its own outline.** `blog-writer-tool.ts` dropped storm's Stage 4 outline and word budgets and re-derived them from scratch in re3's Pass 1; they are now carried across.
|
|
18
|
+
- **Stale doc counts.** `TOOLS_REFERENCE.md` and `TOOL_PROFILES.md` claimed `continue_focus` sits outside the profile system and is not counted — `profiles/full.json` and the golden snapshot both count it. `skills/prompt/SKILL.md` still said 37 techniques (now 88) and was missing five filter categories (retrieval, security, few_shot, tabular, writing). README's per-profile table was one release behind before this work and two behind after.
|
|
19
|
+
- **Anti-drift tests could not detect drift.** The "uses the template rather than a private copy" tests asserted characteristic phrases that a copy would also satisfy; they now assert the engine's exact live output.
|
|
20
|
+
|
|
8
21
|
## [2.32.0] - 2026-08-15
|
|
9
22
|
|
|
10
23
|
### Added
|
package/README.md
CHANGED
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
### Multi-Model AI Orchestration Platform
|
|
6
6
|
|
|
7
|
-
[](https://www.npmjs.com/package/tachibot-mcp)
|
|
8
|
+
[](#-tool-ecosystem-67-tools)
|
|
9
9
|
[](LICENSE)
|
|
10
10
|
[](https://nodejs.org)
|
|
11
11
|
[](https://modelcontextprotocol.io)
|
|
12
12
|
|
|
13
|
-
**
|
|
13
|
+
**67 AI tools. 12 providers. One protocol.**
|
|
14
14
|
|
|
15
15
|
Orchestrate Perplexity, Grok 4.6, GPT-5.6, Gemini, Qwen, Kimi K3, and MiniMax M3
|
|
16
16
|
from Claude Code, Claude Desktop, Cursor, or any MCP client.
|
|
17
17
|
|
|
18
|
-
[Get Started](#-quick-start) · [View Tools](#-tool-ecosystem-
|
|
18
|
+
[Get Started](#-quick-start) · [View Tools](#-tool-ecosystem-67-tools) · [Documentation](https://tachibot.com/docs)
|
|
19
19
|
|
|
20
20
|
<br>
|
|
21
21
|
|
|
@@ -30,6 +30,26 @@ from Claude Code, Claude Desktop, Cursor, or any MCP client.
|
|
|
30
30
|
|
|
31
31
|
## What's New
|
|
32
32
|
|
|
33
|
+
### v2.33.0
|
|
34
|
+
- **The writing family (`storm`, `re3`, `de_generic`).** The library had creative *thinking* (`what_if`, `innovate`, `alt_view`, `creative_use`) and zero creative *writing*: against a 7-stage pipeline, stage 4 (structure) and stage 5 (draft) were empty, and stage 6 (revise) fell through to `reflexion` — which optimises toward *correct*, while prose revision is cutting, rhythm and specificity. **85 → 88 techniques.**
|
|
35
|
+
- **`blog_writer`** — researched long-form in one call, composing `storm` and `re3` rather than carrying a private copy of their text. A copy would drift the moment either template was edited, and drift *silently*, because both paths still emit well-formed prose. `research: true` runs the persona interview first and feeds its 3 surprising answers into the four-pass write. **66 → 67 tools**; enabled in `full`, `balanced` and `research_power`.
|
|
36
|
+
- **`preview_prompt_technique(technique="auto")` had no route for writing intent.** `RECOMMEND_RULES` carried no matcher, so "write a blog post" fell through to `CORE_TECHNIQUES.slice(0, 3)` — `chain_of_note` / `astute_rag` / `spotlighting` — while `list_prompt_techniques` advertised `auto` as the way in. Writing verbs now route to `storm`, `re3`, `de_generic`.
|
|
37
|
+
- **`blog_writer` truncated silently at `maxTokens: 8000`.** Its output is several full renderings of the same piece (`re3`'s draft, restructure and line-edit passes, plus `storm`'s 16 marked answers), unlike sibling tools that emit one artifact. 8000 was already at the ceiling at the word count the docs use as their own example, and nothing errored on truncation. Raised to 16000.
|
|
38
|
+
- **Anti-drift tests could not detect drift.** The "uses the template rather than a private copy" tests asserted characteristic phrases that a copy would also satisfy; they now assert the engine's exact live output.
|
|
39
|
+
|
|
40
|
+
### v2.32.0
|
|
41
|
+
- **Tabular family (7 new techniques)** — data-shaped work had no coverage at all, so "filter these rows" fell through to the generic core contracts. `data_assert` states the downstream purpose first, then checks the data with executable assertions carrying counts, because a filter that silently matched zero rows is indistinguishable from one that worked. Plus `chain_of_table`, `sub_table_first`, `sql_stages`, `xlsx_map`, `table_format`, `self_debug`.
|
|
42
|
+
- **Retrieval family completed (3 new)** — `astute_rag` answers from memory first, then marks each source agrees/fills/conflicts and resolves every conflict out loud; `crag` grades sources correct/ambiguous/wrong and acts on the grade, since search always returns its nearest neighbours and has no way to return nothing; `hyde` drafts the answer you wish existed, searches with *its* vocabulary, then discards it.
|
|
43
|
+
- **Spotlighting fences carried 24 bits of entropy, not 32.** `untrustedFence()` called `randomBytes(3)` while its own comment block had reasoned its way to 4. Spotlighting's entire security property is that an attacker cannot guess the delimiter needed to close your block, so the shortfall was load-bearing. Now 8 hex characters, as documented.
|
|
44
|
+
- **The literal `37` survived three expansions of the catalogue** (37 → 74 → 85) inside the `list_prompt_techniques` description — the text a model reads to decide whether to call the tool at all. It is now derived from `FLAT_TECHNIQUES.length`.
|
|
45
|
+
- **74 → 85 techniques.** Tool count unchanged at 66.
|
|
46
|
+
|
|
47
|
+
### v2.31.0
|
|
48
|
+
- **Prompt technique library goes 37 → 74**, closing three families that were at **zero** coverage. **Retrieval (4):** TachiBot ships five search tools and had no discipline for what to do with what they return — retrieved text went straight into reasoning unfiltered, which is where confidently-miscited sources come from. **Prompt-injection defence (1):** those same tools ingest untrusted web text with no isolation contract, so a page saying "ignore previous instructions" was read exactly like our own prompt; `spotlighting` fences it and states the rule. **Few-shot (5):** nothing touched example selection or ordering, despite this moving accuracy more than most reasoning tricks.
|
|
49
|
+
- **Eight trace-management techniques** from Jun–Aug 2026 research, including `hourglass` (compress to a rule, discard the exploration, regenerate from the rule instead of appending errors) and `backtrack` (rewind to the last validated checkpoint rather than restarting or patching).
|
|
50
|
+
- **Twelve original prompts rewritten to read as instructions.** The early set used telegraphic shorthand that reads as a label rather than a request, leaving the model to infer the task.
|
|
51
|
+
- **Recommendation rules for all of it** — 74 techniques is past the point where anyone recalls names, so `RECOMMEND_RULES` gained eight groups matched to how people actually phrase the situation. Without these the new techniques were reachable only by knowing their name in advance.
|
|
52
|
+
|
|
33
53
|
### v2.30.1
|
|
34
54
|
- **Tool descriptions no longer name-drop model versions.** 19 descriptions were rewritten to name the provider and the task instead of pinned strings like "GPT-5.2", "Kimi K3" or "424B MoE" — those silently rot on every model bump and then actively mislead the routing model. Two were outright wrong: `openai_reason` and `openai_search` advertised "GPT-5.2" while the code calls the current OpenAI flagship tier.
|
|
35
55
|
- **`grok_search` finally says why to pick it.** Its entire description was "Web search" — no way to choose it over the four other search tools. It now states its live X/news grounding edge and cross-references `grok_search_lite` as the cheaper path. The five OpenRouter reasoners (`deepseek_reason`, `glm_reason`, `stepfun_reason`, `ernie_reason`, `qwen_reason`) likewise differed only by vendor trivia; each now carries an actual routing rule for when to pick it.
|
|
@@ -145,12 +165,12 @@ Skills automatically adapt to your configured API keys. Even with just 1-2 provi
|
|
|
145
165
|
### Tool Profiles
|
|
146
166
|
| Profile | Tools | Best For |
|
|
147
167
|
|---------|-------|----------|
|
|
148
|
-
| **Minimal** |
|
|
149
|
-
| **Research Power** |
|
|
150
|
-
| **Code Focus** |
|
|
151
|
-
| **Balanced** |
|
|
152
|
-
| **Heavy Coding** |
|
|
153
|
-
| **Full** (default) |
|
|
168
|
+
| **Minimal** | 14 | Quick tasks, low token budget |
|
|
169
|
+
| **Research Power** | 38 | Deep investigation, multi-source |
|
|
170
|
+
| **Code Focus** | 43 | Software development, SWE tasks |
|
|
171
|
+
| **Balanced** | 56 | General-purpose, mixed workflows |
|
|
172
|
+
| **Heavy Coding** | 59 | Max code tools + agentic workflows |
|
|
173
|
+
| **Full** (default) | 67 | Everything enabled |
|
|
154
174
|
|
|
155
175
|
### Developer Experience
|
|
156
176
|
- **Claude Code** — First-class support
|
|
@@ -230,13 +250,13 @@ See [Installation Guide](docs/INSTALLATION_BOTH.md) for detailed instructions.
|
|
|
230
250
|
|
|
231
251
|
---
|
|
232
252
|
|
|
233
|
-
## Tool Ecosystem (
|
|
253
|
+
## Tool Ecosystem (67 Tools)
|
|
234
254
|
|
|
235
255
|
### Research & Search (6)
|
|
236
256
|
`perplexity_ask` · `perplexity_reason` · `grok_search` · `grok_search_lite` · `openai_search` · `gemini_search`
|
|
237
257
|
|
|
238
|
-
### Reasoning & Planning (
|
|
239
|
-
`grok_reason` · `openai_reason` · `qwen_reason` · `qwq_reason` · `kimi_thinking` · `kimi_decompose` · `deepseek_reason` · `glm_reason` · `stepfun_reason` · `ernie_reason` · `planner_maker` · `planner_runner` · `list_plans` · `spec_writer`
|
|
258
|
+
### Reasoning & Planning (15)
|
|
259
|
+
`grok_reason` · `openai_reason` · `qwen_reason` · `qwq_reason` · `kimi_thinking` · `kimi_decompose` · `deepseek_reason` · `glm_reason` · `stepfun_reason` · `ernie_reason` · `planner_maker` · `planner_runner` · `list_plans` · `spec_writer` · `blog_writer`
|
|
240
260
|
|
|
241
261
|
### Code Intelligence (11)
|
|
242
262
|
`kimi_code` · `grok_code` · `grok_debug` · `qwen_coder` · `qwen_algo` · `qwen_competitive` · `deepseek_algo` · `minimax_code` · `minimax_agent` · `testgen` · `debug_triage`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const balancedProfile = {
|
|
2
|
-
description: "Balanced set for general use (
|
|
2
|
+
description: "Balanced set for general use (56 tools)",
|
|
3
3
|
tools: {
|
|
4
4
|
think: true,
|
|
5
5
|
focus: true,
|
|
@@ -66,6 +66,8 @@ export const balancedProfile = {
|
|
|
66
66
|
list_plans: true,
|
|
67
67
|
// Test generation
|
|
68
68
|
testgen: true,
|
|
69
|
+
// Long-form writing
|
|
70
|
+
blog_writer: true,
|
|
69
71
|
// Security audit
|
|
70
72
|
security_review: true,
|
|
71
73
|
// Diff-aware code review
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const fullProfile = {
|
|
2
|
-
description: "Default profile — all tools enabled for maximum capability (
|
|
2
|
+
description: "Default profile — all tools enabled for maximum capability (67 tools)",
|
|
3
3
|
tools: {
|
|
4
4
|
think: true,
|
|
5
5
|
focus: true,
|
|
@@ -66,6 +66,8 @@ export const fullProfile = {
|
|
|
66
66
|
list_plans: true,
|
|
67
67
|
// Test generation
|
|
68
68
|
testgen: true,
|
|
69
|
+
// Long-form writing
|
|
70
|
+
blog_writer: true,
|
|
69
71
|
// Security audit
|
|
70
72
|
security_review: true,
|
|
71
73
|
// Diff-aware code review
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const researchPowerProfile = {
|
|
2
|
-
description: "Research-focused with Grok search + all Perplexity + brainstorming (
|
|
2
|
+
description: "Research-focused with Grok search + all Perplexity + brainstorming (38 tools)",
|
|
3
3
|
tools: {
|
|
4
4
|
think: true,
|
|
5
5
|
focus: true,
|
|
@@ -66,6 +66,8 @@ export const researchPowerProfile = {
|
|
|
66
66
|
list_plans: true,
|
|
67
67
|
// Test generation
|
|
68
68
|
testgen: false,
|
|
69
|
+
// Long-form writing
|
|
70
|
+
blog_writer: true,
|
|
69
71
|
// Security audit
|
|
70
72
|
security_review: false,
|
|
71
73
|
// Diff-aware code review
|
|
@@ -36,6 +36,80 @@ export class PromptEngineerLite {
|
|
|
36
36
|
['alt_view', (q) => `Examine "${q}" from five viewpoints in turn: a curious child, a scientist, an artist, a strategist, and a futurist. Give each a short paragraph in its own voice. Then say what their disagreement reveals that no single view catches.`],
|
|
37
37
|
['creative_use', (q, c) => `Find creative applications for "${q}"${c ? ' and the findings above' : ''}. Draw deliberately from unrelated fields — biology, games, logistics, art. For each application, say what makes it work and what would have to be true for it to be practical.`],
|
|
38
38
|
['innovate', (q) => `Generate creative, unconventional solutions for "${q}". Consider multiple approaches: rethinking existing processes, drawing inspiration from other domains, removing constraints, and combining different methods. Provide 3+ novel, practical approaches.`],
|
|
39
|
+
// Writing
|
|
40
|
+
['storm', (q) => `Write about "${q}". Do NOT start writing yet — research first.
|
|
41
|
+
|
|
42
|
+
STAGE 1 — PERSPECTIVES. Identify 4 people who would each care about this topic for a
|
|
43
|
+
DIFFERENT reason: a practitioner, a sceptic, a buyer, and someone burned by it before.
|
|
44
|
+
Name what each one actually wants to know.
|
|
45
|
+
|
|
46
|
+
STAGE 2 — INTERVIEW. For each perspective write the 4 questions they would ask,
|
|
47
|
+
including the awkward one that usually gets left out. Answer each, marking it:
|
|
48
|
+
[KNOWN] confident, no source needed
|
|
49
|
+
[SEARCH] needs a real source — say what would settle it
|
|
50
|
+
[OPINION] genuinely contested — say who disagrees and why
|
|
51
|
+
|
|
52
|
+
STAGE 3 — WHAT IS ACTUALLY INTERESTING. Across all 16 answers, which 3 would surprise
|
|
53
|
+
a reader who already knows the basics? Those 3 are the piece; everything else is
|
|
54
|
+
context. If nothing surprises you, say so — the topic may not warrant writing up.
|
|
55
|
+
|
|
56
|
+
STAGE 4 — OUTLINE around those 3, with a WORD BUDGET per section. Budgets must be
|
|
57
|
+
uneven; equal budgets mean you have not decided what matters.`],
|
|
58
|
+
['re3', (q) => `Produce a long-form piece on "${q}" in four separate passes. Structural
|
|
59
|
+
rewriting and line editing fight each other — asking for both at once gets you neither,
|
|
60
|
+
because the model tidies sentences in a piece whose architecture is wrong.
|
|
61
|
+
|
|
62
|
+
PASS 1 — PLAN. No prose yet. Produce:
|
|
63
|
+
- the ONE thing the reader should take away
|
|
64
|
+
- the promise the opening makes (the piece must pay it off)
|
|
65
|
+
- a section list, each with purpose, word budget, and the specific point it lands
|
|
66
|
+
- the strongest objection a smart reader will have, and where you deal with it
|
|
67
|
+
Budgets must be UNEVEN. If they are all equal, the plan is lazy.
|
|
68
|
+
|
|
69
|
+
PASS 2 — DRAFT. Write to the plan. Do not polish, do not self-edit, do not stop to
|
|
70
|
+
improve a sentence. Hit the budgets.
|
|
71
|
+
|
|
72
|
+
PASS 3 — REWRITE, STRUCTURE ONLY. Ignore sentence quality entirely. Only ask:
|
|
73
|
+
- does each section do its stated job?
|
|
74
|
+
- is anything in the wrong order?
|
|
75
|
+
- what can be CUT wholesale? Name at least one thing — "nothing" is not an
|
|
76
|
+
acceptable answer.
|
|
77
|
+
- does the ending pay off the opening's promise?
|
|
78
|
+
Output the restructured draft, not notes about it.
|
|
79
|
+
|
|
80
|
+
PASS 4 — EDIT, LINE ONLY. Structure is now fixed: do not move or delete sections. Only:
|
|
81
|
+
- cut every word that earns nothing
|
|
82
|
+
- break up any sentence you have to re-read
|
|
83
|
+
- replace abstractions with specifics
|
|
84
|
+
- vary sentence length; read for rhythm
|
|
85
|
+
- delete every hedge that is not load-bearing
|
|
86
|
+
|
|
87
|
+
Report at the end: word count per pass, and what you cut in Pass 3. If the piece never
|
|
88
|
+
got shorter, Pass 3 did not happen.`],
|
|
89
|
+
['de_generic', (q) => `The following piece is competent and dull. Do NOT "improve" it —
|
|
90
|
+
improving fluency is what made it dull. Attack these three things only.
|
|
91
|
+
|
|
92
|
+
1. ORIGINALITY — find every sentence a competent writer would produce by default on
|
|
93
|
+
this topic. Quote each one, then replace it with something only someone who
|
|
94
|
+
actually knows this subject would say. If you cannot, mark it CUT.
|
|
95
|
+
|
|
96
|
+
2. ELABORATION — find every claim that is asserted and then abandoned. Each needs ONE
|
|
97
|
+
of: a concrete example, a number, a named case, or a mechanism explaining why it is
|
|
98
|
+
true. Generic support ("this improves efficiency") counts as abandoned.
|
|
99
|
+
|
|
100
|
+
3. SPECIFICITY SWEEP — replace every one of these:
|
|
101
|
+
- "many/several/various" → the actual number
|
|
102
|
+
- "significantly/dramatically" → by how much
|
|
103
|
+
- "experts say" → which experts
|
|
104
|
+
- "can be challenging" → the specific failure
|
|
105
|
+
- any noun phrase that would fit an article on a completely different topic
|
|
106
|
+
|
|
107
|
+
Then answer: could a competitor publish this under their name with no changes? If yes,
|
|
108
|
+
say which parts made that possible.
|
|
109
|
+
|
|
110
|
+
Do NOT lengthen it. Trade word for word.
|
|
111
|
+
|
|
112
|
+
PIECE: ${q}`],
|
|
39
113
|
// Research
|
|
40
114
|
['investigate', (q) => `Investigate "${q}" by answering each question in turn: Who is involved? What exactly is it? When did it arise? Where does it apply? Why does it matter? How does it work? Finish with what has changed recently and what is still unsettled.`],
|
|
41
115
|
['evidence', (q, _c) => `Gather the evidence on "${q}": what supports it, what contradicts it, concrete cases either way, relevant numbers, and where informed people disagree. Then state what the evidence as a whole actually supports — not what you expected it to.`],
|
|
@@ -650,6 +724,10 @@ depends on rows buried in the middle, narrow the table or sort them to an edge f
|
|
|
650
724
|
'improve_prompt': 'meta_prompting',
|
|
651
725
|
'critic': 'adversarial',
|
|
652
726
|
'debate': 'persona_simulation',
|
|
727
|
+
// Writing aliases
|
|
728
|
+
research_first: 'storm',
|
|
729
|
+
four_pass: 're3',
|
|
730
|
+
fix_boring: 'de_generic',
|
|
653
731
|
// Judgment aliases
|
|
654
732
|
'judge': 'council_of_experts',
|
|
655
733
|
'council': 'council_of_experts',
|
|
@@ -788,6 +866,10 @@ depends on rows buried in the middle, narrow the table or sort them to an edge f
|
|
|
788
866
|
'alt_view': 'Multi-angle',
|
|
789
867
|
'creative_use': 'Applications',
|
|
790
868
|
'innovate': 'Innovation',
|
|
869
|
+
// Writing
|
|
870
|
+
'storm': 'Research-first',
|
|
871
|
+
're3': 'Four-pass',
|
|
872
|
+
'de_generic': 'De-generic',
|
|
791
873
|
// Research
|
|
792
874
|
'investigate': '5W1H',
|
|
793
875
|
'evidence': 'Evidence',
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* blog_writer — researched long-form in one call.
|
|
3
|
+
*
|
|
4
|
+
* Composes the `storm` and `re3` techniques rather than copying their text. Those
|
|
5
|
+
* templates live in PromptEngineerLite and are the single source of truth; a private
|
|
6
|
+
* copy here would drift the moment either template is edited, and the drift would be
|
|
7
|
+
* silent because both paths still produce well-formed prose.
|
|
8
|
+
*/
|
|
9
|
+
import { z } from "zod";
|
|
10
|
+
import { defineModelTool } from "./factory/define-model-tool.js";
|
|
11
|
+
import { callOpenRouter, OpenRouterModel } from "./openrouter-tools.js";
|
|
12
|
+
import { withHeartbeat } from "../utils/streaming-helper.js";
|
|
13
|
+
import { PromptEngineerLite } from "../prompt-engineer-lite.js";
|
|
14
|
+
const engine = new PromptEngineerLite();
|
|
15
|
+
export function buildBlogWriterPrompt(args) {
|
|
16
|
+
const { topic, wordCount, research = true, audience } = args;
|
|
17
|
+
const parts = [];
|
|
18
|
+
if (research) {
|
|
19
|
+
parts.push(engine.applyTechnique("blog_writer", "storm", topic));
|
|
20
|
+
parts.push("Having completed the research above, now write the piece using the four-pass method below. Use only the 3 surprising answers as the spine, and carry Stage 4's outline and word budgets into Pass 1 rather than re-deriving them.");
|
|
21
|
+
}
|
|
22
|
+
parts.push(engine.applyTechnique("blog_writer", "re3", topic));
|
|
23
|
+
if (wordCount) {
|
|
24
|
+
parts.push(`TOTAL LENGTH: about ${wordCount} words. Distribute this across the sections unevenly — the section that carries the argument gets the most.`);
|
|
25
|
+
}
|
|
26
|
+
if (audience) {
|
|
27
|
+
parts.push(`AUDIENCE: ${audience}. Assume they know the basics; do not explain what they already know.`);
|
|
28
|
+
}
|
|
29
|
+
return parts.join("\n\n---\n\n");
|
|
30
|
+
}
|
|
31
|
+
export const blogWriterTool = defineModelTool({
|
|
32
|
+
name: "blog_writer",
|
|
33
|
+
description: "Write a researched long-form post: interview four personas for the angle, then plan/draft/restructure/line-edit in separate passes. Put the SUBJECT in the 'topic' parameter.",
|
|
34
|
+
parameters: z.object({
|
|
35
|
+
topic: z.string().describe("What the post is about (REQUIRED - put your subject here)"),
|
|
36
|
+
wordCount: z.number().optional().describe("Target length in words"),
|
|
37
|
+
research: z.boolean().optional().default(true).describe("Run the persona-interview research stage first (default true)"),
|
|
38
|
+
audience: z.string().optional().describe("Who it is for, e.g. 'backend engineers'"),
|
|
39
|
+
}),
|
|
40
|
+
execute: async (args, { reportProgress }) => {
|
|
41
|
+
const prompt = buildBlogWriterPrompt(args);
|
|
42
|
+
const reportFn = reportProgress ?? (async () => { });
|
|
43
|
+
// Timeout inherited from getOpenRouterModelTimeout() — Kimi -> 600s, plenty of
|
|
44
|
+
// headroom for the combined research + four-pass write in one call.
|
|
45
|
+
//
|
|
46
|
+
// maxTokens is higher than sibling single-artifact tools (testgen/security_review use
|
|
47
|
+
// 12000) because this tool's OUTPUT is not one artifact — re3 alone asks for a full
|
|
48
|
+
// draft (Pass 2), a full restructured draft (Pass 3: "Output the restructured draft,
|
|
49
|
+
// not notes about it"), and a full line-edited draft (Pass 4), and research:true adds
|
|
50
|
+
// storm's 16 marked answers plus a 4-section outline on top. The budget is per-pass,
|
|
51
|
+
// not per-piece, so it has to be multiplied accordingly or a long wordCount truncates
|
|
52
|
+
// mid-Pass-4 with no error.
|
|
53
|
+
return withHeartbeat(() => callOpenRouter([{ role: "user", content: prompt }], OpenRouterModel.KIMI_K3, 0.7, 16000), reportFn, 10000);
|
|
54
|
+
},
|
|
55
|
+
});
|
|
@@ -270,6 +270,33 @@ const TECHNIQUES = {
|
|
|
270
270
|
example: "A rate-limit problem 'solved' by adding Redis — before anyone asked whether the caller could just batch. Three options make the default visible as a choice.",
|
|
271
271
|
},
|
|
272
272
|
],
|
|
273
|
+
writing: [
|
|
274
|
+
{
|
|
275
|
+
name: "storm",
|
|
276
|
+
alias: "research_first",
|
|
277
|
+
description: "Interview four different personas about the topic, mark each answer KNOWN/SEARCH/OPINION, then build the piece around only the 3 answers that would surprise a reader who knows the basics. (arXiv:2402.14207)",
|
|
278
|
+
useWhen: "Any researched piece — article, doc, report — where you would otherwise start drafting from what you already know.",
|
|
279
|
+
example: "Generic writing happens because the model answers the obvious questions. The sceptic's awkward question is the one that makes the piece worth reading.",
|
|
280
|
+
tier: 'core',
|
|
281
|
+
kind: 'contract',
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
name: "re3",
|
|
285
|
+
alias: "four_pass",
|
|
286
|
+
description: "Plan, draft, restructure, then line-edit — as four separate passes, never combined. (arXiv:2210.06774)",
|
|
287
|
+
useWhen: "Anything past a few hundred words that has to hold together.",
|
|
288
|
+
example: "Ask for structure and sentence polish at once and you get neither: the model tidies prose in a piece whose architecture is wrong. If the draft never got shorter, the restructure pass did not happen.",
|
|
289
|
+
tier: 'core',
|
|
290
|
+
kind: 'contract',
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
name: "de_generic",
|
|
294
|
+
alias: "fix_boring",
|
|
295
|
+
description: "Attack originality, elaboration and specificity directly instead of asking for a better draft — fluency is the part that was already fine. (arXiv:2309.14556)",
|
|
296
|
+
useWhen: "A draft that reads competently and says nothing.",
|
|
297
|
+
example: "\"Improve this\" gets you more fluency, which is what made it dull. The test is whether a competitor could publish it unchanged under their own name.",
|
|
298
|
+
},
|
|
299
|
+
],
|
|
273
300
|
research: [
|
|
274
301
|
{
|
|
275
302
|
name: "investigate",
|
|
@@ -776,6 +803,14 @@ const RECOMMEND_RULES = [
|
|
|
776
803
|
techniques: ["adversarial", "constitutional"], why: "steelman then attack, and critique against explicit principles" },
|
|
777
804
|
{ match: /\b(idea|brainstorm|creative|novel|alternative|possibilit)\b/i,
|
|
778
805
|
techniques: ["innovate", "what_if", "alt_view"], why: "generate unconventional options and view from several angles" },
|
|
806
|
+
// Writing intent previously matched nothing here and fell through to
|
|
807
|
+
// CORE_TECHNIQUES.slice(0,3) — chain_of_note/astute_rag/spotlighting, none of
|
|
808
|
+
// which have anything to do with drafting prose. storm researches before the
|
|
809
|
+
// first word is written, re3 keeps structural and line editing as separate
|
|
810
|
+
// passes instead of fighting each other in one, and de_generic attacks
|
|
811
|
+
// competent-but-boring output directly rather than vaguely asking for "better".
|
|
812
|
+
{ match: /\b(write|writing|draft|blog|article|essay|post|prose|long[- ]form|revise|rewrite|edit(ing)?|boring|generic|dull)\b/i,
|
|
813
|
+
techniques: ["storm", "re3", "de_generic"], why: "research before drafting, keep structural and line editing in separate passes, and attack originality directly" },
|
|
779
814
|
{ match: /\b(arithmetic|calculat\w*|comput(e|es|ing|ation\w*)|count\w*|how many|sum|total|percentage|math|numeric)\b/i,
|
|
780
815
|
techniques: ["program_of_thoughts"], why: "compute it in code rather than in prose, where digits drift" },
|
|
781
816
|
{ match: /\b(verif\w*|fact[- ]?check\w*|double[- ]?check|is (this|that) (true|correct|right)|accura\w*|claims?|hallucinat\w*)\b/i,
|
|
@@ -875,7 +910,7 @@ export const listPromptTechniquesTool = defineModelTool({
|
|
|
875
910
|
description: `Discover prompt engineering techniques. By default shows the ${CORE_COUNT} CORE techniques that still help 2026 reasoning models (output-structure contracts). Pass all=true for all ${TECHNIQUE_COUNT}, or filter by category. Don't know which? preview_prompt_technique with technique="auto".`,
|
|
876
911
|
parameters: z.object({
|
|
877
912
|
all: z.boolean().optional().default(false).describe(`Show all ${TECHNIQUE_COUNT} techniques (default false = core only)`),
|
|
878
|
-
filter: z.enum(["all", "creative", "research", "analytical", "reflective", "reasoning", "verification", "meta", "debate", "judgment", "engineering", "research_advanced", "decision", "structured_coding", "retrieval", "security", "few_shot", "tabular"])
|
|
913
|
+
filter: z.enum(["all", "creative", "writing", "research", "analytical", "reflective", "reasoning", "verification", "meta", "debate", "judgment", "engineering", "research_advanced", "decision", "structured_coding", "retrieval", "security", "few_shot", "tabular"])
|
|
879
914
|
.optional()
|
|
880
915
|
.describe("Show one category in full (implies all techniques in it)")
|
|
881
916
|
}),
|
|
@@ -1183,6 +1218,10 @@ async function executeTargetTool(toolName, prompt, context) {
|
|
|
1183
1218
|
const { kimiThinkingTool } = await import('./openrouter-tools.js');
|
|
1184
1219
|
return kimiThinkingTool.execute({ problem: prompt }, context);
|
|
1185
1220
|
},
|
|
1221
|
+
'blog_writer': async () => {
|
|
1222
|
+
const { blogWriterTool } = await import('./blog-writer-tool.js');
|
|
1223
|
+
return blogWriterTool.execute({ topic: prompt }, context);
|
|
1224
|
+
},
|
|
1186
1225
|
};
|
|
1187
1226
|
const executor = toolMappings[toolName];
|
|
1188
1227
|
if (!executor) {
|
|
@@ -146,6 +146,9 @@ export async function getAllTools(inlineTools = []) {
|
|
|
146
146
|
// security_review — dedicated security audit (DeepSeek V4 Pro) — gated on OpenRouter.
|
|
147
147
|
const { securityReviewTool } = await import("./security-review-tool.js");
|
|
148
148
|
tools.push(securityReviewTool);
|
|
149
|
+
// blog_writer — researched long-form via Kimi — gated on OpenRouter.
|
|
150
|
+
const { blogWriterTool } = await import("./blog-writer-tool.js");
|
|
151
|
+
tools.push(blogWriterTool);
|
|
149
152
|
}
|
|
150
153
|
// 6) Local-model tools (Ollama / LM Studio / llama.cpp / vLLM). Registered
|
|
151
154
|
// unconditionally; profile membership enforced downstream by
|
package/docs/TOOLS_REFERENCE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TachiBot MCP - Complete Tools Reference
|
|
2
2
|
|
|
3
|
-
**Complete parameter schemas and example calls for all
|
|
3
|
+
**Complete parameter schemas and example calls for all 67 tools** (see [Meta & Orchestration](#meta--orchestration) for `continue_focus`).
|
|
4
4
|
|
|
5
5
|
Schemas below are generated from the wire contract (`test/golden/__snapshots__/tool-contracts.json`) — the exact JSON Schema the MCP server publishes for each tool.
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ Schemas below are generated from the wire contract (`test/golden/__snapshots__/t
|
|
|
9
9
|
## Table of Contents
|
|
10
10
|
|
|
11
11
|
- [Research & Search](#research--search) (6): [perplexity_ask](#perplexity_ask) · [perplexity_reason](#perplexity_reason) · [grok_search](#grok_search) · [grok_search_lite](#grok_search_lite) · [openai_search](#openai_search) · [gemini_search](#gemini_search)
|
|
12
|
-
- [Reasoning & Planning](#reasoning--planning) (
|
|
12
|
+
- [Reasoning & Planning](#reasoning--planning) (15): [grok_reason](#grok_reason) · [openai_reason](#openai_reason) · [qwen_reason](#qwen_reason) · [qwq_reason](#qwq_reason) · [kimi_thinking](#kimi_thinking) · [kimi_decompose](#kimi_decompose) · [deepseek_reason](#deepseek_reason) · [glm_reason](#glm_reason) · [stepfun_reason](#stepfun_reason) · [ernie_reason](#ernie_reason) · [planner_maker](#planner_maker) · [planner_runner](#planner_runner) · [list_plans](#list_plans) · [spec_writer](#spec_writer) · [blog_writer](#blog_writer)
|
|
13
13
|
- [Code Intelligence](#code-intelligence) (11): [kimi_code](#kimi_code) · [grok_code](#grok_code) · [grok_debug](#grok_debug) · [qwen_coder](#qwen_coder) · [qwen_algo](#qwen_algo) · [qwen_competitive](#qwen_competitive) · [deepseek_algo](#deepseek_algo) · [minimax_code](#minimax_code) · [minimax_agent](#minimax_agent) · [testgen](#testgen) · [debug_triage](#debug_triage)
|
|
14
14
|
- [Analysis & Judgment](#analysis--judgment) (14): [gemini_analyze_text](#gemini_analyze_text) · [gemini_analyze_code](#gemini_analyze_code) · [gemini_judge](#gemini_judge) · [jury](#jury) · [diff_review](#diff_review) · [plan_critique](#plan_critique) · [gemini_brainstorm](#gemini_brainstorm) · [openai_brainstorm](#openai_brainstorm) · [openai_code_review](#openai_code_review) · [openai_explain](#openai_explain) · [grok_brainstorm](#grok_brainstorm) · [grok_architect](#grok_architect) · [security_review](#security_review) · [kimi_long_context](#kimi_long_context)
|
|
15
15
|
- [Meta & Orchestration](#meta--orchestration) (7): [think](#think) · [nextThought](#nextthought) · [focus](#focus) · [continue_focus](#continue_focus) · [tachi](#tachi) · [doctor](#doctor) · [usage_stats](#usage_stats)
|
|
@@ -540,6 +540,31 @@ spec_writer({
|
|
|
540
540
|
|
|
541
541
|
---
|
|
542
542
|
|
|
543
|
+
### blog_writer
|
|
544
|
+
|
|
545
|
+
Write a researched long-form post in one call, via Kimi. Composes the `storm` technique (interview four personas for the angle, mark claims `[KNOWN]`/`[SEARCH]`/`[OPINION]`) with the `re3` technique (plan, draft, restructure, line-edit as four separate passes) rather than copying their prompt text — the same templates power `execute_prompt_technique({ technique: "storm" | "re3", ... })`. Note: the research stage does not itself search; it marks claims that need a real source. For genuine grounding, route those through a search-capable tool.
|
|
546
|
+
|
|
547
|
+
#### Parameters
|
|
548
|
+
|
|
549
|
+
| Parameter | Type | Required | Default | Description |
|
|
550
|
+
|-----------|------|----------|---------|-------------|
|
|
551
|
+
| `topic` | `string` | ✅ Yes | - | What the post is about — REQUIRED |
|
|
552
|
+
| `wordCount` | `number` | No | - | Target length in words |
|
|
553
|
+
| `research` | `boolean` | No | `true` | Run the persona-interview research stage first |
|
|
554
|
+
| `audience` | `string` | No | - | Who it is for, e.g. `backend engineers` |
|
|
555
|
+
|
|
556
|
+
#### Example
|
|
557
|
+
|
|
558
|
+
```typescript
|
|
559
|
+
blog_writer({
|
|
560
|
+
topic: "MCP tool bloat",
|
|
561
|
+
wordCount: 1200,
|
|
562
|
+
audience: "backend engineers"
|
|
563
|
+
})
|
|
564
|
+
```
|
|
565
|
+
|
|
566
|
+
---
|
|
567
|
+
|
|
543
568
|
## Code Intelligence
|
|
544
569
|
|
|
545
570
|
### kimi_code
|
package/docs/TOOL_PROFILES.md
CHANGED
|
@@ -24,16 +24,16 @@ Counts below are generated from `src/profiles/*.ts` via `npm run build:profiles`
|
|
|
24
24
|
|
|
25
25
|
| Profile | Tools | Description |
|
|
26
26
|
|---------|-------|-------------|
|
|
27
|
-
| `minimal` |
|
|
28
|
-
| `research_power` |
|
|
29
|
-
| `code_focus` |
|
|
30
|
-
| `balanced` |
|
|
31
|
-
| `heavy_coding` |
|
|
32
|
-
| `full` |
|
|
27
|
+
| `minimal` | 14 | Minimal essential tools for basic tasks |
|
|
28
|
+
| `research_power` | 38 | Research-focused with Grok search + all Perplexity + brainstorming |
|
|
29
|
+
| `code_focus` | 43 | Code-heavy work with debugging and analysis |
|
|
30
|
+
| `balanced` | 56 | Balanced set for general use |
|
|
31
|
+
| `heavy_coding` | 59 | Heavy coding with all reasoning & code tools |
|
|
32
|
+
| `full` | 67 | **Default profile** — every tool enabled |
|
|
33
33
|
|
|
34
34
|
---
|
|
35
35
|
|
|
36
|
-
### 1. `minimal` (
|
|
36
|
+
### 1. `minimal` (14 tools)
|
|
37
37
|
|
|
38
38
|
Minimal essential tools for basic tasks.
|
|
39
39
|
|
|
@@ -50,7 +50,7 @@ Minimal essential tools for basic tasks.
|
|
|
50
50
|
|
|
51
51
|
---
|
|
52
52
|
|
|
53
|
-
### 2. `research_power` (
|
|
53
|
+
### 2. `research_power` (38 tools)
|
|
54
54
|
|
|
55
55
|
Research-focused with Grok search + all Perplexity + brainstorming + the full reasoning/planning suite.
|
|
56
56
|
|
|
@@ -61,7 +61,7 @@ Research-focused with Grok search + all Perplexity + brainstorming + the full re
|
|
|
61
61
|
- Judgment: `gemini_judge`, `jury`
|
|
62
62
|
- Creative: `openai_brainstorm`, `gemini_brainstorm`
|
|
63
63
|
- Code: `qwen_coder`, `kimi_code`, `kimi_long_context`, `minimax_agent`
|
|
64
|
-
- Planning: `planner_maker`, `planner_runner`, `list_plans`
|
|
64
|
+
- Planning: `planner_maker`, `planner_runner`, `list_plans`, `blog_writer`
|
|
65
65
|
- Workflow: `workflow`
|
|
66
66
|
- Prompt engineering: `list_prompt_techniques`, `preview_prompt_technique`, `execute_prompt_technique`
|
|
67
67
|
|
|
@@ -74,7 +74,7 @@ Research-focused with Grok search + all Perplexity + brainstorming + the full re
|
|
|
74
74
|
|
|
75
75
|
---
|
|
76
76
|
|
|
77
|
-
### 3. `code_focus` (
|
|
77
|
+
### 3. `code_focus` (43 tools)
|
|
78
78
|
|
|
79
79
|
Code-heavy work with debugging and analysis.
|
|
80
80
|
|
|
@@ -94,7 +94,7 @@ Code-heavy work with debugging and analysis.
|
|
|
94
94
|
|
|
95
95
|
---
|
|
96
96
|
|
|
97
|
-
### 4. `balanced` (
|
|
97
|
+
### 4. `balanced` (56 tools)
|
|
98
98
|
|
|
99
99
|
Balanced set for general use — nearly everything except the deepest niche reasoning/creative extras.
|
|
100
100
|
|
|
@@ -107,7 +107,7 @@ Balanced set for general use — nearly everything except the deepest niche reas
|
|
|
107
107
|
- Creative: `openai_brainstorm`, `gemini_brainstorm`
|
|
108
108
|
- Analysis: `gemini_analyze_code`, `gemini_analyze_text`
|
|
109
109
|
- Local: `local_query`
|
|
110
|
-
- Planning: `planner_maker`, `planner_runner`, `list_plans`, `spec_writer`
|
|
110
|
+
- Planning: `planner_maker`, `planner_runner`, `list_plans`, `spec_writer`, `blog_writer`
|
|
111
111
|
- Workflow: `workflow`, `list_workflows`, `create_workflow`, `visualize_workflow`
|
|
112
112
|
- Prompt engineering: `list_prompt_techniques`, `preview_prompt_technique`, `execute_prompt_technique`, `refine_prompt`
|
|
113
113
|
- Quality: `testgen`, `security_review`, `diff_review`, `plan_critique`
|
|
@@ -117,7 +117,7 @@ Balanced set for general use — nearly everything except the deepest niche reas
|
|
|
117
117
|
|
|
118
118
|
---
|
|
119
119
|
|
|
120
|
-
### 5. `heavy_coding` (
|
|
120
|
+
### 5. `heavy_coding` (59 tools)
|
|
121
121
|
|
|
122
122
|
Heavy coding with the full reasoning & code toolset, minus the general workflow-management tools.
|
|
123
123
|
|
|
@@ -141,7 +141,7 @@ Heavy coding with the full reasoning & code toolset, minus the general workflow-
|
|
|
141
141
|
|
|
142
142
|
---
|
|
143
143
|
|
|
144
|
-
### 6. `full` (
|
|
144
|
+
### 6. `full` (67 tools) — default
|
|
145
145
|
|
|
146
146
|
All tools enabled for maximum capability. This is the profile set in `tools.config.json`'s `activeProfile` by default.
|
|
147
147
|
|
|
@@ -149,7 +149,7 @@ All tools enabled for maximum capability. This is the profile set in `tools.conf
|
|
|
149
149
|
|
|
150
150
|
**Best for:** Maximum flexibility, specialized tasks, demonstrations.
|
|
151
151
|
|
|
152
|
-
**Note:** tools still self-gate on API keys — with no `OPENROUTER_API_KEY`, the Qwen/Kimi/MiniMax/DeepSeek/GLM/StepFun/ERNIE tools won't register even under `full`. Run `doctor` to see exactly what's active.
|
|
152
|
+
**Note:** tools still self-gate on API keys — with no `OPENROUTER_API_KEY`, the Qwen/Kimi/MiniMax/DeepSeek/GLM/StepFun/ERNIE tools won't register even under `full`. Run `doctor` to see exactly what's active.
|
|
153
153
|
|
|
154
154
|
---
|
|
155
155
|
|