Tool schema optimization (PLAN__Tool_Schema_Optimization.md Phases 1-3): - model_registry.py: ROLE_DEFAULT_TOOLS — distill gets [], research/coder get narrow tool lists by default; applied in get_role_config() when user hasn't configured a custom list - openai_orchestrator.py: keyword routing via narrow_tools_by_keywords() — scans user message + last assistant turn; narrows active schemas to matched categories only (e.g. "weather" → 3 web tools instead of 69); zero tools sent for pure chat - openai_orchestrator.py: _get_cached_tools() — module-level schema cache keyed by (role, sorted_tool_list, risk_params); eliminates redundant schema rebuilds - openai_orchestrator.py: _TOOL_SCHEMA_OVERHEAD 3000 → 500 tokens (schemas now excluded from the per-call fixed estimate since they're cached separately) - tools/__init__.py: CATEGORY_TOOL_MAP + _KEYWORD_CATEGORY_MAP + classify_tool_categories() + narrow_tools_by_keywords() — the classifier logic lives here so both orchestrators can share it aider_run tool (cortex/tools/aider.py): - Invokes Aider as a subprocess with --message --yes-always --no-pretty --no-stream - Project aliases: cortex / aether_api / aether_frontend / aether_container - Auto-injects OpenRouter API key from Cortex model registry (no ~/.env needed) - background=True fires async + registers in agent_manager; notify=True sends push notification on completion - admin-only, confirm-required, TOOL_RISK=high - .gitignore: added .aider.chat.history.md / .aider.input.history / .aider.llm.history Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
605 B
Plaintext
36 lines
605 B
Plaintext
# Environments
|
|
.venv/
|
|
__pycache__/
|
|
*.pyc
|
|
|
|
# Secrets — keep .env.default, never commit real .env
|
|
.env
|
|
cortex/.env*.bak
|
|
|
|
# Pip install artifacts
|
|
cortex/=*
|
|
|
|
# Runtime data
|
|
cortex/data/
|
|
|
|
# User home directory — all persona data, memory, tasks, and credentials
|
|
# are personal and must never be committed. Back up via encrypted means.
|
|
home/
|
|
|
|
# Syncthing metadata
|
|
.stfolder/
|
|
|
|
# Temporary files
|
|
tmp/
|
|
*.tmp
|
|
*.log
|
|
|
|
# Aider — history files are personal/ephemeral; .aider.conf.yml is project config and IS tracked
|
|
.aider.chat.history.md
|
|
.aider.input.history
|
|
.aider.llm.history
|
|
|
|
# System files
|
|
.DS_Store
|
|
.aider*
|