Documentation Index
Fetch the complete documentation index at: https://docs.getbifrost.ai/llms.txt
Use this file to discover all available pages before exploring further.
Before You Start
- Create an issue first (if one doesn’t exist) - Discuss the change with the maintainers
- Fork the repository and create a feature branch
- Set up your development environment using these instructions
- Run tests locally to ensure everything works
Commit Message Format
All commits should follow a standardized format. For each package/directory you modify, include a separate commit message line describing the change in that package.Format
Types
- feat - New feature
- fix - Bug fix
- refactor - Code refactoring (no feature change, no bug fix)
- docs - Documentation changes
- test - Test changes
- chore - Build, dependencies, tooling changes
- perf - Performance improvements
Examples
Single Package Change:All Packages Modified Should Be Listed
When creating a commit, always mention which packages/components are affected:Maintaining Changelogs
For each package you modify, update the correspondingchangelog.md file with your changes. Changelog entries are used to generate release notes and communicate changes to users.
Changelog File Locations
Each package that receives updates should have achangelog.md file:
core/changelog.md- Core package changesframework/changelog.md- Framework changestransports/changelog.md- Transport layer changesplugins/{plugin-name}/changelog.md- Specific plugin changes
Changelog Entry Format
Each changelog entry follows this exact format:- Type: One of
feat,fix,refactor,docs,test,chore, orperf - Description: Clear, concise description (under 100 characters)
- Author: Your GitHub profile link (recommended)
Change Types Reference
| Type | Usage | Example |
|---|---|---|
| feat | New feature | [feat]: add exponential backoff retry mechanism |
| fix | Bug fix | [fix]: handle connection timeout in MCP client |
| refactor | Code refactoring (no behavior change) | [refactor]: simplify model caching |
| docs | Documentation updates | [docs]: clarify semantic caching behavior |
| test | Test additions/modifications | [test]: add regression tests for retry logic |
| chore | Build, dependencies, tooling | [chore]: upgrade dependencies to latest versions |
| perf | Performance improvements | [perf]: optimize model lookup to O(1) |
Changelog Examples
Good Examples:How to Add Changelog Entries
- Edit the
changelog.mdfile in the affected package - Add new entry at the TOP of the file (most recent first)
- Follow the exact format:
[type]: description [@name](https://github.com/user) - Include your author link (optional but recommended)
Multiple Package Changes
When your PR affects multiple packages, add entries to each package’schangelog.md:
Example Multi-Package Changelog:
core/changelog.md:
What to Include in Changelog
✅ Do include:- Bug fixes that affect users
- New features
- Breaking changes
- Performance improvements
- Significant refactoring
- Documentation improvements
- Internal code cleanup with no user impact
- Typo fixes in comments only
- Build system changes (unless significant)
- Minor test-only changes
Changelog Best Practices
- Add entries at the TOP of the
changelog.mdfile (most recent first) - One entry per logical change - Don’t combine unrelated changes
- Keep descriptions concise - Under 100 characters
- Use consistent format -
[type]: description - Include your GitHub link - Helps recognize contributors
- Update all affected package changelogs - Don’t forget secondary packages
- Add changelog entry with your commit - Don’t wait until the end
Format Consistency Rules
DO’s:- ✅ Use square brackets:
[feat] - ✅ Use colon separator:
[feat]: - ✅ Start with lowercase (unless proper noun)
- ✅ Be specific and concise
- ✅ Include GitHub profile link
- ✅ Add new entries at the top
- ❌ Don’t use parentheses:
(feat)or braces{feat} - ❌ Don’t use multiple spaces
- ❌ Don’t mix formats in the same file
- ❌ Don’t add entries at the bottom
- ❌ Don’t use vague descriptions
Complete PR Example with Changelogs
If your PR adds retry logic to multiple packages:Changelog Review Checklist
Before submitting a PR, verify:- All packages modified have changelog entries
- Format is correct:
[type]: description [@name](https://github.com/user) - Entries are added at TOP of the file
- Author GitHub link is included
- Description is clear and concise (under 100 chars)
- Type is one of: feat, fix, refactor, docs, test, chore, perf
- Entries are added with the commit (not after)
Pull Request Title
Keep PR titles concise and descriptive, following the same pattern:[feat]: Add rate limiting to governance plugin[fix]: Resolve deadlock in MCP retry logic[refactor]: Simplify model caching mechanism[docs]: Update contribution guidelines for commit messages
Pull Request Description
Use the following template for your PR description:Best Practices
1. Keep PRs Focused
- One feature or fix per PR when possible
- If multiple related changes, group them logically by package
- Avoid mixing refactoring with feature changes
2. Commit Messages Matter
❌ Bad:3. Include All Affected Packages
Always explicitly list which packages/directories are modified:4. Test Thoroughly
Before opening a PR:5. Small, Reviewable PRs
- Aim for <400 lines changed per PR
- If larger, break into logical commits
- Each commit should be independently reviewable
6. Update Documentation
- Update relevant
.mdxfiles in/docs - Add comments for complex logic
- Update README.md if behavior changes
Code Review Checklist
Before requesting review, ensure: ✅ All commits follow[type]: description format
✅ All affected packages are explicitly mentioned
✅ No merge conflicts
✅ All tests pass (make test-all)
✅ Code is properly formatted (make fmt)
✅ No linting issues (make lint)
✅ Documentation is updated
✅ PR description is clear and complete
During Code Review
- Respond to feedback promptly
- Push new commits for requested changes (don’t force-push to avoid confusion)
- Mark conversations as resolved when addressed
- Ask for clarification if feedback is unclear
Merging
Once approved:- The maintainer will handle the merge
- Your commits will be preserved in the history
- Ensure your branch is up-to-date with
mainbefore final approval
Common Pitfalls to Avoid
- ❌ Vague commit messages - Always be specific about what changed
- ❌ Missing package information - Always list affected packages
- ❌ Mixing concerns - Keep commits focused
- ❌ Not running tests - Test locally before opening PR
- ❌ Large PRs - Break into smaller, reviewable chunks
- ❌ Not updating docs - If behavior changes, update documentation
Examples of Good Commits
Example 1: Provider Fix
Example 2: Plugin Development
Example 3: Core Refactoring
Need Help?
- 📚 See Code Conventions for style guidelines
- 🏗️ Check Architecture Docs to understand the codebase structure
- 💬 Ask in Discord if unsure about the process
- ❓ Refer to the Changelog Review Checklist above before submitting

