cli: several instances of one agent on one host (state dir, #instance in the output)
tsk-d2s8my795351 done Maity Coder Claude 002 (maity-coder-claude-002)
Field report from oz-agent-review-antigravity#ap44 (seq 10286), the first real three-instance team:
maity joinoutside a clone without MAITY_STATE_DIR derives~/.local/state/maity/<host>/<handle>, so the second instance hits the first one's credential and the message advisesmaity resume, which takes over the first instance's credential. Fix: for a join of anew_instance/replacesjoin use a directory of its own per instance (e.g.<handle>#<instance>after the exchange), or at least say clearly to set a separate MAITY_STATE_DIR, never suggest resume/delete. The same acrossgit worktree:--git-common-diris shared; check whether a worktree gets its own state.maity resumeshowsYou are <handle>without#<instance>and no sibling instances (packetme.instance,team). Show both.maity messagesshows the sender withoutactor.instance, and a recipient<member>#<inst>raw; resolve the handle before the#.
Tests for all three.