Skip to content

Commit c6ed7d2

Browse files
committed
Docs changes
1 parent 1d67d44 commit c6ed7d2

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

readme.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ DiffEngine manages launching and cleanup of diff tools. It is designed to be use
4747
* [File type detection](#file-type-detection)
4848
* [BuildServerDetector](#buildserverdetector)
4949
* [Override in tests](#override-in-tests)
50-
* [AiCliDetector](#aiclidetector)
50+
* [Automatic AI detection](#automatic-ai-detection)
51+
* [Programmatic usage](#programmatic-usage)
5152
* [Disable for a machine/process](#disable-for-a-machineprocess)
5253
* [Disable in code](#disable-in-code)
5354
* [Icons](#icons)<!-- endToc -->
@@ -208,16 +209,21 @@ public async Task SetDetectedDoesNotLeakToOtherContexts()
208209
<!-- endSnippet -->
209210

210211

211-
## AiCliDetector
212+
## Automatic AI detection
212213

213-
`AiCliDetector.Detected` returns true if the current code is running in an AI-powered CLI environment.
214+
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.
214215

215-
Supports:
216+
Supported AI CLIs:
216217

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

222+
223+
### Programmatic usage
224+
225+
`AiCliDetector.Detected` returns true if the current code is running in an AI-powered CLI environment.
226+
221227
There are also individual properties to check for each specific AI CLI
222228

223229
<!-- snippet: AiCliDetectorProps -->

0 commit comments

Comments
 (0)