Repository navigation
Conversation
…requests With use_subscription, every request ran a full Claude Code agent in the shell's current directory: a project's .claude/settings.json hooks and .mcp.json servers ran too, even in a folder never trusted, and its CLAUDE.md and the user's plugins were loaded. fish-ai only needs a text reply. CLAUDE_CODE_SAFE_MODE turns customizations off; Claude Code before 2.1.169 ignores it.
|
Hello @tsvikas. Thank you for contributing to this project! 💛 I'll review your changes when time permits. By contributing, you agree to the Developer Certificate of Origin and your code being licensed under the MIT license. If this sounds like greek, please spend a minute or two to read through these documents. |
tsvikas
marked this pull request as ready for review
November 20, 2026 03:38
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.
Fixes #913
With
use_subscription = True, the engine runsclaude -p <messages>in the shell's current directory, so a project's.claude/settings.jsonhooks and.mcp.jsonservers run, and CLAUDE.md files, plugins and all tools load.This runs it with
--tools ""and withCLAUDE_CODE_SAFE_MODE=1in its environment. The environment variable instead of--safe-mode, so a Claude Code older than 2.1.169 (which ignores it) still works.Tested:
.claude/settings.jsonhas aUserPromptSubmithook, the old command ran the hook and the new one didn't; the reply came back in about 2 s withmodel = haiku, and also withoutmodel.mainand passes here, andengine_test.pypasses.Notes:
bump-versionpost-commit hook needswhat-bump, which I don't have.supported-versions-checkskipped (it needsyq); this change doesn't touch the supported Python versions.🤖 Generated with Claude Code