Repository navigation
feat(flags): add the Code Mode flag - #794
Merged
Merged
Conversation
Keep Code Mode off by default. Adopt an unclaimed on value and preserve other values unless the write explicitly turns the flag on. Refs #792 (feat/code-mode-direct)
Move proxy URL classification into core. Give Code Mode one read-only source for local signals, refusals and warnings. Keep the existing proxy command interface. Task: feat/code-mode-direct (phase 2) Refs #792
Refuse off-to-on changes while the proxy is on. Show local blockers after a successful write and in the flag tables without extra writes. Refs #792 Task: feat/code-mode-direct
Refuse proxy enable before it writes or starts the relay when Code Mode is on. Show the shared blocker warnings in proxy status without writes. Refs #792 Task: feat/code-mode-direct
Use the final proxy state and flag record so init does not warn about a proxy that failed preflight. Keep both settings when a conflict remains. Task: feat/code-mode-direct Refs #792
List the blockers and the user settings rules. Explain why Code Mode and the Devflow proxy cannot run in the same session. Task: feat/code-mode-direct Refs: #792
Use the non-hoisted call so the cleanup runs after the test. Task: feat/code-mode-direct
Check that CLI and TUI enables leave both files unchanged when Devflow cannot read the settings env. Check that CLI re-enable succeeds with a warning when Code Mode and the proxy are both on. Task: resolve-batch-a
Use the same settings limit for status and enable. Task: resolve-batch-c
Explain why a file close error gives an unreadable result. Task: resolve-batch-c
State which rules and hooks apply to each tool call. Task: resolve-batch-c
Check that a file at a directory path does not count as absent. Check the fixed proxy errors and the Code Mode message text. Task: resolve-batch-b
Owner
Author
Code Review — Cycle 1Full summary withheld (public repository).
Full report: .devflow/docs/reviews/feat-code-mode-direct/2026-11-19_0242/post-review-summary.md (not committed; ask the author) Posted by devflow · cycle 1 |
Owner
Author
Resolution SummaryFull summary withheld (public repository).
Full report: .devflow/docs/reviews/feat-code-mode-direct/2026-11-19_0242/resolution-summary.md (not committed; ask the author) Posted by devflow |
Owner
Author
Test-plan evidenceHead: 4afd1e2
Review, cycle 2 (security, testing, reliability)
Resolution, cycle 2
This comment is edited in place when the head changes. |
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
Test that the reader skips the read and closes the handle if it exceeds the limit. Test that a failed close discards the bytes. Task: resolve-b
Use the fixed parse error for non-object proxy state. Keep default values for missing or invalid object fields. Task: resolve-c
Leave both files unchanged if the flags command cannot read user settings. Keep flag writes that do not turn Code Mode on independent of its signal check. Point users to their Claude Code user settings when the check fails. Task: resolve-a
# Conflicts: # CHANGELOG.md
Merged
dean0x
added a commit
that referenced
this pull request
Nov 24, 2026
## Summary This PR sets the version to 3.21.0 and moves the `[Unreleased]` notes to the 3.21.0 section. After the merge, a `v3.21.0` tag on the merge commit starts the release workflow. ## Changes - `package.json` and `package-lock.json`: version 3.20.0 to 3.21.0. - `CHANGELOG.md`: new `## [3.21.0] - 2026-11-24` section, new empty `[Unreleased]` section, and the 3.21.0 compare link. - `CHANGELOG.md`: the `[Unreleased]` compare link now starts at `v3.21.0`. It started at `v3.8.0` before. ## Shipped in 3.21.0 - #794: Code Mode flag (closes #792). - #810: week forecast in the status line (closes #805). - #811: working memory is opt-in, and the note has an 8 KB limit (closes #807). - #809: acceptance criteria under level 2 to 4 headings (closes #808). ## Breaking Changes None. Working memory is off by default for new installs. Existing installs keep their choice. `devflow memory --enable` turns it on. ## Testing - `npm run build`: pass. - `npm run test`: 417 files, 20084 passed, 8 skipped, 0 failed. - `npm run test:integration`: 5 files, 55 passed. - `npm run version:bump -- 3.21.0` a second time changes no file. - The tests ran on the base commit c8282b1. This PR changes only the version and the changelog.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Devflow proxy sets a base URL in user settings, so Claude Code's experimental Code Mode cannot start, and devflow has no switch for Code Mode. This PR adds a
code-modeflag, off by default. With the flag on, new sessions use Code Mode and talk to Anthropic directly.Changes
code-mode(devflow flags --enable code-mode), off by default. With it on, new sessions use Code Mode and talk to Anthropic directly.code-modeand the Devflow proxy refuse each other. Each enable stops and names the command that turns the other off.disable-nonessential-trafficis on).CLAUDE_CODE_EXPERIMENTAL_CODE_MODEvalue that the user set stays in place. Devflow removes only the value"1"that it writes.Breaking Changes
None expected.
Known Limits
devflow proxy --enablecannot repair drift while code-mode is on.Testing
Related Issues
Closes #792