Skip to content

FEATURE: risk appetite setting to run commands without confirmation#26

Merged
merefield merged 2 commits into
mainfrom
risk_appetite
Apr 30, 2026
Merged

FEATURE: risk appetite setting to run commands without confirmation#26
merefield merged 2 commits into
mainfrom
risk_appetite

Conversation

@merefield

@merefield merefield commented Apr 30, 2026

Copy link
Copy Markdown
Owner
  • clai already assesses command risk
  • choose for lower risk commands to run without review/confirmation

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a configurable “risk appetite” setting to allow CLAI to automatically execute lower-risk model-suggested commands without prompting, while preserving confirmation for higher-risk commands.

Changes:

  • Introduces risk_appetite config (default 0) with setup-wizard support and normalization.
  • Adds execution gating logic to skip confirmation prompts based on command risk + risk_appetite.
  • Updates README documentation and expands smoke tests to cover auto-run vs prompt behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
clai.sh Adds risk_appetite config handling, setup prompt, and confirmation-skipping logic for lower-risk commands.
test/smoke.bats Updates setup-wizard IO expectations and adds new smoke tests validating risk-appetite behavior.
README.md Documents the new risk_appetite setting and how it affects confirmation flow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread clai.sh
@merefield merefield merged commit 4c19a6f into main Apr 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants