Skip to content

Commit 1d67d44

Browse files
committed
Update readme.source.md
1 parent 5c0948a commit 1d67d44

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

readme.source.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,21 @@ snippet: BuildServerDetectorProps
8787
snippet: BuildServerDetectorDetectedOverride
8888

8989

90-
## AiCliDetector
90+
## Automatic AI detection
9191

92-
`AiCliDetector.Detected` returns true if the current code is running in an AI-powered CLI environment.
92+
DiffEngine automatically detects when it is running inside an AI-powered CLI environment and disables the diff tool launch. This means no `DiffEngine_Disabled=true` environment variable is required when running tests from within an AI CLI — it is detected and handled automatically.
9393

94-
Supports:
94+
Supported AI CLIs:
9595

9696
* [GitHub Copilot CLI](https://docs.github.com/en/copilot/using-github-copilot/using-github-copilot-in-the-command-line)
9797
* [Aider](https://aider.chat/docs/config/dotenv.html)
9898
* [Claude Code](https://docs.anthropic.com/en/docs/build-with-claude/claude-cli)
9999

100+
101+
### Programmatic usage
102+
103+
`AiCliDetector.Detected` returns true if the current code is running in an AI-powered CLI environment.
104+
100105
There are also individual properties to check for each specific AI CLI
101106

102107
snippet: AiCliDetectorProps

0 commit comments

Comments
 (0)