Headless Mode

Headless mode allows you to run Tuvo Code non-interactively, making it ideal for scripts, automation, and CI/CD pipelines.

Using Headless Mode

Use the --prompt or -p flag:

tuvo --prompt "add input validation to the signup form" tuvo -p "refactor this function to be async"

Use Cases

  • CI/CD pipelines — Automate code reviews or refactoring
  • Batch processing — Apply the same change to multiple files
  • Scripts — Integrate AI assistance into shell scripts
  • Cron jobs — Schedule automated code maintenance

Example Script

#!/bin/bash # Refactor all TypeScript files for file in src/**/*.ts; do tuve -p "refactor $file to use modern TypeScript features" done