Contributing to agent-express
April 6, 2026 · View on GitHub
Thank you for your interest in contributing! This guide will help you get started.
Prerequisites
- Node.js 20+
- npm
Getting Started
- Fork the repository
- Clone your fork:
git clone https://github.com/agent-express-ai/agent-express.git - Install dependencies:
npm install
Development
npm run build # Build with tsup
npm test # Run tests (vitest)
npm run typecheck # Type check (tsc --noEmit)
npx eslint . # Lint
Making Changes
- Create a branch from
main:git checkout -b feat/my-feature - Make your changes
- Ensure all checks pass: build, tests, typecheck, and lint
- Commit and push your branch
Pull Request Guidelines
- Describe what changed and why
- One feature or fix per PR
- All checks must pass (tests, typecheck, lint)
- Add tests for bug fixes and new features
- Keep PRs focused and reasonably sized
Commit Messages
We follow Conventional Commits:
feat:— new featurefix:— bug fixchore:— maintenance, dependenciesdocs:— documentation onlytest:— adding or updating testsrefactor:— code change that neither fixes a bug nor adds a feature
Examples:
feat: add guard.rateLimit() middleware
fix: prevent session state mutation after close
docs: update middleware hook examples
Code Style
- Prettier handles formatting
- ESLint handles linting
- TypeScript strict mode, ESM only
- All public APIs must have TSDoc comments
Questions?
Open a GitHub Discussion or issue.