agentleFS
AlcanDevAlcanDev/korva/CLAUDE.md

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:

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
  1. Distinctive:

    Prefer editing over rewriting whole files.

    line 13
  2. Distinctive:

    Do not re-read files you have already read unless the file may have changed.

    line 14
  3. Distinctive:

    Test your code before declaring done.

    line 18
  4. Distinctive:

    No sycophantic openers or closing fluff.

    line 19
  5. Distinctive:

    Keep solutions simple and direct.

    line 20

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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/internal
  • github.com/alcandev/korva/vault
  • github.com/alcandev/korva/cli
  • github.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 SQLite
  • admin.key nunca 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 *.key y 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.go junto a store.go)
  • Fixtures en testdata/ o internal/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/bubbletea

Memoria del proyecto (Vault MCP)

Si el Vault MCP está configurado en este entorno:

  • vault_context al inicio de sesión — recupera contexto previo
  • vault_save después de cambios significativos — decisiones, patrones, bugs resueltos
  • vault_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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.