coral
CLAUDE.md38 starsChanged 7 months agoApache-2.0View on GitHub
The Go codebase (coral-go/) is the primary implementation of Coral. The coral-python/ is a legacy reference that is no longer authoritative. RULES: 1. The Go codebase is the source of truth. Improve it freely without deferring to Python patterns. 2. Only modify code under coral-go/ and tests/. All Makefile targets sync agent_docs automatically before building. The dev build tag skips EULA and license validation. CRITICAL: Always use a separate data directory for test servers. The production Coral instance uses ~/.coral/…
- Commits and pushes
The file
We split this CLAUDE.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Only modify code under coral-go/ and tests/.
- Distinctive: line 62
Write or update Go unit tests.
- Very specific: line 63
Run go test ./... to ensure no regressions.
- Distinctive: line 79
All Makefile targets sync agent_docs automatically before building.
≈ “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
CLAUDE.md - Coral Go
Mission
The Go codebase (coral-go/) is the primary implementation of Coral. The coral-python/ is a legacy reference that is no longer authoritative.
RULES:
- The Go codebase is the source of truth. Improve it freely without deferring to Python patterns.
- Only modify code under
coral-go/andtests/.
Testing
Go Unit Tests
cd coral-go && go test ./...Legacy Parity Tools (historical reference)
These tools were used during the Python-to-Go migration and may still be useful for comparison:
# Parity harness (requires both Python and Go servers)
python tests/parity_harness.py
# DB compare tool
cd coral-go && go build -o db-compare ./cmd/db-compare/
./db-compare <python-db> <go-db> [board-py-db] [board-go-db]Project Structure
coral/ # Legacy Python implementation (historical reference only)
coral-go/ # Primary Go implementation
cmd/ # CLI entry points (coral, launch-coral, coral-board, db-compare)
internal/ # Core packages
agent/ # Agent implementations (claude, gemini)
background/ # Background services (git poller, indexer, scheduler, etc.)
board/ # Message board store
config/ # Configuration
jsonl/ # JSONL log reader
license/ # License checking
pulse/ # Pulse event parser
ptymanager/ # PTY/tmux session management
server/ # HTTP server, routes, frontend assets
store/ # SQLite storage layer
tmux/ # Tmux client
go.mod / go.sum # Go module dependencies
tests/ # Parity test harness
parity_harness.py # Main harness — starts both servers, runs scenarios, compares DBs
parity/
test_scenarios.py # API scenario tests (tags, settings, webhooks, board, etc.)
Casks/ # Homebrew Cask definition
Formula/ # Homebrew Formula
scripts/ # macOS build script
icons/ # App icons and screenshotsDevelopment Workflow
- Implement or fix features in
coral-go/. - Write or update Go unit tests.
- Run
go test ./...to ensure no regressions. - Build and manually verify as needed.
Development
Agent Docs
Agent docs live in coral-go/agent_docs/ (single source of truth) and are synced to the static embed directory at build time. The Makefile handles this automatically. Production builds sync via bundle-frontend.sh.
Building (via Makefile)
cd coral-go && make build # production build
cd coral-go && make dev # dev build (skips EULA + license)
cd coral-go && make run # dev build + run on :8420
cd coral-go && make test-server # dev build + run on :8450 (0.0.0.0)
cd coral-go && make test # run all testsAll Makefile targets sync agent_docs automatically before building.
Building (manual)
cd coral-go && go build -o coral ./cmd/coral/Dev Mode
cd coral-go && go build -tags dev -o coral ./cmd/coral/ && ./coral --host 127.0.0.1 --port 8420The dev build tag skips EULA and license validation.
Test Server
To spin up a test server for manual verification, use 0.0.0.0 (not 127.0.0.1) so it's reachable from other machines, and a non-default port to avoid conflicts.
CRITICAL: Always use a separate data directory for test servers. The production Coral instance uses ~/.coral/ — running a test server against the same database will corrupt live sessions, kill running agents, and lose state. Use CORAL_DATA_DIR to isolate test data:
cd coral-go && go build -tags dev -o coral ./cmd/coral/ && CORAL_DATA_DIR=/tmp/coral-test ./coral --host 0.0.0.0 --port 8450Database
- SQLite with WAL mode, stored at
~/.coral/sessions.db - Message board DB at
~/.coral/messageboard.db - Never run test servers against the production
~/.coral/directory. Always setCORAL_DATA_DIRto a temp/test path when running manual test servers or integration tests that start a full server process.
Releases
Local Builds
Build installers for each platform from any OS:
./installers/build-windows.sh 0.7.0 # → installers/dist/coral-windows-amd64-0.7.0.zip
./installers/build-macos.sh 0.7.0 # → installers/dist/Coral-0.7.0.dmg (or .tar.gz on Linux)
./installers/build-linux.sh 0.7.0 # → installers/dist/coral-linux-amd64-0.7.0.tar.gzTagged Release (CI)
Pushing a tag triggers the GitHub Actions release workflow. Tag suffixes control build behavior:
Build Tiers
Tiers are selected via compile-time build tags (not ldflags):
| Tier | Build Tag | EULA | License | Demo Limits |
| Prod | (default) | Required | Required | None (LS plan controls) |
| Dev | -tags dev | Skipped | Skipped | None |
| Beta | -tags beta | Required | Skipped | 2 teams / 8 agents |
Tag Naming Conventions
| Tag Format | Tier | Windows Build |
v0.x.x | prod | skipped |
v0.x.x-dev | dev | skipped |
v0.x.x-beta | beta | skipped |
v0.x.x-windows | prod | built |
v0.x.x-all | prod | built |
Suffixes can be combined, e.g. v0.x.x-dev-windows builds Windows with dev tier.
-dev: Dev tier build tag. Skips EULA and license. Good for internal testing.-beta/-forDropbox: Beta tier build tag. Skips license, enforces demo limits (max 2 teams, max 8 agents).-windows/-all: Includes the Windows build (skipped by default to save CI compute).
Local builds with tiers
# Dev build (no EULA, no license)
CORAL_TIER=dev ./installers/build-macos.sh 0.10.15
# Beta build (demo limits, no license)
CORAL_TIER=beta ./installers/build-macos.sh 0.10.15
# Prod build (default — license required)
./installers/build-macos.sh 0.10.15Example release flow
# Dev build (no license, no limits, no Windows)
git tag v0.10.15-dev
git push origin main --tags
# Beta build for partners (no license, demo limits)
git tag v0.10.15-beta
git push origin main --tags
# Full production release (all platforms)
git tag v0.10.15-all
git push origin main --tags
# Create the GitHub Release (uploads happen automatically)
gh release create v0.10.15 --title "v0.10.15" --generate-notesThe workflow (.github/workflows/release.yml) produces:
- Linux:
coral-linux-amd64-<version>.tar.gz - Windows (when included):
Coral-<version>-x64.msi+Coral-<version>-x64-portable.zip - macOS:
Coral.dmg(universal binary, signed + notarized if certs configured)
Required GitHub Secrets (for signing)
- macOS:
MACOS_CERTIFICATE,MACOS_CERTIFICATE_PWD,MACOS_SIGNING_IDENTITY,APPLE_ID,APPLE_TEAM_ID,APPLE_APP_PASSWORD - Windows:
WINDOWS_CERTIFICATE,WINDOWS_CERTIFICATE_PWD
Signing is optional — builds succeed without secrets, just unsigned.
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.

