- Support OpenAI, Anthropic, Google, etc.
- Support custom model.
- Support custom tools.
- Support interactive mode.
- Support cursor rule file.
- Support Model Context Protocol.
- Best practice about react, node, tooling and etc built-in.
$ npx @umijs/ai [options]
-p, --prompt
: The prompt to use.-m, --model
: The model to use.-t, --tools
: The tools to use.-c, --context
: The context to use.-f, --files
: The files to use, supports glob pattern.
$ npx @umijs/ai -p "Create a new tnf project"
$ npx @umijs/ai -p "Write tests" -f "src/foo.ts"
$ npx @umijs/ai -p "Add prettier"
$ npx @umijs/ai -p "Add page foo"
$ npx @umijs/ai -p "Install missing dependencies" -f "src/foo.ts"
This project is inspired by:
- cali, inspired the first version of the project.