release 1.0.0: cost control, 41 tools, 29 skills, custom commands, auto-load
This commit is contained in:
+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