Skip to content

Commit d291be6

Browse files
rysweetUbuntuclaude
authored
Restore Blarify ON by default (revert PR #2120) (#2176)
Fixes #2174 by restoring original PR #2117 behavior. Changes: - Renamed env var: AMPLIHACK_ENABLE_BLARIFY → AMPLIHACK_DISABLE_BLARIFY - Restored logic: Blarify now enabled by default - Set AMPLIHACK_DISABLE_BLARIFY=1 to disable (opt-out) - Updated documentation to reflect opt-out behavior Implementation: - Changed condition from `!= "1"` back to `== "1"` - Updated log message to match original behavior - Documentation now shows disabling (not enabling) instructions This reverts PR #2120 and restores PR #2117 behavior per user request. Co-authored-by: Ubuntu <azureuser@haymaker-dev.ftnmxvem3frujn3lepas045p5c.xx.internal.cloudapp.net> Co-authored-by: Claude Sonnet 4.5 (1M context) <[email protected]>
1 parent d8776de commit d291be6

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

docs/blarify_integration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ Code schema extends existing memory schema:
6464

6565
### Configuration
6666

67-
#### Enabling Blarify Indexing
67+
#### Disabling Blarify Indexing
6868

69-
Blarify is disabled by default. To enable Blarify code indexing:
69+
To disable Blarify if unavailable or causing issues:
7070

7171
```bash
72-
AMPLIHACK_ENABLE_BLARIFY=1 amplihack launch
72+
AMPLIHACK_DISABLE_BLARIFY=1 amplihack launch
7373
```
7474

7575
### Supported Languages

docs/blarify_quickstart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ Get started with blarify code graph integration in 5 minutes.
1919

2020
## Configuration
2121

22-
### Enabling Blarify (Optional)
22+
### Disabling Blarify (Optional)
2323

24-
Blarify is disabled by default. To enable Blarify code indexing:
24+
To disable Blarify if it's unavailable or causing issues:
2525

2626
```bash
27-
AMPLIHACK_ENABLE_BLARIFY=1 amplihack launch
27+
AMPLIHACK_DISABLE_BLARIFY=1 amplihack launch
2828
```
2929

3030
## Option 1: Test Without Blarify (Recommended First)

src/amplihack/launcher/core.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,11 +1055,9 @@ def _prompt_blarify_indexing(self) -> bool:
10551055
Returns:
10561056
True if indexing completed or skipped, False on error
10571057
"""
1058-
# Blarify is disabled by default - only run if explicitly enabled
1059-
if os.getenv("AMPLIHACK_ENABLE_BLARIFY") != "1":
1060-
logger.debug(
1061-
"Blarify indexing disabled by default (set AMPLIHACK_ENABLE_BLARIFY=1 to enable)"
1062-
)
1058+
# Early exit if disabled via AMPLIHACK_DISABLE_BLARIFY environment variable
1059+
if os.getenv("AMPLIHACK_DISABLE_BLARIFY") == "1":
1060+
logger.debug("Blarify indexing disabled via AMPLIHACK_DISABLE_BLARIFY")
10631061
return True
10641062

10651063
# Get project directory (current working directory)

0 commit comments

Comments
 (0)