Skip to content

chore: disable adaptive thinking via env var#943

Open
carlos-alm wants to merge 1 commit intomainfrom
chore/disable-adaptive-thinking
Open

chore: disable adaptive thinking via env var#943
carlos-alm wants to merge 1 commit intomainfrom
chore/disable-adaptive-thinking

Conversation

@carlos-alm
Copy link
Copy Markdown
Contributor

Summary

  • Adds CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1 env var to .claude/settings.json to disable adaptive thinking in Claude Code sessions.

Test plan

  • Verify settings.json is valid JSON
  • Confirm env var is picked up in new Claude Code sessions

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Apr 16, 2026

Greptile Summary

Adds CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1 to .claude/settings.json's env block to suppress adaptive thinking in all repo-local Claude Code sessions, and adds .claude/worktrees/ to .gitignore to prevent future accidental commits of session worktree artifacts (resolving the previously flagged issue).

Confidence Score: 5/5

Safe to merge — two focused, low-risk config changes with no code impact.

Both changes are purely configuration: a one-field env var addition to settings.json and a single .gitignore line. No logic, no tests, no imports affected. The previously flagged concerns (bundled unrelated commits, worktree artifacts) are fully resolved.

No files require special attention.

Important Files Changed

Filename Overview
.claude/settings.json Adds top-level env block with CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING: "1" to disable adaptive thinking for all Claude Code sessions in this repo.
.gitignore Adds .claude/worktrees/ to prevent accidental commits of development session worktree artifacts — directly addresses previously raised review feedback.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Claude Code session starts] --> B{".claude/settings.json present?"}
    B -- Yes --> C[Load env block]
    C --> D[Set CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1]
    D --> E[Adaptive thinking disabled for session]
    B -- No --> F[Use default settings]
    F --> G[Adaptive thinking enabled by default]
Loading

Reviews (5): Last reviewed commit: "chore: disable adaptive thinking via env..." | Re-trigger Greptile

Comment on lines +1 to +10
---
name: titan-run
description: Run the full Titan Paradigm pipeline end-to-end by dispatching each phase to sub-agents with fresh context windows. Orchestrates recon → gauntlet → sync → forge → grind automatically.
argument-hint: <path (default: .)> <--skip-recon> <--skip-gauntlet> <--start-from recon|gauntlet|sync|forge|grind> <--gauntlet-batch-size 5> <--yes>
allowed-tools: Agent, Read, Bash, Glob, Write, Edit
---

# Titan RUN — End-to-End Pipeline Orchestrator

You are the **orchestrator** for the full Titan Paradigm pipeline. Your job is to dispatch each phase to a **sub-agent** (fresh context window), **validate the results**, and loop phases that require multiple invocations — all without human intervention.
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.

P1 Worktree artifacts committed to main branch

Four skill files under .claude/worktrees/adopt-dead-helpers/.claude/skills/ (titan-run, titan-grind, titan-close, titan-reset) are being committed to main. These are artifacts from the adopt-dead-helpers development session — they belong to a temporary worktree, not the canonical skill location.

The .claude/skills/ directory is the authoritative home for skills; having copies under .claude/worktrees/ means a Claude Code session running inside that worktree will pick up the local override instead of the canonical version. Over time these copies will silently diverge from the main skills.

The canonical new skills (titan-grind, updated titan-close, titan-reset) should live only at .claude/skills/, and .claude/worktrees/ should be added to .gitignore to prevent future accidental commits of development session artifacts.

Fix in Claude Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed — removed all four worktree artifact files under .claude/worktrees/adopt-dead-helpers/ and added .claude/worktrees/ to .gitignore to prevent future accidental commits of development session artifacts.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed — removed all four worktree artifact files under .claude/worktrees/adopt-dead-helpers/ and added .claude/worktrees/ to .gitignore to prevent future accidental commits of development session artifacts.

Comment thread .claude/settings.json
Comment on lines 1 to 5
{
"env": {
"CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING": "1"
},
"hooks": {
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.

P2 PR bundles six unrelated concerns

CLAUDE.md mandates "One PR = one concern." This PR's title describes only the CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING settings change, but it contains five additional unrelated commits: new /titan-grind skill, updated /titan-run//titan-close//titan-reset pipeline skills, an enhanced /architect skill with dual-lens scoring, new documentation reports, and deletion of the old architecture audit.

Each of those should be its own PR so history stays navigable and reviewers can evaluate each change in isolation.

Fix in Claude Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed — the unrelated commits (titan-grind, titan-run, architect, docs reports) were from an earlier branch that got merged into main via separate PRs. After merging main into this branch, the diff now contains only the settings.json env var change and the .gitignore addition. The PR is now single-concern as intended.

Comment thread .claude/skills/architect/SKILL.md Outdated

**F. ADR Compliance**
- Does the implementation match the decisions documented in `docs/architecture/decisions/`?
- Does the implementation match the decisions documented in `generated/architecture/decisions/`?
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.

P1 Stale path — generated/architecture/decisions/ does not exist

The path was updated to generated/architecture/decisions/ in Phase 3-F and the Audit Structure section, but the ADR files actually live at docs/architecture/decisions/ (confirmed: docs/architecture/decisions/001-dual-engine-architecture.md exists; generated/architecture/decisions/ has no files). Phase 1 Step 4 was not changed and still correctly reads docs/architecture/decisions/, leaving the skill internally inconsistent. During an audit run, Phase 3-F and the Audit Structure section will attempt to reference a directory that doesn't exist.

Suggested change
- Does the implementation match the decisions documented in `generated/architecture/decisions/`?
- Does the implementation match the decisions documented in `docs/architecture/decisions/`?

Fix in Claude Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed — all three references to generated/architecture/decisions/ in SKILL.md have been reverted to docs/architecture/decisions/. The file now has zero diff vs main, so this is fully resolved.

@carlos-alm
Copy link
Copy Markdown
Contributor Author

@greptileai

1 similar comment
@carlos-alm
Copy link
Copy Markdown
Contributor Author

@greptileai

Add CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1 to .claude/settings.json
and gitignore .claude/worktrees/ to prevent accidental commits of
development session artifacts.
@carlos-alm carlos-alm force-pushed the chore/disable-adaptive-thinking branch from 96ce00e to 397abfb Compare April 16, 2026 08:44
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.

1 participant