Skip to content

Releases

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 05 Dec 11:08
91d181d

Added

  • ACP token & context-window usage reporting (core/acp.py, docs/acp.md, tests/test_acp.py): Emits live session/update (usage_update with calibrated used context tokens and model size capacity) on session creation/load, after each prompt step, on cancellation rollback, and on model switches, and includes per-turn usage (inputTokens, outputTokens, totalTokens, and cachedReadTokens when present, including subagent usage deltas) in session/prompt responses.
  • Complete ACP session, command, diff, terminal, cache, and subagent support (core/acp.py, core/defaults.json, docs/acp.md, tests/test_acp.py): Added session/list (sessionCapabilities.list with cwd filtering and nextCursor pagination 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), structured diff content blocks on edit_file / write_file, live terminal content blocks in AcpClientEnvironment.execute_bash, cache_ttl (5m, 1h, off) session configOptions, and SubagentTool.on_step progress streaming via agent_thought_chunk.

Fixed

  • TUI scrolling & event-loop hang (core/tui.py): Fixed _read_pending() resetting stdscr from its 50ms poll timeout to blocking mode on real curses.window instances (which lack gettimeout()), 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 when curses.BUTTON5_PRESSED is unavailable (macOS system ncurses) so scrolling down works reliably after scrolling up; and split concatenated escape/mouse-wheel bursts in _drain_escape_sequence() while handling KEY_SPREVIOUS / KEY_SNEXT and clicked wheel masks.

v0.4.0

Choose a tag to compare

@Kagandi Kagandi released this 02 Dec 20:06
9a2774f

Added

  • Zero-dependency Agent Client Protocol (ACP) stdio support (core/acp.py, core/defaults.json, main.py): Added a stdlib-only newline-delimited JSON-RPC 2.0 ACP server (AcpServer, AcpSession, JsonRpcTransport, AcpClientEnvironment) and microharness acp / --acp CLI entrypoint routing all diagnostics to stderr while keeping stdout strictly JSON-RPC framed. Supports initialize capability negotiation, session/new (with sanitized mcpServers pass-through honoring trust_project_tools, --no-mcp, --no-network-tools, and sandbox/Docker guards), session/load (trace.json / trajectory.jsonl resumption and session/update history replay), live configOptions / models / modes discovery and switching (session/set_config_option, session/set_model, session/set_mode for model, thought_level reasoning effort, and permission mode), session/prompt (streaming agent_thought_chunk, agent_message_chunk, tool_call, and tool_call_update notifications via StreamingModel + core/tracer.py action formatters), session/cancel (cooperative CancellableModel cancellation), session/close, bidirectional session/request_permission wired to GuardedEnvironment (ask mode, fail-closed on deny/cancel/disconnect), and optional fs/read_text_file, fs/write_text_file, and terminal/* client callbacks while keeping AgentLoop protocol-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): Extended Message to support structured multimodal content parts alongside plain str with pure-stdlib magic-byte MIME detection, base64/data-URI validation (max_image_bytes, allowed_image_mime_types in core/defaults.json), fixed-budget image token estimation (image_token_estimate), base64-safe compaction tombstones and trace.json / trajectory.jsonl / trace.md sanitization, declarative supports_vision provider/model capability flags with graceful text-placeholder fallback on non-vision models, ToolOutput-backed MCP image extraction forwarded cleanly as follow-up user multimodal turns after role="tool" responses, repeatable --image CLI flag, and interactive TUI image input (@image.png tagging/autocomplete, /image <path>, /paste, Ctrl+V / Alt+V clipboard paste, and dragged-in image paths) (#60).

  • ACP multimodal image prompts (core/acp.py, docs/acp.md, tests/test_acp.py): Enabled promptCapabilities.image in ACP initialize, added validated image content block parsing (prompt_blocks_to_content) for session/prompt, and supported multimodal user_message_chunk replay in session/load (#60).

Changed

  • ACP T3 Code & IDE setup docs (docs/acp.md): Documented global uv tool install setup, T3 Code Executable + Arguments configuration, --directory guidance for uv 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 bundled plugins/background_shell/ plugin (bg_start, bg_status, bg_write, bg_kill, bg code_mode helper, --background-shell / --no-background-shell, defaults.json, and sandbox/teardown guarantees), added --stream/--no-stream and --code-mode to the CLI reference, updated README.md for plugins/mcp/, plugins/background_shell/, core/sandbox.py, and core/plugins.py, and codified documentation sync + mkdocs build --strict verification in AGENTS.md.

Fixed

  • Release docs deployment (.github/workflows/publish.yml): Changed deploy_docs to dispatch docs.yml on main for the released tag instead of invoking docs.yml via workflow_call from refs/pull/<n>/merge, which github-pages environment protection rules rejected during v0.3.0.

Removed

  • Legacy mini-harness CLI entrypoint (pyproject.toml, docs/getting-started.md, AGENTS.md): Removed the legacy mini-harness console script alias from [project.scripts] so only microharness is installed.

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 14:56
7ab9444

Added

  • Background shell process management (plugins/background_shell/, core/environment.py, core/tools.py): Added a first-party zero-dependency background_shell plugin (BackgroundShellToolProvider) exposing bg_start, bg_status (with wait_for readiness matching and tail logs), bg_write, and bg_kill (plus bg code_mode helper and --background-shell / --no-background-shell CLI flags), bounded in-memory ring-buffer + file spillover logs in logs_dir, ReadOnlyEnvironment / GuardedEnvironment (ask mode) enforcement, workspace cwd trapping, host secret stripping, --sandbox / --docker container execution (DockerEnvironment.signal_exec), and deterministic SIGTERM -> grace -> SIGKILL process-group cleanup via ToolProvider.teardown() and Environment.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-checkable StreamingModel (generate_stream) and StreamEvent callbacks with stdlib iter_sse_data SSE parsing in HttpChatModel (reassembling fragmented JSON tool calls, usage telemetry via stream_options, and reasoning_content / reasoning / reasoning_details replay fields), cooperative mid-stream Esc cancellation and deadline checks, automatic fallback when stream_options or stream: true is rejected, live TUI (TUIState, TuiTurnRunner) and CLI (CliStreamRenderer) streaming, --stream / --no-stream CLI flags, and declarative flags in core/defaults.json and core/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>/, preset plugins/, and opt-in microharness.plugins entry points via enable_entrypoint_plugins), JSONC plugin.json manifests (supporting ToolProvider factories, tools/, skills/, subagents/, commands/, hooks, mcp_servers, CLI flag contributions, frontmatter_keys, defer/defer_tools, and lazy activate_on_config_keys), microharness plugin {install,list,enable,disable,update,remove} CLI + /plugin slash command, plugins.json enable/source tracking, and trust_project_tools enforcement for project plugins.
  • Sandboxed MCP servers & code_mode stdio bridge (core/sandbox.py, core/code_mode.py, plugins/mcp/, core/plugins.py): Added zero-dependency execution sandboxing (docker exec -i for containers, macOS sandbox-exec, and Linux bwrap) with granular per-server/per-runtime sandbox policies (mode, filesystem, read_paths, write_paths, network, allowed_hosts, env_passthrough, inherit_host_env) and declarative defaults in core/defaults.json and plugins/mcp/defaults.json; added an authenticated newline-delimited JSON-RPC stdio bridge (_ToolBridgeDispatcher) enabling code_mode and workspace-local stdio MCP servers inside --docker (including --docker-network none) and --sandbox while preserving ToolRegistry.dispatch() hooks, permission guards, host secret stripping, and HTTP/SSE allowed_hosts redirect/endpoint enforcement.
  • Generic deferred tool discovery (core/tools.py, core/code_mode.py, core/subagents.py): Added ToolSearchTool (tool_search), ToolRegistry.activate(), tools.search() in code_mode (_ToolBridgeServer /search), and per-plugin defer / defer_tools deferral 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): Added StdioPluginToolProvider (newline-delimited JSON-RPC 2.0 over stdio with uv/python/npx/stdio runtime specs and prepare_plugin_venv), CodeModeHelperProvider / CodeModeHelper so plugins can inject custom client helpers into code_mode, and --code-mode / enable_code_mode.
  • Harness engineering & economics documentation (docs/architecture.md, docs/benchmarks.md, docs/subagents.md, docs/presets.md): Documented edit_file and --no-tool-docs schema minimalism, deterministic tombstoning vs. LLM summarization, the 7.5-ping prompt-cache break-even formula and gateway replica/wait caveats, DeepSWE-mini cost/token breakdowns with N=1 variance and --docker-network none notes, 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 unreleased main docs to GitHub Pages on push (keeping mkdocs build --strict on PRs), wired release documentation deployment into publish.yml + manual workflow_dispatch, and added a PyPI Development Status stage badge and heading label synced automatically from pyproject.toml.
  • Migrated plugins/mcp onto the generic plugin contract (plugins/mcp/, core/config.py, core/harness.py, core/defaults.json): Converted plugins/mcp.py into a plugins/mcp/ bundle with plugin.json, defaults.json, config.py, and plugin.py, moving MCP_MODES, resolve_mcp_server_configs, --no-mcp/--mcp-mode CLI flags, mcp_* defaults, and the mcp code_mode helper out of core/.

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 30 Nov 05:04
d371c95

Added

  • Multi-PR release automation (.github/workflows/release.yml, .github/workflows/publish.yml, .github/scripts/release.py): Added a Prepare Release workflow (workflow_dispatch) that promotes ## [Unreleased] changelog entries, bumps versions across package/docs/uv.lock, and opens a release-labeled Release PR, plus automatic GitHub Release creation and PyPI OIDC publishing when that Release PR merges into main.

v0.2.0

Choose a tag to compare

@Kagandi Kagandi released this 29 Nov 20:42
b6918ae

What's Changed

Added in 0.2.0

  • Zero-dependency MCP plugin (plugins/mcp.py): Added a stdlib-only Model Context Protocol client supporting stdio, Streamable HTTP, and legacy HTTP+SSE transports (env:VAR secret resolution, fail-open startup, annotations.readOnlyHint permission enforcement, and lazy loading when mcp_servers is configured).
  • Generic ToolProvider & deferred tools (core/protocols.py, core/tools.py): Added lifecycle-managed ToolProvider registration and deferred tool support.
  • Python Code Mode (core/code_mode.py): Added --mcp-mode code_mode (alongside "progressive" default and "direct" modes) backed by an authenticated 127.0.0.1 loopback bridge routed through ToolRegistry.dispatch().
  • MCP CLI flags & GitHub Pages docs: Added --no-mcp and --mcp-mode, plus the Material for MkDocs documentation site published to https://kagandi.github.io/microharness/.
  • Release & changelog guardrails: Updated publish.yml to require explicit GitHub Releases or manual workflow_dispatch (default dry_run: true) with tag-to-version verification, and added changelog/docs version-sync tests in tests/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

Choose a tag to compare

@Kagandi Kagandi released this 26 Nov 17:14
9f3c2c9

What's Changed

Added

  • Atomic multi-hunk edit_file: Added apply_text_edits (core/editing.py) and extended EditFileTool, Environment.edit_file, ReadOnlyEnvironment, GuardedEnvironment, and core/tracer.py to support sequential edits: [{old_str, new_str}, ...] batches with atomic all-or-nothing rollback.
  • Advertised edit_file(path, edits) schema: Simplified the LLM tool schema to require edits directly while preserving internal old_str/new_str fallback compatibility in EditFileTool.execute.
  • Brace expansion in glob: Added {a,b} alternative support to _compile_glob_pattern in core/tools.py (fixing patterns like **/*.{ts,tsx,json,md}).
  • Project changelog: Added CHANGELOG.md documenting releases 0.1.0 through 0.1.21.

Full Changelog: https://github.com/Kagandi/microharness/blob/main/CHANGELOG.md