feat(qoder-cn): hooks support - #145
Merged
Merged
Conversation
Move ClaudeAdapter's settings.json hooks reader into a crate-level read_claude_like_hooks() so other agents with the same format can reuse it. Behaviour is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Qoder CN keeps hooks under the `hooks` key of settings.json (user) and .qoder/settings.json (project), in the same shape and with the same event names as Claude Code. Reuse the Claude parser and event table. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Tick the Hooks column for Qoder CN and drop the Devin Desktop sentence from the support matrix footnote in both READMEs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Sep 25, 2026
Merged
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.
Closes #142
Adds hooks support for Qoder CN, the last piece of the first-PR scope agreed in #142.
What
hookskey ofsettings.json(user) and.qoder/settings.json(project). The shape and event names match Claude Code (hooks reference), so the adapter reuses the Claude parser and event table.read_claude_like_hooks(). Claude's behaviour is unchanged.Checked against Qoder CLI CN 1.1.63
/hookspanel lists hooks written by HarnessKit, with the right event and matcher.PreToolUse/Bashhook installed from HarnessKit fires when Qoder runs Bash.UserPromptSubmithook fires too. Folder trust does not gate it by default: the runtime readssecurity.folderTrust.enabled ?? false.settings.json, keepingmcpServersand other keys.Testing
cargo test -p hk-core(709),npm test(312), biome and tsc pass.Follow-ups still open from #142
~/.qoder), left for someone who can verify it on a real install..qoder/settings.json,.mcp.jsonand.qoder/settings.local.jsonin Qoder's documented order.QODERCN_CONFIG_DIR, which overrides~/.qoder-cn.qoder-knowledge/, as a config-file category on the agent page.🤖 Generated with Claude Code