Repository navigation
Releases
v0.4.1
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.
v0.4.0
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.
v0.3.0
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/.
v0.2.2
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.
v0.2.0
What's Changed
Added in 0.2.0
- 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. - Python Code Mode (
core/code_mode.py): Added--mcp-mode code_mode(alongside"progressive"default and"direct"modes) backed by an authenticated127.0.0.1loopback bridge routed throughToolRegistry.dispatch(). - MCP CLI flags & GitHub Pages docs: Added
--no-mcpand--mcp-mode, plus the Material for MkDocs documentation site published to https://kagandi.github.io/microharness/. - Release & changelog guardrails: Updated
publish.ymlto require explicit GitHub Releases or manualworkflow_dispatch(defaultdry_run: true) with tag-to-version verification, and added changelog/docs version-sync tests intests/test_package.py.
Also Included Since v0.1.21
0.1.23: Opt-in main-agent inspection tools (--inspection-tools),--no-tool-docs, and pre-evaluation git patch capture (Environment.get_git_head,get_git_patch(base_ref=...)).0.1.22: Named agent config presets (core/presets.py,--preset,--list-presets,/preset) and central CSV experiment tracking (benchmarks/experiments.py,microharness experiments list|backfill).
Full Changelog: https://github.com/Kagandi/microharness/blob/main/CHANGELOG.md
v0.1.21
What's Changed
Added
- Atomic multi-hunk
edit_file: Addedapply_text_edits(core/editing.py) and extendedEditFileTool,Environment.edit_file,ReadOnlyEnvironment,GuardedEnvironment, andcore/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 while preserving internalold_str/new_strfallback compatibility inEditFileTool.execute. - Brace expansion in
glob: Added{a,b}alternative support to_compile_glob_patternincore/tools.py(fixing patterns like**/*.{ts,tsx,json,md}). - Project changelog: Added
CHANGELOG.mddocumenting releases0.1.0through0.1.21.
Full Changelog: https://github.com/Kagandi/microharness/blob/main/CHANGELOG.md