Skip to content

Add claude_code_chat, a resumable Claude Code session - #22

Open
lukiod wants to merge 1 commit into
mainfrom
feature/claude-code-chat
Open

Add claude_code_chat, a resumable Claude Code session#22
lukiod wants to merge 1 commit into
mainfrom
feature/claude-code-chat

Conversation

@lukiod

@lukiod lukiod commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

claude_code_delegate is one shot, run to completion, return, exit. This adds claude_code_chat, a named, resumable conversation with Claude Code, the actual subagent feel: the first message under a name starts a real session, every later message under the same name resumes it via claude --resume, tracked in a small local registry under $HERMES_HOME/claude-code-subagent/chat_sessions.json.

Also adds claude_code_sessions_list and claude_code_sessions_forget for basic hygiene.

Test plan

  • 42 tests pass, all mocking subprocess so the suite spends nothing
  • hermes plugins doctor reports no manifest drift
  • Live tested end to end across two separate hermes chat -q invocations, real cost ~$0.21: the second turn correctly recalled what the first turn had replied, proving the resume actually carries conversation state

claude_code_delegate is one shot: run to completion, return, exit.
claude_code_chat gives it the actual subagent feel the founder asked
for, a persistent conversation you keep talking to. The first message
under a name starts a real Claude Code session; every later message
under the same name resumes it via claude --resume, tracked in a
small local registry. Live tested end to end across two separate
hermes chat -q invocations: the second turn correctly recalled what
the first turn had replied.

Adds claude_code_sessions_list and claude_code_sessions_forget for
basic hygiene, plus 12 new tests covering the session registry and
the new handlers, all mocking subprocess so the suite spends nothing.
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