sova
CLAUDE.md2 starsChanged 3 months agoApache-2.0View on GitHub
This file provides Claude Code-specific commands and behaviors. Architecture, conventions, and cross-cutting rules are in AGENTS.md and .claude/rules/*.md -- this file contains only run commands, knowledge system config, and Claude-specific preferences. Ticket workflow (branch naming, PR linking, etc.) is in AGENTS.md under "Development Workflow". SOVA uses database-backed configuration (.claude/sova.db) instead of sova.toml. The migration is automatic: - First run: sova install /path/to/project creates the database - Read: sova config prints the current values - Edit: sova config set <key> <value>,…
- Installs packages
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- templates/CLAUDE.mdCLAUDE.md
- dashboard-designSkill
- database-patternsSkill
- source-command-extract-knowledgeSkill
- source-command-rearrange-commitsSkill
- testing-patternsSkill
- visual-auditSkill
- dashboard-designSkill
- database-patternsSkill
- design-tasteSkill
- issue-templateSkill
- testing-patternsSkill
- visual-auditSkill
- design-systemSkill
- issue-templateSkill
- testing-patternsSkill
The file
We split this CLAUDE.md into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 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.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 62
Prefer sova config set, which writes valid JSON for you
- Distinctive: line 67
If you see "Skipping setting 'X': invalid JSON value" when running commands:
- Very specific: line 85
When Python upgrades (e.g., 3.13 → 3.14), reinstall SOVA:
- Very specific: line 109
If you installed RTK after running sova install, add the hook manually to .claude/settings.json:
- Distinctive: line 159
Run Claude Code through Headroom without a separate process to manage:
- Distinctive: line 167
Start a local compressing proxy:
- Very specific: line 202
Confirmed patterns: Add to .claude/rules/*.md (Tier 1)
- Very specific: line 203
New findings (not yet confirmed): Add to .claude/agent-memory/ (Tier 2)
- Distinctive: line 209
Do NOT include "Generated with Claude Code" in PR descriptions
- Very specific: line 210
Always run shellcheck on changed bash scripts before creating commits
- Distinctive: line 211
NEVER use emojis in any output
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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
@AGENTS.md
CLAUDE.md
This file provides Claude Code-specific commands and behaviors. Architecture, conventions, and cross-cutting rules are in AGENTS.md and .claude/rules/*.md -- this file contains only run commands, knowledge system config, and Claude-specific preferences.
Running the Project
# SOVA CLI (globally installed via: pip install --user --break-system-packages -e .)
sova --help # Show all commands
sova install /path/to/project # Install SOVA into a project
sova setup /path/to/project # Run setup wizard
sova uninstall /path/to/project # Remove SOVA from a project
sova run 42 # Work on issue #42
sova triage 42 # Triage a single issue
sova briefing # Show awareness briefing
sova dashboard --project /path # Start web UI at http://localhost:8111
# Server management (dashboard + scheduler daemon)
sova server start # Start the server
sova server restart # Restart the server
sova server stop # Stop the server
sova server status # Check if server is running
sova server digest --hours 24 # Show activity summary
sova server install-service --type systemd # Install as system service
# Dashboard (shortcut)
make serve # Start web UI at http://localhost:8111
# Development
make check # Run all linters + tests (CI-equivalent)
make test # Run bash + python tests
make lint # ShellCheck + Ruff
make format # Auto-format Python code
make marketplace # Regenerate plugins/sova/ from commands/ (run after editing a published command)
make commands-render # Regenerate .claude/commands/ from commands/ (run after editing a managed command)
# Git hooks (after fresh clone)
git config core.hooksPath .githooksStarting a Session
# Verify you are authenticated as the correct GitHub user
gh auth statusTicket workflow (branch naming, PR linking, etc.) is in AGENTS.md under "Development Workflow".
Configuration
SOVA uses database-backed configuration (.claude/sova.db) instead of sova.toml. The migration is automatic:
- First run:
sova install /path/to/projectcreates the database - Read:
sova configprints the current values - Edit:
sova config set <key> <value>, or the dashboard settings page. Both go through the same validation, so neither can persist a value that makesload_config()raise. List-valued keys accept a JSON array or comma-separated text:sova config set awareness.providers "gmail, gcal" - Last resort:
sqlite3 .claude/sova.db(all values stored as JSON; see troubleshooting below). Prefersova config set, which writes valid JSON for you - Environment overrides:
SOVA_GITHUB_REPO=owner/repo(prefix withSOVA_, replace dots with underscores:SOVA_AGENT_MODEL)
Troubleshooting Config Load Errors
If you see "Skipping setting 'X': invalid JSON value" when running commands:
- Check the value:
sqlite3 .claude/sova.db "SELECT key, value FROM project_settings WHERE key='X';" - All values must be valid JSON:
- Strings:
"value"(with quotes) - Numbers:
123or1.5(no quotes) - Arrays:
["item1","item2"] - Booleans:
trueorfalse(no quotes)
- Strings:
- Fix non-JSON values (
sova config setis config-tolerant, so it still works when the config no longer loads):
Or edit the row directly:sova config set agent.model your-string-valuesqlite3 .claude/sova.db "UPDATE project_settings SET value = '\"your-string-value\"' WHERE key = 'agent.model';"
When Python upgrades (e.g., 3.13 → 3.14), reinstall SOVA:
python3 -m pip install --user --break-system-packages -e .For an unknown llm.provider value (e.g. after a typo or downgrade), see
"Setting an Unknown LLM Provider" in docs/troubleshooting-config.md.
RTK Token Compression (Optional)
SOVA supports RTK (Rust Token Killer) for reducing token consumption by 60-90% on bash command outputs. When RTK is installed, sova install automatically configures it.
Installation
# Install RTK via Homebrew (macOS/Linux)
brew install rtk
# Verify installation
rtk --versionManual Setup
If you installed RTK after running sova install, add the hook manually to .claude/settings.json:
{
"hooks": {
"PreToolUse": [
{
"type": "command",
"command": "rtk hook claude"
}
]
}
}Important: The command must be "rtk hook claude", not just "rtk". The bare rtk command prints help and blocks tool calls.
Configuration
RTK is enabled by default. Disable hook injection during sova install with:
sova config set rtk.enabled falseVerification
# Check if RTK is available
sova doctor
# View RTK savings after a few sessions
rtk gainHeadroom Token Compression (Optional)
Headroom is a broader context-compression tool (JSON, code, logs, prose) than RTK, and is separate from the in-process Headroom compression wired into sova/llm/ for LLM invocations; see epic #894 for that integration. This section covers the standalone CLI for local use: SOVA's in-process path installs the compression extra declared in pyproject.toml (headroom-ai>=0.3.0), while local wrap/proxy usage below installs the full headroom-ai[all] bundle instead.
Headroom Installation
pip install "headroom-ai[all]"
# Verify installation
headroom --versionWrap Mode
Run Claude Code through Headroom without a separate process to manage:
headroom wrap claudeProxy Mode
Start a local compressing proxy:
headroom proxy --port 8787Starting the proxy alone does not route traffic: point Claude Code at it by setting ANTHROPIC_BASE_URL=http://localhost:8787 in the shell that runs claude.
Headroom Verification
# View durable compression savings (tokens, cost, per-model breakdown)
headroom savingsHeadroom is optional and licensed under Apache 2.0. sova doctor does not check for it, and installing it is not required for SOVA to function.
Knowledge System (4-Tier)
Tier 1: Project Rules (always loaded, no truncation)
CLAUDE.md-- This file (Claude Code-specific)AGENTS.md-- Cross-cutting conventions for all AI tools.claude/rules/*.md-- Modular knowledge files:architecture.md-- Project structure, key paths, design decisionsbash-patterns.md-- Shell scripting conventions and gotchas
.claude/commands/*.md-- Workflow commands (on-demand, loaded via/command)
Tier 2: Agent Memory (persists across tasks, gitignored)
.claude/agent-memory/MEMORY.md-- Index file.claude/agent-memory/cookbook.md-- Topical knowledge by domain, common mistakes with occurrence counts
Tier 3: Session Memory (auto-managed by Claude Code)
~/.claude/projects/.../memory/MEMORY.md-- User preferences, project state (200-line limit)
Adding new knowledge
- Confirmed patterns: Add to
.claude/rules/*.md(Tier 1) - New findings (not yet confirmed): Add to
.claude/agent-memory/(Tier 2) - Session state / preferences: Auto-memory (Tier 3)
- Promote: Tier 2 → Tier 1 when confirmed in 2+ tasks
Claude Code Behavioral Preferences
- Do NOT include "Generated with Claude Code" in PR descriptions
- Always run
shellcheckon changed bash scripts before creating commits - NEVER use emojis in any output
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.

