Perf/save attempts 17847424019556046468#24
Open
jnorthrup wants to merge 3 commits into
Open
Conversation
Wire hermes (hermes-agent) as a worker/orchestrator provider alongside claude and codex. Hermes speaks the same ACP JSON-RPC over stdio protocol as claude-agent-acp/codex-acp, so the integration is minimal: - providers.py: add 'hermes' to ProviderName, ORCHESTRATOR_PROVIDER_NAMES, WORKER_PROVIDER_NAMES, and PROVIDERS dict with default_worker_acp_command 'hermes acp', config_format mcp_json, acp_runtime_mode None. - acp_runner.py: _augment_acp_command and _acp_subprocess_env: hermes is a no-op (codex gets sandbox/approval overrides; hermes passes through). Use with: zenith init --agent hermes --workspace-dir /path/to/repo Or with a profile: zenith init --agent hermes --worker-acp-command 'hermes --profile myprofile acp' --workspace-dir /path/to/repo
- New: bundled/prompts/orchestrator/hermes_addendum.md with session_search, memory tool, skill loading, compression awareness - cli.py: appends addendum to .hermes/orchestrator_prompt.md for Hermes provider - assets.py: adds bundled_prompts_dir() helper
💡 What: Implemented a new save_attempts method in ProjectStore using ThreadPoolExecutor for concurrent writes. Updated MissionCoordinator to batch write attempts during dispatcher handoff instead of a sequential loop. 🎯 Why: Resolves an N+1 problem where saving multiple dispatch attempts one-by-one sequentially blocked the coordinator loop. Grouping I/O operations drastically reduces storage synchronization time overhead. 📊 Measured Improvement: Under a 5ms simulated I/O delay, saving 500 attempts dropped from ~7.9 seconds sequentially to ~1.0 seconds concurrently, demonstrating an ~8x performance improvement in batch I/O.
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.
Summary
Checklist
uv run ruff check .passesuv run mypy srcpassesuv run pytest -qpasses