Skip to content

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/.