release 1.0.0: cost control, 41 tools, 29 skills, custom commands, auto-load
This commit is contained in:
1 parent
a22d8e13b1
commit
ffa9a02c26
97 files changed
+4791
-788
No files matched your search
+3
-2
@@ -104,6 +104,7 @@ test('omitting every section leaves no dangling markers', () => {
|
||||
|
||||
test('the prompt stays a reasonable size with everything on', () => {
|
||||
const prompt = systemPrompt({ cwd: '/repo', availableTools: ALL, canAsk: true });
|
||||
// Sent on every request, so a runaway prompt is a direct cost.
|
||||
expect(prompt.length).toBeLessThan(5000);
|
||||
// Sent on every request, so a runaway prompt is a direct cost. The budget scales
|
||||
// with the documented-tool count: a new tool earns its own line, the rest must not.
|
||||
expect(prompt.length).toBeLessThan(5000 + (TOOL_DOCS.length - 22) * 120);
|
||||
});
|
||||
Reference in new issue
Block a user