Configure Tembo with project-specific context and conventions.A configuration file is essentially a set of instructions that Tembo reads to understand your project’s context, conventions, and requirements when solving tasks and generating pull requests.
Tembo supports configuration files at the top level of your repository that act as project-level instructions included in all interactions with the agent. Multiple file names are supported for compatibility with other agents, but the first file that matches in this list will be used:
Document frequently used commands that Tembo should know about:
Copy
Ask AI
# Build commands- npm run build: Build the project- npm run dev: Start development server- npm run test: Run test suite- npm run lint: Run linter and fix issues
# Code style- Use TypeScript interfaces instead of any types- Prefer functional components over class components- Use async/await instead of Promise chains- Import statements should be sorted alphabetically- Use descriptive variable names# File naming conventions- Components: PascalCase (e.g., UserProfile.tsx)- Utilities: camelCase (e.g., formatDate.ts)- Constants: UPPER_SNAKE_CASE (e.g., API_ENDPOINTS.ts)
# Architecture principles- Follow Clean Architecture patterns- Separate business logic from UI components- Use dependency injection for services- Keep components focused on single responsibilities# Directory structure- `/src/components` - Reusable UI components- `/src/services` - Business logic and API calls- `/src/utils` - Helper functions and utilities- `/src/types` - TypeScript type definitions
# Testing guidelines- Write unit tests for all business logic- Use React Testing Library for component tests- Mock external API calls in tests- Aim for 80%+ code coverage- Include error handling test cases# Test file naming- Unit tests: `*.test.ts`- Integration tests: `*.integration.test.ts`- Component tests: `*.component.test.tsx`
# Documentation- Add JSDoc comments to all public functions- Update README.md when adding new features- Document API endpoints in OpenAPI format- Include examples in function documentation# Comment guidelines- Explain why, not what- Use TODO comments for future improvements- Remove commented-out code before committing
# Error handling- Use custom error classes for different error types- Log errors with appropriate severity levels- Provide user-friendly error messages- Include error boundaries in React components- Handle async errors with try-catch blocks