Changelog¶
All notable changes to microharness are documented here and in CHANGELOG.md. See GitHub Releases and PyPI for published artifacts.
The format follows Keep a Changelog and this project adheres to Semantic Versioning.
[Unreleased]¶
[0.4.1] - 2026-12-05¶
Added¶
- ACP token & context-window usage reporting (
core/acp.py,docs/acp.md,tests/test_acp.py): Emits livesession/update(usage_updatewith calibratedusedcontext tokens and modelsizecapacity) on session creation/load, after each prompt step, on cancellation rollback, and on model switches, and includes per-turnusage(inputTokens,outputTokens,totalTokens, andcachedReadTokenswhen present, including subagent usage deltas) insession/promptresponses. - Complete ACP session, command, diff, terminal, cache, and subagent support (
core/acp.py,core/defaults.json,docs/acp.md,tests/test_acp.py): Addedsession/list(sessionCapabilities.listwithcwdfiltering andnextCursorpagination across active and persisted runs),available_commands_update+ slash-command/skill dispatch (/compact,/undo,/status,/new,/skill,/agent, and discovered project/global commands and skills), structureddiffcontent blocks onedit_file/write_file, liveterminalcontent blocks inAcpClientEnvironment.execute_bash,cache_ttl(5m,1h,off) sessionconfigOptions, andSubagentTool.on_stepprogress streaming viaagent_thought_chunk.
Fixed¶
- TUI scrolling & event-loop hang (
core/tui.py): Fixed_read_pending()resettingstdscrfrom its 50ms poll timeout to blocking mode on realcurses.windowinstances (which lackgettimeout()), preventing the UI/spinner/streaming view from freezing after any escape sequence until the next keypress or message; enabled direct SGR (1006) + X10 mouse wheel fallback whencurses.BUTTON5_PRESSEDis unavailable (macOS system ncurses) so scrolling down works reliably after scrolling up; and split concatenated escape/mouse-wheel bursts in_drain_escape_sequence()while handlingKEY_SPREVIOUS/KEY_SNEXTand clicked wheel masks.
[0.4.0] - 2026-12-02¶
Added¶
- Zero-dependency Agent Client Protocol (ACP)
stdiosupport (core/acp.py,core/defaults.json,main.py): Added a stdlib-only newline-delimited JSON-RPC 2.0 ACP server (AcpServer,AcpSession,JsonRpcTransport,AcpClientEnvironment) andmicroharness acp/--acpCLI entrypoint routing all diagnostics tostderrwhile keepingstdoutstrictly JSON-RPC framed. Supportsinitializecapability negotiation,session/new(with sanitizedmcpServerspass-through honoringtrust_project_tools,--no-mcp,--no-network-tools, and sandbox/Docker guards),session/load(trace.json/trajectory.jsonlresumption andsession/updatehistory replay), liveconfigOptions/models/modesdiscovery and switching (session/set_config_option,session/set_model,session/set_modefor model,thought_levelreasoning effort, and permission mode),session/prompt(streamingagent_thought_chunk,agent_message_chunk,tool_call, andtool_call_updatenotifications viaStreamingModel+core/tracer.pyaction formatters),session/cancel(cooperativeCancellableModelcancellation),session/close, bidirectionalsession/request_permissionwired toGuardedEnvironment(askmode, fail-closed on deny/cancel/disconnect), and optionalfs/read_text_file,fs/write_text_file, andterminal/*client callbacks while keepingAgentLoopprotocol-agnostic (#58). -
Multimodal image message support & MCP image pass-through (
core/types.py,core/memory.py,core/model.py,core/providers.py,core/providers.json,core/tools.py,core/loop.py,core/tracer.py,core/discovery.py,core/interactive.py,core/tui.py,plugins/mcp/,main.py): ExtendedMessageto support structured multimodal content parts alongside plainstrwith pure-stdlib magic-byte MIME detection, base64/data-URI validation (max_image_bytes,allowed_image_mime_typesincore/defaults.json), fixed-budget image token estimation (image_token_estimate), base64-safe compaction tombstones andtrace.json/trajectory.jsonl/trace.mdsanitization, declarativesupports_visionprovider/model capability flags with graceful text-placeholder fallback on non-vision models,ToolOutput-backed MCP image extraction forwarded cleanly as follow-upusermultimodal turns afterrole="tool"responses, repeatable--imageCLI flag, and interactive TUI image input (@image.pngtagging/autocomplete,/image <path>,/paste,Ctrl+V/Alt+Vclipboard paste, and dragged-in image paths) (#60). -
ACP multimodal image prompts (
core/acp.py,docs/acp.md,tests/test_acp.py): EnabledpromptCapabilities.imagein ACPinitialize, added validatedimagecontent block parsing (prompt_blocks_to_content) forsession/prompt, and supported multimodaluser_message_chunkreplay insession/load(#60).
Changed¶
- ACP T3 Code & IDE setup docs (
docs/acp.md): Documented globaluv tool installsetup, T3 CodeExecutable+Argumentsconfiguration,--directoryguidance foruv run, and troubleshooting for test-session failures and startup latency. - Documentation updates & policy (
AGENTS.md,README.md,docs/plugins.md,docs/getting-started.md): Documented the bundledplugins/background_shell/plugin (bg_start,bg_status,bg_write,bg_kill,bgcode_modehelper,--background-shell/--no-background-shell,defaults.json, and sandbox/teardown guarantees), added--stream/--no-streamand--code-modeto the CLI reference, updatedREADME.mdforplugins/mcp/,plugins/background_shell/,core/sandbox.py, andcore/plugins.py, and codified documentation sync +mkdocs build --strictverification inAGENTS.md.
Fixed¶
- Release docs deployment (
.github/workflows/publish.yml): Changeddeploy_docsto dispatchdocs.ymlonmainfor the released tag instead of invokingdocs.ymlviaworkflow_callfromrefs/pull/<n>/merge, whichgithub-pagesenvironment protection rules rejected duringv0.3.0.
Removed¶
- Legacy
mini-harnessCLI entrypoint (pyproject.toml,docs/getting-started.md,AGENTS.md): Removed the legacymini-harnessconsole script alias from[project.scripts]so onlymicroharnessis installed.
[0.3.0] - 2026-12-02¶
Added¶
- Background shell process management (
plugins/background_shell/,core/environment.py,core/tools.py): Added a first-party zero-dependencybackground_shellplugin (BackgroundShellToolProvider) exposingbg_start,bg_status(withwait_forreadiness matching and tail logs),bg_write, andbg_kill(plusbgcode_modehelper and--background-shell/--no-background-shellCLI flags), bounded in-memory ring-buffer + file spillover logs inlogs_dir,ReadOnlyEnvironment/GuardedEnvironment(askmode) enforcement, workspacecwdtrapping, host secret stripping,--sandbox/--dockercontainer execution (DockerEnvironment.signal_exec), and deterministicSIGTERM -> grace -> SIGKILLprocess-group cleanup viaToolProvider.teardown()andEnvironment.register_teardown_hook()(#61). - Pure-stdlib SSE token, reasoning, and tool-call streaming (
core/model.py,core/protocols.py,core/types.py,core/loop.py,core/tui_session.py,core/tui.py,core/session.py,core/harness.py,main.py): Added runtime-checkableStreamingModel(generate_stream) andStreamEventcallbacks with stdlibiter_sse_dataSSE parsing inHttpChatModel(reassembling fragmented JSON tool calls,usagetelemetry viastream_options, andreasoning_content/reasoning/reasoning_detailsreplay fields), cooperative mid-streamEsccancellation and deadline checks, automatic fallback whenstream_optionsorstream: trueis rejected, live TUI (TUIState,TuiTurnRunner) and CLI (CliStreamRenderer) streaming,--stream/--no-streamCLI flags, and declarative flags incore/defaults.jsonandcore/providers.json. - User-facing plugin system (
core/plugins.py,main.py,core/interactive.py): Added zero-dependency plugin bundle discovery (plugins/<name>/,~/.microharness/plugins/<name>/,.microharness/plugins/<name>/, presetplugins/, and opt-inmicroharness.pluginsentry points viaenable_entrypoint_plugins), JSONCplugin.jsonmanifests (supportingToolProviderfactories,tools/,skills/,subagents/,commands/,hooks,mcp_servers, CLI flag contributions,frontmatter_keys,defer/defer_tools, and lazyactivate_on_config_keys),microharness plugin {install,list,enable,disable,update,remove}CLI +/pluginslash command,plugins.jsonenable/source tracking, andtrust_project_toolsenforcement for project plugins. - Sandboxed MCP servers &
code_modestdio bridge (core/sandbox.py,core/code_mode.py,plugins/mcp/,core/plugins.py): Added zero-dependency execution sandboxing (docker exec -ifor containers, macOSsandbox-exec, and Linuxbwrap) with granular per-server/per-runtimesandboxpolicies (mode,filesystem,read_paths,write_paths,network,allowed_hosts,env_passthrough,inherit_host_env) and declarative defaults incore/defaults.jsonandplugins/mcp/defaults.json; added an authenticated newline-delimited JSON-RPCstdiobridge (_ToolBridgeDispatcher) enablingcode_modeand workspace-localstdioMCP servers inside--docker(including--docker-network none) and--sandboxwhile preservingToolRegistry.dispatch()hooks, permission guards, host secret stripping, and HTTP/SSEallowed_hostsredirect/endpoint enforcement. - Generic deferred tool discovery (
core/tools.py,core/code_mode.py,core/subagents.py): AddedToolSearchTool(tool_search),ToolRegistry.activate(),tools.search()incode_mode(_ToolBridgeServer /search), and per-plugindefer/defer_toolsdeferral so large installed plugin toolsets stay out of upfront prompt schemas until searched. - Isolated plugin runtimes &
CodeModeHelperProvider(core/plugins.py,core/protocols.py,core/code_mode.py): AddedStdioPluginToolProvider(newline-delimited JSON-RPC 2.0 overstdiowithuv/python/npx/stdioruntime specs andprepare_plugin_venv),CodeModeHelperProvider/CodeModeHelperso plugins can inject custom client helpers intocode_mode, and--code-mode/enable_code_mode. - Harness engineering & economics documentation (
docs/architecture.md,docs/benchmarks.md,docs/subagents.md,docs/presets.md): Documentededit_fileand--no-tool-docsschema minimalism, deterministic tombstoning vs. LLM summarization, the7.5-ping prompt-cache break-even formula and gateway replica/wait caveats, DeepSWE-mini cost/token breakdowns withN=1variance and--docker-network nonenotes, and empirical multi-agent cost/role heuristics.
Changed¶
- Release-synced documentation deployment & stage indicator (
.github/workflows/docs.yml,.github/workflows/publish.yml,.github/scripts/release.py,docs/index.md): Stopped auto-deploying unreleasedmaindocs to GitHub Pages on push (keepingmkdocs build --stricton PRs), wired release documentation deployment intopublish.yml+ manualworkflow_dispatch, and added a PyPIDevelopment Statusstage badge and heading label synced automatically frompyproject.toml. - Migrated
plugins/mcponto the generic plugin contract (plugins/mcp/,core/config.py,core/harness.py,core/defaults.json): Convertedplugins/mcp.pyinto aplugins/mcp/bundle withplugin.json,defaults.json,config.py, andplugin.py, movingMCP_MODES,resolve_mcp_server_configs,--no-mcp/--mcp-modeCLI flags,mcp_*defaults, and themcpcode_modehelper out ofcore/.
[0.2.2] - 2026-11-30¶
Added¶
- Multi-PR release automation (
.github/workflows/release.yml,.github/workflows/publish.yml,.github/scripts/release.py): Added aPrepare Releaseworkflow (workflow_dispatch) that promotes## [Unreleased]changelog entries, bumps versions across package/docs/uv.lock, and opens arelease-labeled Release PR, plus automatic GitHub Release creation and PyPI OIDC publishing when that Release PR merges intomain.
[0.2.1] - 2026-11-29¶
Added¶
- Benchmark docs exporter (
microharness experiments export): Addedselect_experiment_runs,load_experiment_tasks,format_experiments_markdown, andupdate_markdown_results_blockinbenchmarks/experiments.py(plus CLImicroharness experiments export --write ...) to render sanitized run summaries and per-task matrices without exposing local paths. - DeepSWE-mini benchmark results (
docs/benchmarks.md): Published DeepSWE-mini benchmark tables (exp-hy4-skilled-v0123,exp-hy4-solo-v0123, anddeepseek-flash-suite) betweenBENCHMARK_RESULTSmarkers for one-command future updates.
[0.2.0] - 2026-11-29¶
Added¶
- Zero-dependency MCP plugin (
plugins/mcp.py): Added a stdlib-only Model Context Protocol client supportingstdio, Streamable HTTP, and legacy HTTP+SSE transports (env:VARsecret resolution, fail-open startup,annotations.readOnlyHintpermission enforcement, and lazy loading whenmcp_serversis configured). - Generic
ToolProvider& deferred tools (core/protocols.py,core/tools.py): Added lifecycle-managedToolProviderregistration anddeferredtool support so tools can remain dispatchable without bloating model schemas. - Python Code Mode (
core/code_mode.py): Added--mcp-mode code_mode(plus"progressive"default and"direct"modes) backed by an authenticated127.0.0.1loopback bridge (tools.call,mcp.search,mcp.call) routed throughToolRegistry.dispatch(). - MCP CLI flags & docs (
main.py,docs/mcp.md): Added--no-mcpand--mcp-mode, documented exposure modes and security boundaries, and addedmkdocs-material+ GitHub Pages deployment (.github/workflows/docs.yml).
[0.1.23] - 2026-11-28¶
Added¶
- Lean main-agent toolset & prompt options (
--inspection-tools,--no-tool-docs): Madegrep,glob, andgit_readopt-in on the main agent (kept active in read-only subagents and when requested by presets) and allowed omitting prose tool descriptions when native schemas are used. - Pre-evaluation git patch capture (
Environment.get_git_head,get_git_patch(base_ref=...)): Captured the initialHEADcommit before execution and extractedpatch.diffprior to grading so commits created during a run are preserved alongside uncommitted edits.
[0.1.22] - 2026-11-26¶
Added¶
- Named agent config presets: Added
core/presets.py(AgentPreset,discover_presets,load_preset,resolve_preset) to load self-contained preset folders (agent.md, optionalconfig.json,subagents/,tools/,skills/,commands/) from global/projectpresets/or arbitrary paths, with layered/isolated inheritance andtrust_project_toolsenforcement. - Preset CLI & interactive commands: Added
--preset/--agent,--list-presets/--list-agents, and/preset//statusreporting. - Central CSV experiment tracking: Added
benchmarks/experiments.py(CsvExperimentTracker,ExperimentTracker,backfill_runs,collect_agent_metadata,collect_subagents_summary), persisting run-level (~/.microharness/experiments.csv) and per-task (~/.microharness/experiments_tasks.csv) agent versions, git commit/dirty state, configurations, active preset, subagent presets, and scores/token telemetry automatically across benchmark runs and--resume. - Experiments CLI: Added
microharness experiments backfillandmicroharness experiments listto import existing saved reports and inspect runs directly from the terminal.
[0.1.21] - 2026-11-26¶
Added¶
- Atomic multi-hunk
edit_file: Addedapply_text_edits(core/editing.py) and updatedEditFileTool/Environment.edit_file/ReadOnlyEnvironment/GuardedEnvironment/core/tracer.pyto support sequentialedits: [{old_str, new_str}, ...]batches with atomic all-or-nothing rollback. - Advertised
edit_file(path, edits)schema: Simplified the LLM tool schema to requireeditsdirectly (preserving internalold_str/new_strfallback compatibility inEditFileTool.execute). - Brace expansion in
glob: Added{a,b}alternative support to_compile_glob_patternincore/tools.py(fixing failures on patterns such as**/*.{ts,tsx,json,md}). - Project changelog: Added
CHANGELOG.mddocumenting releases0.1.0through0.1.21.
[0.1.20] - 2026-11-24¶
Added¶
- Benchmark task exclusions &
arm64guard (#38): Added!term/-termexclusion filters tobenchmarks/runner.py,benchmarks/harbor.py, andbenchmarks/mini_swe.py, and automatically skipnarwhals-rolling-window-suiteonarm64hosts where prebuilt wheels fail.
[0.1.19] - 2026-11-24¶
Added¶
- Dedicated read-only inspection tools (#37): Added
grep,glob, andgit_read(parallel_safe=True), switchedexploreandreviewersubagent presets to[read_file, grep, glob, git_read], and surfaced explicitread-onlyaccess labels inrender_subagents_index.
Fixed¶
- Shell chaining validation: Fixed
&&/||operator parsing incore/environment.py.
[0.1.18] - 2026-11-24¶
Fixed¶
- Container skills & capped subagents (#36): Skip host repository skills inside container sandboxes and ensure subagents that hit
max_stepsproduce a structured wrap-up summary.
[0.1.17] - 2026-11-23¶
Fixed¶
- Benchmark ergonomics & metadata (#35): Added multi-task filter support, deferred live context-window probing until needed, tightened task filter matching, and fixed macOS curses test compatibility.
[0.1.16] - 2026-11-23¶
Fixed¶
- Sandbox project discovery (#34): Discovered project
.microharness/config, subagent presets, and project skills inside sandbox workspaces without duplicate discovery.
[0.1.15] - 2026-11-22¶
Fixed¶
- Subagent context & spill logs (#33): Resolved per-subagent model context windows, bumped default
bash_timeoutto300s, and prevented log spill file collisions.
[0.1.14] - 2026-11-22¶
Added¶
- UTC trace timestamps (#32): Added ISO-8601 UTC timestamps to trajectories and run traces.
[0.1.13] - 2026-11-22¶
Fixed¶
- TUI interaction polish (#31): Required leading
/for slash commands, added mouse/keyboard scrolling, unifiedEnter/Tabinput behavior, and added visual turn separators.
[0.1.12] - 2026-11-21¶
Changed¶
- Declarative defaults (#30): Centralized operational defaults in
core/defaults.jsonandcore/providers.json, and raised the default fallback context window to256k.
[0.1.11] - 2026-11-21¶
Added¶
- Dynamic context-window discovery (#29): Auto-detected model context windows from provider
/modelsendpoints.
[0.1.10] - 2026-11-21¶
Fixed¶
- Docker path resolution & fail-fast HTTP errors (#28): Resolved container relative paths cleanly and failed fast on non-retryable
4xxHTTP responses instead of burning retry budgets.
[0.1.9] - 2026-11-21¶
Fixed¶
- Permissions & review cleanup (#27): Added
/permissions roalias, deduplicated config/environment helpers, and removed dead hook code.
[0.1.7] - 2026-11-21¶
Added¶
- Lifecycle hooks & loop guardrails (#25): Added
HookRegistry(pre_turn,post_turn,pre_step,post_step,pre_tool,post_tool), built-inpython_syntax_diagnosticsviaast.parse, anddoom_loop_detection. - Checkpoints & permission guardrails (#26): Added pre-turn git/file checkpoints with
/undo,GuardedEnvironment(auto/ask/read-only/ro), and Docker resource limits.
Fixed¶
- Hooks & Python 3.12+ proxy compatibility: Fired
post_stepon final steps, passed turn outcome topost_turn, and preservedContainerEnvironmentprotocol compliance inGuardedEnvironment.
[0.1.5] - 2026-11-21¶
Fixed¶
- Preset defaults: Tightened read-only preset defaults for subagent roles.
[0.1.4] - 2026-11-21¶
Added¶
- KV-cache friendly memory compaction (#24): Added immutable prefix preservation,
prompt_tokens-calibrated budgeting, structured compaction summaries, and read-only Docker/logsinspection. - Resilient editing & parallel reads (#21): Extracted
core/editing.pywith whitespace/dedent fallback anddifflibclosest-match hints, enabledparallel_safeonread_file, and improved JSON parse error feedback. - Subagent isolation hardening (#22): Hardened
ReadOnlyEnvironmentisolation, prevented concurrent write-worker races, and added configurablemax_stepsper preset.
[0.1.3] - 2026-11-20¶
Added¶
- Subagent orchestration (#14): Added
SubagentTool(parallel_safe=True),.microharness/agents/Markdown presets (explore,worker,reviewer), concurrenttasksbatching, and per-callbashtimeout up to1800s.
Fixed¶
- Provider routing & reasoning replay: Prevented non-local global endpoints from hijacking local presets, and preserved assistant
reasoning/reasoning_details/reasoning_contentacross tool turns.
[0.1.2] - 2026-11-17¶
Added¶
finishtool & sandbox hardening (#12): Added explicitFinishTool, Docker--network noneisolation, bash timeout hardening, and preserved trailing newlines inget_git_patch.- Static type checking & CI (#8, #13): Added GitHub Actions CI (
ruff,ty,pytestacross Python 3.11–3.13), CodeQL security scanning, and.pre-commit-config.yaml.
[0.1.1] - 2026-11-15¶
Added¶
- Global auth store & Vercel AI Gateway (#9, #10, #11): Added global credential storage, CLI login,
/logincommand, Vercel AI Gateway provider support, and CodeQL secret-taint hardening.
[0.1.0] - 2026-11-08¶
Added¶
- Initial PyPI release (#1–#7): Modular stdlib-only core (
Model,Tool,Evaluatorprotocols), curses TUI with caret editing and/helpcommand router, local provider presets, Amazon Bedrock OpenAI-compatible shim with SigV4/SSO auth, cascadingAGENTS.mdand skills discovery, Mini-SWE & DeepSWE-mini benchmark runners, and PyPI OIDC Trusted Publishing workflow (.github/workflows/publish.yml).