Thanks for your interest in contributing!
# Clone the repo
git clone https://github.com/deiviuds/opencode-brain.git
cd opencode-brain
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm testopencode-brain/
├── src/
│ ├── core/ # Mind engine
│ ├── hooks/ # OpenCode plugin hooks
│ ├── tools/ # Custom tools
│ ├── utils/ # Helpers
│ └── types.ts # Type definitions
├── .opencode/
│ ├── commands/ # Slash commands
│ └── skills/ # Skills (optional)
└── dist/ # Built output
- session.created: Initializes Mind instance when OpenCode starts
- session.idle: Saves session summary when OpenCode session ends
- tool.executed: Captures observations from tool usage
- Fork the repo
- Create a branch:
git checkout -b my-feature - Make your changes
- Run tests:
npm test - Push and open a PR
Releases are automated via GitHub Actions. To release:
- Update version in
package.json - Create a tag:
git tag v1.0.1 - Push the tag:
git push origin v1.0.1
The CI will build and publish to npm automatically.
Open an issue or start a discussion on GitHub.