A cross-agent memory layer. Single Go binary with built-in MCP server, SQLite storage, and local embeddings via Ollama.
License: BSL-1.1
go build ./cmd/same # build the binary
go test ./... # run all tests
golangci-lint run # lintRequires Go 1.25+. Requires CGO (SQLite). Produces a single static binary.
| Directory | Purpose |
|---|---|
cmd/same/ |
CLI entrypoint |
internal/ |
Core packages (storage, embeddings, MCP server, graph, guard) |
npm/ |
npm wrapper for npx same distribution |
make security-testCovers prompt injection, MCP input validation, path traversal, PII detection, and plugin sandboxing. New MCP handlers must sanitize output through neutralizeTags().
- Standard Go conventions (
gofmt,go vet) - Conventional commits (e.g.,
feat:,fix:,docs:) - Keep commit messages concise (one line summary, optional body)
- Fork and create a feature branch
- Ensure
go test ./...passes - Ensure
golangci-lint runis clean - Open a pull request against
main