REGLA OBLIGATORIA PARA CUALQUIER IA
Ningun agente de IA, incluyendo Codex, Claude, ChatGPT, Gemini o similares, puede modificar, mover, borrar, instalar, desinstalar o intervenir archivos del sistema Windows, navegadores, perfiles de navegador, extensiones, complementos, configuraciones del equipo ni otros recursos fuera de este proyecto sin permiso explicito y especifico del usuario.
Si el usuario no lo pide de forma explicita y puntual, se asume prohibido.
Base Markdown template for documenting the botvalia-code repository.
- Name:
@botvalia/botvalia-code - Type: Reconstructed TypeScript CLI source tree
- Runtime: Bun
>=1.3.5, Node.js>=24
Describe here what this project does, who it is for, and the main problem it solves.
bun install
bun run dev:auto
bun run versionsrc/: core CLI source codeshims/: compatibility replacements for native/private modulesvendor/: native binding source codescripts/: helper scripts for local execution modes
src/dev-entry.tsblocks startup if relative imports are missing.- This repository is reconstructed, so changes should stay minimal and auditable.
- Manual validation is preferred for each changed path.
/modeltop level:Auto (All),Auto (OpenRouter),Auto (Ollama),Manual.Auto (All): recommended hybrid free routing across OpenRouter and Ollama, organized byCode,General, andFast.Auto (OpenRouter): same-provider OpenRouter routing with multiple curated fallbacks per lane.Auto (Ollama): same-provider Ollama routing with multiple curated fallbacks per lane.Manual: opens a second list with fixed models ordered by use-case (Code,General,Fast).openrouter/free: OpenRouter router for free models, not a fixed manual model.- BotValia persists per-project route cooldowns in
.claude/model-route-cooldowns.jsonso failed free routes go to the back of the queue between sessions. - Launchers can query the live OpenRouter free catalog via
/api/v1/modelsand prefer models that are actually free/visible there. - Launchers can query Ollama inventory via
/api/tagsand prefer models that are actually installed. BOTVALIA_OPENROUTER_API_KEYS: comma-separated OpenRouter key pool for credential/credit failover.BOTVALIA_OLLAMA_ENDPOINTS: semicolon/comma-separated endpoint pool usingbaseUrl|apiKey.BOTVALIA_OLLAMA_BASE_URLS+BOTVALIA_OLLAMA_API_KEYS: alternate indexed pool format for Ollama/LiteLLM-compatible endpoints.
- Current local memory is low-token and practical, not a full vector DB.
- Semantic retrieval uses local hash embeddings plus cosine similarity over project JSON files in
.botvalia/memory/. - There is a heavier
memory_plugin/prototype in the repo, but it is not the main runtime path today. - Instruction memory currently resolves in this order:
- managed
CLAUDE.md - user
~/.claude/CLAUDE.md - project
CLAUDE.md,.claude/CLAUDE.md,.claude/rules/*.md - local
CLAUDE.local.md
- managed
- Memory files support
@pathincludes and files closer to the current working directory have higher priority.
/initis the current onboarding command for generating or updating project instructions.- With
NEW_INITenabled,/initcan also scaffoldCLAUDE.local.md, project skills, and hooks. /memoryopens instruction files and memory folders in the configured editor./skillslists bundled, plugin, user, and project skills available to the current session.- The cleanest current specialization paths are:
- project skills in
.claude/skills/<skill-name>/SKILL.md - per-session prompt profiles via
--append-system-prompt-file - plugins for enable/disable bundles
- project skills in
- Suggested activable workflows:
ux-audit,ui-polish,qa-regression. - Starter templates: UX_UI_QA_SKILLS.md
bun run version
bun run version:autoDocument here any extra manual checks needed for the specific feature being worked on.