Skip to content

feat: restore ACP server implementation that was missed from PR #949#1254

Merged
teknium1 merged 1 commit intomainfrom
fix/restore-acp-from-949
Mar 14, 2026
Merged

feat: restore ACP server implementation that was missed from PR #949#1254
teknium1 merged 1 commit intomainfrom
fix/restore-acp-from-949

Conversation

@teknium1
Copy link
Contributor

Summary

  • restore the ACP editor-integration implementation that existed on the original PR feat: ACP server + cron timezone fix #949 branch but did not actually land on main
  • add the acp_adapter/ package, ACP registry manifest, setup guide, ACP test suite, and hermes acp / hermes-acp entrypoints
  • restore the curated hermes-acp toolset and the jupyter-live-kernel data science skill that shipped with the original ACP branch

Why this PR exists

PR #949's body described the ACP implementation, but the merge commit that landed on main only contained the cron timezone fix. The ACP files were still present on the PR branch history (cc61f54, 3441911) but never made it into main.

This PR restores those missing ACP changes on top of current main.

Additional review/fixes applied while restoring ACP

I did not lift the old branch verbatim. I reviewed it against current main and updated it to fit the modern runtime:

  • use the current shared runtime provider resolver in acp_adapter/auth.py
  • bind ACP sessions to per-session cwd task overrides so file/terminal tools respect the editor workspace
  • track duplicate same-name tool calls with FIFO IDs in the ACP event bridge
  • restore terminal approval callbacks after each prompt instead of leaving them installed globally
  • normalize ACP setup docs and the carried-over data-science skill metadata
  • keep packaging changes minimal (only add the acp extra, hermes-acp script, and acp_adapter package discovery)

Test plan

  • source /home/teknium/.hermes/hermes-agent/.venv/bin/activate && python -m pytest tests/acp/ -n0 -q
  • source /home/teknium/.hermes/hermes-agent/.venv/bin/activate && python -m pytest tests/ -n0 -q
  • source /home/teknium/.hermes/hermes-agent/.venv/bin/activate && python -m hermes_cli.main acp --help

Results:

  • ACP tests: 84 passed
  • Full suite: 3595 passed, 168 skipped, 23 deselected
  • CLI ACP subcommand help renders successfully

Restore the ACP editor-integration implementation that was present on the
original PR branch but did not actually land in main.

Includes:
- acp_adapter/ server, session manager, event bridge, auth, permissions,
  and tool helpers
- hermes acp subcommand and hermes-acp entry point
- hermes-acp curated toolset
- ACP registry manifest, setup guide, and ACP test suite
- jupyter-live-kernel data science skill from the original branch

Also updates the revived ACP code for current main by:
- resolving runtime providers through the modern shared provider router
- binding ACP sessions to per-session cwd task overrides
- tracking duplicate same-name tool calls with FIFO IDs
- restoring terminal approval callbacks after prompts
- normalizing supporting docs/skill metadata

Validated with tests/acp and the full pytest suite (-n0).
@teknium1 teknium1 merged commit 25481d4 into main Mar 14, 2026
1 check passed
@teknium1 teknium1 deleted the fix/restore-acp-from-949 branch March 14, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant