Repository navigation
Conversation
5 tasks done
jief123
force-pushed
the
feat/mimo-capability-gaps
branch
from
November 17, 2026 19:01
ef232f9 to
eb48fa0
Compare
jief123
force-pushed
the
feat/mimo-capability-gaps
branch
from
November 20, 2026 05:38
eb48fa0 to
bcf5b7b
Compare
jief123
force-pushed
the
feat/mimo-capability-gaps
branch
from
November 20, 2026 08:57
bcf5b7b to
c5fba02
Compare
jief123
force-pushed
the
feat/mimo-capability-gaps
branch
from
November 20, 2026 11:56
c5fba02 to
d17bf26
Compare
jief123
force-pushed
the
feat/mimo-capability-gaps
branch
from
November 20, 2026 14:29
d17bf26 to
9fd629c
Compare
A MiMo Code chat gets the Crew features its harness can carry, each a positive ACP_BACKENDS_* membership for mimocode backed by a live 0.1.15 capture, with no import from the opencode or codex harness modules: - steering: CREW_LOADS_SPEC_STEERING and NATIVE_PROJECT_AGENTS_MD; MiMo reads AGENTS.md itself but no .kiro/steering tree - Crew servers: the mirror admits a gateway broker stub only in the shape bound to this session's stub token - spec hooks: CREW_FIRES_SPEC_OBSERVER_HOOKS; preToolUse stays out because memory, history and task never ask - unstartable MCP: PRUNE_UNSTARTABLE_MCP - MCP changes: MCP_RELAUNCH_RELOAD; the launch clears the relaunch mark before it derives the array - Bots: MEMBER_CAPABILITIES, MATE_WORKER_KIT, MATE_WORKER_PROMPT_IN_CONTEXT, TEMPLATE_ADDITIONS_AT_SPAWN - Side Chat and thread replies: SIDE_READONLY. The side seed denies every writer, the shell and every unasked tool; the read-back refuses a session where a deny is not in force, MiMo mounts its own MCP server, or a plugin is loaded; only read, grep and glob on an absolute target from the trusted cache are proven reads, a request that arrives before its running update is held one frame, and web tools stay refused CWD_BOUND_SESSIONS records why mimocode is not a member; REPORT_USAGE and an effort picker stay out. Part of kirodotdev#38455
jief123
force-pushed
the
feat/mimo-capability-gaps
branch
from
November 20, 2026 19:39
9fd629c to
d65b1c9
Compare
This branch has not been deployed
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.
Problem / Motivation
Goal: A MiMo Code chat gets the Crew features its harness can carry: default-agent steering, session-bound Crew servers, spec hooks that observe, unstartable-server reporting, MCP changes on a running session, Bots, and read-only tools in Side Chat and thread replies.
MiMo Code shipped as a harness in #24732 with only the capabilities that PR measured. On main today a MiMo Code chat:
.kiro/steeringrules (MiMo loadsAGENTS.mditself but not that tree, and Crew does not load it either);kirocrew-work,-guide,-mate,-dashboardfor non-members), because the mirror admitted no gateway broker stub;postToolUse,userPromptSubmit,agentSpawnorstophooks;mimocode, and a Bot that inherits it falls back to KAS;REJECT_ALL).Why it matters
Users who pick MiMo Code under Settings > Agent Harness lose project rules, Crew's own tools and Bots without any message saying so, and a Side Chat cannot even read a file the main chat just discussed. Each gap is one the harness can carry; leaving them makes MiMo Code a second-class harness for reasons on Crew's side.
Not a goal
ACP_BACKENDS_CWD_BOUND_SESSIONS: measured not needed (a secondmimo acpprocess loading a session in another folder honours approvals,pwdand MCP).ACP_BACKENDS_REPORT_USAGE: MiMo 0.1.15 reports zero tokens and no added cost for a turn whose tool call was rejected, though the model was called and billed (measured on its own xiaomi provider). A candidate upstream issue, not a Crew change.xiaomi/mimo-v2.6-pro/high), which needs a channel of its own.preToolUsehooks on MiMo Code:memory,historyandtasknever ask, so a gating hook would be skipped on exactly those calls.webfetchandwebsearchstay refused byREAD_ONLY.What changed (motivation → approach → change)
A MiMo Code chat gets the project's
.kiro/steeringrules, Crew's own tools, spec hooks, MCP changes while it runs, Bots, and read-only tools in Side Chat, because each gap was on Crew's side and the harness can carry it.Every capability is a positive
ACP_BACKENDS_*membership forACP_BACKEND_MIMOCODE(harness-parity H6), each backed by a live 0.1.15 capture undertest/fixtures/acp_frames/mimocode/. Nothing imports the opencode or codex harness modules; where their logic applies, MiMo carries its own copy..kiro/steeringrules into a MiMo Code chat (CREW_LOADS_SPEC_STEERING) and leavesAGENTS.mdto MiMo, which reads it itself (NATIVE_PROJECT_AGENTS_MD). Live, MiMo knew only theAGENTS.mdcodeword. The mirror'sRESOURCESruling becomesRESOURCES_NO_READER.place_mimocode_arrayadmits a broker stub for an identity-bound Crew server only in the shape bound to this session's token (codex's rule, copied); spec filters still apply.CREW_FIRES_SPEC_OBSERVER_HOOKS; theHOOKSruling becomesNO_CHANNEL, as on claude and codex.PRUNE_UNSTARTABLE_MCP: MiMo drops a stdio element whose command does not exist with nothing on the wire.MCP_RELAUNCH_RELOAD: a second process loading the session with a server added or withdrawn mounts the new set and keeps the history; the launch clears the relaunch mark right before it derives the array, as strands does.MEMBER_CAPABILITIES,MATE_WORKER_KIT,MATE_WORKER_PROMPT_IN_CONTEXTandTEMPLATE_ADDITIONS_AT_SPAWN; the mirror passessession_keytosession_mcp_projectionso a worker reads its own spec.SIDE_READONLY."*": "ask"and denies every writer, the shell and every unasked tool butinvalidandmcp_tool_search; a deny removes the tool from the list the model is offered..mimocode/plugin/file registeringreadran in place of the built-in, unasked (measured).mcpcontrol does not refuse a side session for servers it never mounts. The tripwire allows only the two inert unasked tools.read,grepandglob, named by the call's firsttool_calltitle, with an ABSOLUTE target from the trusted params cache, are namedfs_read/grep/glob; a search root must hold no sensitive location and a glob pattern must stay under it, as kiro-cli's search proof requires.grepandglobask before the running update that carriespath, so_defer_mimocode_side_read_permissionholds such a request for one frame, as the shell deferral does; the request's ownrawInputnever proves a read.dashboard/handlers/side.pyanddashboard/chat_threads.pyrequestside_read_onlyand send a boundary with reads and searches, no shell, and fetching refused (SIDE_BOUNDARY_PROMPT_NO_WEB,THREAD_BOUNDARY_PROMPT_NO_WEB).side-read-only-live.jsonl,side-read-only-xiaomi-live.jsonl): the three reads asked, no write or shell tool was offered, and no file was created.agent_sdk/backends_routing.py,agent_sdk/backends_mcp.py,agent_sdk/backends_members.py,agent_sdk/backends_sessions.py(why mimocode is not cwd-bound),agent_sdk/capabilities.py,agent_sdk/backend_mcp_ability.py,agent_sdk/spec_hooks.py,agent_sdk/drivers/acp.pyacp/harness/mimocode.py,providers/mirrors/mimocode.py,providers/mirrors/base.pyacp/_dispatch_parts/permission_requests.py,acp/_dispatch.py,acp/client_turn.py,acp/client_class.py,acp/client_permissions.py,acp/client_mcp_array.py,acp/harness_tool_names.pydashboard/handlers/side.py,dashboard/chat_threads.py,dashboard/side_prompts.py,dashboard/side_context.pyfolder_steering.py,context_assembly/inclusion.py,context_assembly/agent_spec.py,crewmate_harness.py,dashboard/chat_turn/turn_spec_hooks.pydocs/agent-spec-fields.md,docs/steering-and-hooks.md, and the owning specs underdocs/system-specs/anddocs/architecture/, the fixtures READMEBackwards compatibility
Compatible: only the
mimocodebackend gains memberships; every other harness's sets and code paths are unchanged, and a MiMo Code session that worked before keeps working (the new side-session refusals apply only to a Side Chat or thread reply, which ran no tools before).Removes nothing: no key, record, path or public function is removed or renamed; the one renamed test (
test_antigravity_goose_deepseek_copilot_and_mimocode_are_the_pruned_backends) only adds a member to its assertion.Tests
New files, each replaying the live captures through the real parsers and gates:
test/test_mimocode_crew_stub.py: a broker stub bound to this session's token is placed; a forged, foreign-token or reshaped stub is not; spec allowlist,disabledand per-tool deny still drop one.test/test_mimocode_observer_spec_hooks.py: the four observer hooks fire on bash,notebook_edit,actorand MCP calls replayed from four captures;preToolUsegets the notice.test/test_acp_mimocode_mcp_relaunch.py: a marked change relaunches before the turn and loads the same id with the new array; the mark is cleared before the array is derived.test/test_mimocode_member_captures.py: the saved-spec projection and the worker kit mount exactly the server each capture called.test/test_side_readonly_mimocode.py: both side captures, driven through a realAcpClientturn loop, proveread/grep/globand run underREAD_ONLY; writers, shell, unasked, MCP, web, relative and pathless calls, a search over the home folder and a glob pattern leaving its root are refused; an inlinerawInput/input/paramsnever proves a read; the seed, the read-back (lost deny, native MCP mount, plugin), the empty array and the narrowed tripwire.Updated:
test_acp_mcp_startable.py,test_acp_mimocode_backend.py,test_acp_mimocode_launch.py(anmcpcontrol lets a side session start with its empty array),test_acp_strands_mcp_relaunch.py,test_backend_cards.py(MiMo Code core count 4 → 5),test_chat_steering_plan.py,test_chat_threads.py,test_client_bindings.py,test_crew_fired_spec_hooks.py,test_folder_steering_provider_dedup.py,test_harness_parity.py,test_mate_worker_harnesses.py,test_side_turn_confinement.py,test_spec_hook_kas_tool_names.py.Mutation pins: each membership and each guard line on the B2/B3, A1/A2/A6/A7 and Side Chat paths (18 for Side Chat alone) was removed or loosened in turn, and at least one test failed every time.
Local runs: black, isort, flake8,
mypy --platform linux src/kiro_crew(4833 files),check_harness_parity.py, comment-history, brand,docs-lint.sh, semgrep against the merge-base (no finding), the flake ratchet. The full related set (backend 7 batches, frontend 3) on this change failed only where cleanorigin/mainfails the same way under the same environment (test_host_git_repo_exec_neutralization,test_kas_cli_floorpidfd,test_kas_session_start_queuex2,UsageTab.spendChartHarness). On this head: the 111 MiMo Code, Side Chat, harness-parity and bindings files (6669 passed) and the facade, cards and MiMo Code files again (1447 passed).Manual verification
mimo acp0.1.15 for every capture above, behind a LiteLLM proxy (Bedrock Claude Haiku 4.5) and, for Side Chat and the usage check, on MiMo's own xiaomi provider (xiaomi/mimo-v2.6-pro, billed).kernel.apparmor_restrict_unprivileged_userns=1keeps the pod from booting, so the steps (Side Chat read/search/refuse, thread reply, plugin and MCP refusals, observer hooks, unstartable MCP, MCP change on a running chat, a Bot on MiMo Code) are written down but not yet run.Related Issues
Closes #38455
Follows #24732. #38452 put opencode and pi in the same two steering sets (
CREW_LOADS_SPEC_STEERING,NATIVE_PROJECT_AGENTS_MD); mimocode joins beside them. #38927 put pi inMATE_WORKER_KITandMATE_WORKER_PROMPT_IN_CONTEXT; mimocode joins beside it there too. The H6 row ofharness-parity.mdkeeps #39846's wording, with the mimocode side-chat sentences added to it.Checklist
feat|fix|docs|style|refactor|perf|test|chore|ci|build|revert: ...)Contribution License Agreement
I agree that this contribution is licensed under the project's Apache-2.0 license.