Skip to content

yb init

Create a starter configuration file with helpful comments and sensible defaults.

Terminal window
yb init [options]

The init command creates a suite.yaml file in your current directory with a fully-commented template. This is the recommended way to start a new youBencha evaluation project.

The generated template includes:

  • Repository configuration with placeholders
  • Agent setup with example prompts
  • Common evaluator configurations
  • Helpful comments explaining each field
OptionShortTypeDefaultDescription
--force-fflagfalseOverwrite existing suite.yaml if present
--template-tstringdefaultTemplate to use (default, minimal, advanced)
--output-ostringsuite.yamlOutput file path
--help-hflag-Show help message

Create a new suite configuration in the current directory:

Terminal
yb init

Replace an existing configuration file:

Terminal
yb init --force

Create a minimal configuration without comments:

Terminal
yb init --template minimal

Create configuration in a specific location:

Terminal
yb init --output configs/my-evaluation.yaml

Create a minimal config, overwriting if exists:

Terminal
yb init -f -t minimal -o test-suite.yaml
suite.yaml
# youBencha Evaluation Suite Configuration
# See https://youbencha.dev/docs/configuration for full documentation
# Repository to evaluate
repo: https://github.com/youbencha/hello-world.git
branch: main
# AI Agent Configuration
agent:
type: copilot-cli
config:
prompt: "Add a comment explaining what this repo is about"
# Evaluation Criteria
evaluators:
- name: git-diff
# No additional config needed for basic diff analysis
- name: agentic-judge
config:
type: copilot-cli
assertions:
task_completed: "The task was completed successfully. Score 1 if yes, 0 if no."
CodeMeaning
0Configuration file created successfully
1File already exists (use --force to overwrite)
2Write permission denied
  1. Run yb init to create the configuration file
  2. Edit suite.yaml to configure your evaluation
  3. Run yb validate -c suite.yaml to check your configuration
  4. Run yb run -c suite.yaml to execute the evaluation