feat: refactored and tweaked model descriptions / schema to use fewer tokens at launch (average reduction per field description: 60-80%) without sacrificing tool effectiveness

Disabled secondary tools by default (for new installations), updated README.md with instructions on how to enable these in .env
run-server.sh now displays disabled / enabled tools (when DISABLED_TOOLS is set)
This commit is contained in:
Fahad
2025-08-22 09:23:59 +04:00
parent 6921616db3
commit 4b202f5d1d
31 changed files with 409 additions and 609 deletions

View File

@@ -19,7 +19,7 @@ class TestThinkDeepTool:
def test_tool_metadata(self, tool):
"""Test tool metadata"""
assert tool.get_name() == "thinkdeep"
assert "COMPREHENSIVE INVESTIGATION & REASONING" in tool.get_description()
assert "investigation and reasoning" in tool.get_description()
assert tool.get_default_temperature() == 0.7
schema = tool.get_input_schema()
@@ -120,7 +120,7 @@ class TestCodeReviewTool:
def test_tool_metadata(self, tool):
"""Test tool metadata"""
assert tool.get_name() == "codereview"
assert "COMPREHENSIVE CODE REVIEW" in tool.get_description()
assert "code review" in tool.get_description()
assert tool.get_default_temperature() == 0.2
schema = tool.get_input_schema()
@@ -213,7 +213,7 @@ class TestAnalyzeTool:
def test_tool_metadata(self, tool):
"""Test tool metadata"""
assert tool.get_name() == "analyze"
assert "COMPREHENSIVE ANALYSIS WORKFLOW" in tool.get_description()
assert "code analysis" in tool.get_description()
assert tool.get_default_temperature() == 0.2
schema = tool.get_input_schema()