@kody-w/twin_agent v1.2.0 — chat action + auto-seed memory agents on summon#74
Open
kody-w wants to merge 1 commit into
Open
@kody-w/twin_agent v1.2.0 — chat action + auto-seed memory agents on summon#74kody-w wants to merge 1 commit into
kody-w wants to merge 1 commit into
Conversation
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
Bumps
@kody-w/twin_agentfrom 1.1.0 → 1.2.0 with two structural improvements that have already proven themselves on a local install while wiring an autonomous "kaizen monk" twin against the rappterverse repo.1. New
chataction — twins can talk to twinsForwards
messageto the twin's running/chatendpoint, returns itsresponse(and a brief tail ofagent_logs), and surfaces the newsession_idfor follow-up turns.This closes a real gap: previously the only way for one brainstem to talk to another twin's brainstem was custom HTTP code in a separate agent. Now the natural Twin abstraction owns the full lifecycle — including conversation. Parent ↔ twin and twin ↔ twin become one tool call.
Failure modes are explicit (twin not running → "boot it first", connection error → labelled, non-JSON reply → labelled). 240s timeout to allow LLM round-trips.
2. Auto-seed memory agents on
summonEvery newly summoned twin now ships with three canonical agents copied from the parent brainstem install into the twin's
agents/directory:basic_agent.pycontext_memory_agent.pymanage_memory_agent.pySo a twin is born with continuity. Previously, freshly summoned twins booted with
agents=[]— noContextMemory, noManageMemory— and their first breath had no past. Operators were silently copying memory agents in by hand to make twins useful. This commit makes that the default.The summon return string now includes a
Seeded agents:line (and a⚠ missing:line if anything didn't make it across), so it's obvious at-a-glance.A new helper
_detect_brainstem_dir()walks up from__file__to find the brainstem source dir (with a~/.brainstem/src/rapp_brainstemfallback), so the seeding works whether Twin is installed via the rapp-installer or sideloaded into a project-local install.Compatibility
hatch,boot,stop,list,update_identity,update_soul,lay_egg,overview,inspect,eggs,history,lineage) behave identically.urllib.request(already imported) carries the chat call.chat,memory).Verification
python -m py_compile✓/Users/kodywildfeuer/Documents/GitHub/rappterverse/.brainstem/src/rapp_brainstem/agents/twin_agent.py, parent brainstem reloaded,Twinagent shows up at/agents.kaizen-monk, rappidaf4bd4d2-…) successfully summoned with auto-seeded memory agents; restart confirmedagents=["ContextMemory","ManageMemory","RappterverseWorld"].chataction successfully bridges parent brainstem → kaizen-monk twin via plain English (Twin(action="chat", rappid_uuid=…, message="take one breath")).Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com