Add Claude CLI runtime and Kanban auth preflight - #31461
Closed
stefan-wisbric wants to merge 4 commits into
Closed
Conversation
Collaborator
|
Supersedes #27787 (same Claude CLI runtime feature, with additional Kanban auth preflight). Same core file changes plus kanban_db.py additions. |
added 3 commits
May 25, 2026 08:00
Add an opt-in claude_cli runtime that routes whole Hermes turns through the local Claude Code CLI without requiring Anthropic API or OAuth credentials. Document provider: claude-cli, model.claude_runtime: cli, and HERMES_CLAUDE_CLI_* configuration, and cover runtime resolution, status output, Kanban worker MCP wiring, and the prose-only Kanban fallback with tests.
Check Claude CLI profile runtime health before claiming ready or review tasks. If the CLI is logged out or otherwise unavailable, leave the task in its current column, emit a spawn_preflight_failed event, and report the skip in DispatchResult so the dispatcher can retry automatically after auth is fixed.
Stop telling workers to sticky-block implementation tasks for code review. Review-required block attempts now return an actionable tool error that tells the worker to create or use a review child and complete the implementation handoff, avoiding dependency deadlocks where review children wait on blocked parents.
stefan-wisbric
force-pushed
the
fix/claude-cli-runtime-current-preflight
branch
from
May 24, 2026 20:00
772b1ed to
f469057
Compare
Make Claude CLI profile preflight run a tiny inference smoke test so stale subscription credentials are caught before a task is claimed. Also skip force-loaded per-task skills that do not resolve in the worker profile, preventing review dispatch from crashing when sdlc-review is absent.
This was referenced May 27, 2026
Author
|
Closing for now. The Claude CLI subscription runtime is maintained on our fork (https://github.com/stefan-wisbric/hermes-agent). We've since moved the auth preflight out of Hermes core into a thin external wrapper so it survives upgrades, so this PR's in-core preflight no longer matches our setup. Glad to re-propose a current, reconciled version if upstream is interested in a logged-in-Claude-CLI runtime. |
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
Why
Claude CLI auth is managed by Claude Code, separately from Hermes provider auth and Codex app-server auth. When the local Claude CLI token goes stale, Kanban workers currently claim the task and then block it with a 401 external-runtime-prose failure. Also, implementation workers were instructed to block with review-required, which can deadlock graphs where a review child waits for the implementation parent. This keeps unhealthy Claude CLI profiles unclaimed, makes review children the explicit gate, and avoids worker startup crashes from missing profile-local skills.
Verification