korva
CLAUDE.md0 starsChanged 7 months agoMITView on GitHub
Behavioral discipline: read BEHAVIOR.md for the four universal principles (think before coding, simplicity first, surgical changes, goal-driven execution) — they apply to every task in this repo. This file describes what Korva is and how it is built; BEHAVIOR.md describes how to work in it without LLM-typical mistakes. Para agregar dependencias a un módulo específico: *Last updated:
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Prefer editing over rewriting whole files.
- Distinctive: line 14
Do not re-read files you have already read unless the file may have changed.
- Distinctive: line 18
Test your code before declaring done.
- Distinctive: line 19
No sycophantic openers or closing fluff.
- Distinctive: line 20
Keep solutions simple and direct.
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Korva — Instrucciones para Claude Code
Behavioral discipline: read BEHAVIOR.md for the four universal principles (think before coding, simplicity first, surgical changes, goal-driven execution) — they apply to every task in this repo. This file describes what Korva is and how it is built; BEHAVIOR.md describes how to work in it without LLM-typical mistakes.
Approach
- Think before acting. Read existing files before writing code.
- Be concise in output but thorough in reasoning.
- Prefer editing over rewriting whole files.
- Do not re-read files you have already read unless the file may have changed.
- Skip files over 100KB unless explicitly required.
- Suggest running /cost when a session is running long.
- Recommend starting a new session when switching to an unrelated task.
- Test your code before declaring done.
- No sycophantic openers or closing fluff.
- Keep solutions simple and direct.
- User instructions always override this file.
Contexto del proyecto
Korva es un ecosistema de IA para equipos enterprise escrito en Go.
Repositorio: github.com/alcandev/korva
Arquitectura del monorepo
korva/
├── internal/ → paquetes Go compartidos (db, config, privacy, admin, profile)
├── vault/ → servidor de memoria (SQLite + MCP + REST API :7437)
├── cli/ → CLI `korva` (Cobra + Bubbletea)
├── sentinel/ → pre-commit hooks + validador Go
├── lore/ → Scrolls de conocimiento (.md)
├── forge/ → workflow SDD de 5 fases (.md)
└── beacon/ → dashboard web (React 19 + Vite 6)Go workspace
El proyecto usa go.work. Cada componente tiene su propio go.mod:
github.com/alcandev/korva/internalgithub.com/alcandev/korva/vaultgithub.com/alcandev/korva/cligithub.com/alcandev/korva/sentinel/validator
Para agregar dependencias a un módulo específico:
cd vault && go get <paquete>Reglas de desarrollo
Go
- Go 1.26+
- SQLite via
modernc.org/sqlite(pure Go, sin CGO) - IDs de observaciones con ULID (
github.com/oklog/ulid/v2) - Paths siempre via
internal/config.PlatformPaths()— nunca strings hardcodeadas - Tests table-driven, SQLite in-memory para tests del store
go test ./...desde la raíz del workspace
Privacidad y seguridad
internal/privacy.Filter()debe aplicarse a TODO contenido antes de guardarlo en SQLiteadmin.keynunca se serializa ni se logea — solo se lee de~/.korva/admin.key- Los Team Profiles solo pueden modificar la whitelist:
vault,sentinel,lore,instructions - Git Sync excluye explícitamente
*.keyy datos sensibles
Estructura de archivos Go
- Exports públicos en la raíz del paquete
- Implementaciones privadas en subdirectorios
- Tests junto al archivo (
store_test.gojunto astore.go) - Fixtures en
testdata/ointernal/testutil/
Comandos frecuentes
# Compilar vault (desde la raíz del workspace)
go build github.com/alcandev/korva/vault/cmd/korva-vault
# Compilar CLI
go build github.com/alcandev/korva/cli/cmd/korva
# Tests de todo el workspace (patrón correcto para go.work)
go test github.com/alcandev/korva/...
# Tests de un módulo específico
cd vault && go test ./...
# Agregar dependencia a un módulo específico
cd vault && go get github.com/charmbracelet/bubbleteaMemoria del proyecto (Vault MCP)
Si el Vault MCP está configurado en este entorno:
vault_contextal inicio de sesión — recupera contexto previovault_savedespués de cambios significativos — decisiones, patrones, bugs resueltosvault_search "tema"antes de proponer algo nuevo
Contexto de negocio
Korva nace para resolver el problema de los equipos que usan IA sin instrucciones de arquitectura. El equipo destino usa NestJS hexagonal + Fastify + Nx monorepo + deploy en K8s AKS. El diseño de Korva debe ser genérico (open source MIT) pero el sistema de Team Profiles permite configuración privada por equipo sin tocar el repo público.
Last updated: 2026-04-30
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

