Chen Pilot is an intelligent AI agent that enables seamless interaction with blockchain networks and DeFi protocols through natural language commands. This agent provides a unified interface for managing Bitcoin wallets, Stellar operations, cross-chain swaps, and DeFi lending/borrowing activities.
- Node.js 18+
- PostgreSQL database
- Environment variables configured (see Configuration section)
git clone <repository-url>
cd chenpilot-experimentalpnpm installcp .env.example .env
# Edit .env with your configurationnpm run migration:runnpm run devThis project uses Husky, lint-staged, and commitlint to enforce code quality and commit message standards.
-
pre-commit
- Runs ESLint with auto-fix
- Runs Prettier formatting
- Blocks commits if checks fail
-
commit-msg
- Validates commit messages using Commitlint
- Enforces Conventional Commits format
- Blocks commits with invalid commit messages
This setup helps maintain consistent code style and a clean, readable git history.
Git hooks are enabled automatically after installing dependencies:
pnpm installIf hooks do not run for any reason, re-enable Husky manually:
pnpm exec husky installpnpm exec lint-stagedpnpm exec commitlint --edit $1{
"**/*.{ts,tsx}": ["eslint --fix", "prettier --write"]
}Commit messages must follow the Conventional Commits specification.
Examples of valid commit messages:
feat: add cross-chain swap workflow
fix: handle null wallet address
chore: update dependencies
docs: update README
Hooks can be skipped in exceptional cases:
git commit --no-verify
⚠️ Use sparingly. CI checks will still run and invalid commits may be rejected.
The agent uses an intelligent workflow system that:
- Parses Intent: Understands natural language commands
- Plans Workflow: Creates step-by-step execution plans
- Executes Tools: Runs appropriate tools in sequence
- Manages State: Tracks operation status and results
- Provides Feedback: Returns structured responses
- Fork the repository
- Create a feature branch
- Make your changes
- Ensure pre-commit and commit message checks pass
- Add tests if applicable
- Submit a pull request
This project is licensed under the ISC License.
For support and questions:
- Create an issue in the repository
- Check the API health endpoints
- Review the logs for error details
Chen Pilot — Your intelligent gateway to cross-chain DeFi operations