AI Power: Improve & Create

Too lazy to write bash? Too lazy to look up arguments? Good. Let the AI do it. parseArger now includes AI-powered commands to standardise and improve your scripts.

Improve

parseArger improve is your intelligent assistant for existing scripts. It can add arguments, refactor code, or both, while keeping your sanity intact.

>
parseArger improve ./script.sh "add a debug flag and refactor the main loop"

How it works

  • Intelligent Classification: It figures out if you want to change arguments (`parse` mode), implementation (`script` mode), or both.
  • Safe Execution: AI generates the command, but YOU validate it. We check for dangerous characters, correct targets, and format before running anything.
  • Context Aware: It reads your script (with your permission) to understand what's already there so it doesn't hallucinate non-existent variables.

Options

  • --dry-run: See what the AI would do without actually touching your precious code.
  • --model: Specify the AI model (default: moonshotai/kimi-k2.5).
  • --api-key: Pass your API key explicitly if not in env.

Create

parseArger create generates a brand new script from a natural language description.

>
parseArger create --output my-tool "a cli tool that optimizes png images using ffmpeg"

It handles the boilerplate, the argument parsing setup, and even writes a first pass at the implementation logic.