reasonix 0.2.2 → 0.3.0-alpha.1
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/README.md +23 -0
- package/dist/cli/index.js +714 -105
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +270 -2
- package/dist/index.js +327 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -91,6 +91,29 @@ with your own API key: `npx tsx benchmarks/tau-bench/runner.ts --repeats 3`.
|
|
|
91
91
|
|
|
92
92
|
[r]: ./benchmarks/tau-bench/report.md
|
|
93
93
|
|
|
94
|
+
### Extends to MCP (v0.3-alpha)
|
|
95
|
+
|
|
96
|
+
Any [MCP](https://spec.modelcontextprotocol.io/) server's tools inherit
|
|
97
|
+
the same Cache-First benefits. Live run with an MCP tool call in the
|
|
98
|
+
middle of a conversation:
|
|
99
|
+
|
|
100
|
+
| turn | what happened | cache hit |
|
|
101
|
+
|---|---|---:|
|
|
102
|
+
| 1 | user asks, model decides to call `add` tool via MCP stdio | 0.0% (first-ever prefix) |
|
|
103
|
+
| 1 (continued) | model receives tool result (42), writes final answer | **96.6%** |
|
|
104
|
+
|
|
105
|
+
The MCP round-trip did not disturb the byte-stable prefix — server-side
|
|
106
|
+
prompt cache kicked in on turn 2. Cost $0.000254 total, **94% cheaper
|
|
107
|
+
than Claude** at equivalent token counts. Reference transcript:
|
|
108
|
+
[`mcp-demo.add.jsonl`][mcp]. Reproduce:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
reasonix chat --mcp "node --import tsx examples/mcp-server-demo.ts"
|
|
112
|
+
# ask "use add to compute 17 + 25" — model calls the MCP tool, cache holds
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
[mcp]: ./benchmarks/tau-bench/transcripts/mcp-demo.add.jsonl
|
|
116
|
+
|
|
94
117
|
---
|
|
95
118
|
|
|
96
119
|
## Usage
|