Thanks for your interest in contributing! This document provides guidelines for contributing to Engram.
- Go 1.25 or higher
- An OpenAI-compatible embeddings server (LM Studio, Ollama, ...) with a 768-dim model such as
nomic-embed-text - Git
-
Fork and clone the repository:
git clone https://github.com/OscillateLabsLLC/engram cd engram -
Install just (task runner):
# macOS brew install just # Linux cargo install just # Windows scoop install just
-
Install dependencies and build:
just setup
Or step by step:
just deps just build
-
Run tests:
just test
engram/
├── cmd/engram/ # Main application entry point
├── internal/
│ ├── db/ # DuckDB operations
│ ├── embedding/ # OpenAI-compatible embeddings client
│ ├── mcp/ # MCP server implementation
│ └── models/ # Data models
├── docs/ # Architecture and design docs
├── scripts/ # Build and test scripts
├── Dockerfile # Container image definition
├── justfile # Task runner commands
└── README.md # Project documentation
- Follow standard Go conventions
- Run
just fmtbefore committing - Use meaningful variable names
- Add comments for exported functions
- Add tests for new functionality
- Ensure all tests pass:
just test - Test cross-platform builds:
just build-all
Use conventional commit messages (release-please depends on this):
feat: add semantic search filtering by tags
fix: handle nil embedding in search results
docs: update MCP configuration examples
chore: update Go dependencies
- Create a feature branch:
git checkout -b feature/my-feature - Make your changes
- Add tests
- Run
just testandjust fmt - Commit with clear messages
- Push to your fork
- Open a pull request
- Improve vector search performance
- Add comprehensive error handling
- Implement retry logic for embedding failures
- Add integration tests
- Performance benchmarks
- OpenTelemetry observability
- HTTP transport for OpenWebUI
- Backup/restore utilities
- Memory consolidation strategies
- Admin/debugging tools
- Tutorial videos
- More usage examples
- API documentation
- Troubleshooting guide
go test ./...Requires an embeddings server running (Ollama shown; any OpenAI-compatible endpoint works):
export EMBEDDING_URL=http://localhost:11434
go test -tags=integration ./...# Start server
just dev
# In another terminal, test with MCP client
./scripts/test-mcp.sh
# Or build and run in one command
just runEpisodes are the source of truth. Any derived structures (graphs, indices) should be rebuildable from episodes.
Embeddings can fail, but writes should succeed. If embedding fails, store with NULL and retry later.
Analytical workload (time-range queries, filtering) is DuckDB's strength. Plus it's a single file, making deployment trivial.
Official MCP SDK support, fast compilation, cross-platform binaries without runtime dependencies.
- Open an issue for bugs or feature requests
- Start a discussion for architecture questions
- Check existing issues before creating new ones
Be respectful and constructive. We're all here to build something useful.
By contributing, you agree that your contributions will be licensed under the MIT License.