Skip to content

Add ECA (Editor Code Assistant) agent - #249

Draft
nezhar wants to merge 2 commits into
mainfrom
eca-agent
Draft

nezhar wants to merge 2 commits into
mainfrom
eca-agent

Conversation

@nezhar

@nezhar nezhar commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Registers ECA (Editor Code Assistant) as agent eca (shortcut vp e, image vibepod/eca:latest). The image is VibePod/vibepod-agents#33; this PR's default-images job fails until that image is published.

vp run eca starts eca-cli, ECA's terminal client, which runs the image's eca server over stdio.

Mount /config, HOME=/config, plus XDG_CONFIG_HOME, XDG_CACHE_HOME, XDG_STATE_HOME under it (also set in the image)
--ikwid --trust: tool calls that would ask run without asking; deny rules still apply
Task mode eca-cli -p [flags] -- "<prompt>" (headless_options_before_prompt: eca-cli rejects unknown options and joins the other arguments into the prompt)
Skills /config/.config/eca/skills
ACP, resume hint, llm/--provider none

Why the XDG variables. The ECA server is a GraalVM native image and, like any JVM program, takes ~ from the passwd entry rather than $HOME. ECA keeps its config in $XDG_CONFIG_HOME/eca, its logins (db.transit.json) and per-workspace chats in $XDG_CACHE_HOME/eca, and eca-cli its state in $XDG_STATE_HOME/eca. Pinning all three keeps that state on the mount even when the passwd home is not /config. That happens under rootless Podman with keep-id, where Podman generates the entry; without the variables, logins could land under the working directory, which is the project. For the same reason, skills are mounted into $XDG_CONFIG_HOME/eca/skills (ECA's own global skills dir) rather than ~/.agents/skills, and vp import eca does not list the shared ~/.agents/skills. This is noted in AGENTS.md.

Import. ~/.config/eca is copied by category: AGENTS.md and rules/ as memory; skills/, commands/ and agents/ as skills; hooks/ as hooks; the rest as settings. config.json is classified as a credential, because /login saves the API keys of key-based providers into it (same treatment as Copilot's config.json). From ~/.cache/eca, only db.transit.json (OAuth and MCP logins, a credential) is a root. Chats there are keyed by each workspace's host path, which never matches /workspace, so the rest of the cache is neither copied nor reported.

No llm_env_map. Providers live in ECA's config.json. The built-in OpenAI provider speaks the Responses API, so an OpenAI-compatible base URL can't simply be routed through it. ECA is added to test_unsupported_agent_rejected_before_key_read and to the "rejected" note in docs/providers.md.

Docs: a new "ECA (Editor Code Assistant)" section, the agent tables, and a row in the per-project state table (eca-cli -c and /chats see every project at /workspace; the workaround is a per-project XDG_CACHE_HOME, which moves logins too). There is no screenshot yet, since the image has not been run.

Testing

  • python -m pytest: 1775 passed, 3 skipped (with a throwaway VP_CONFIG_DIR)
  • ruff check, ruff format --check, mypy src, scripts/check_import_docs.py, mkdocs build --strict: clean. The one INFO about #ikwid-mode---ikwid predates this change.
  • Flags and paths were taken from the eca-cli and ECA sources (core.clj option spec, headless.clj, upgrade.clj; cache.clj, skills.clj, network.clj, oauth.clj), not only from the docs.
  • CI: the test matrix (Ubuntu 3.10–3.15, macOS, Windows), lint-typecheck, pre-commit, docs and integration jobs pass. default-images fails only on vibepod/eca:latest, as expected until Vibepod fails to start on MacBook until Docker is restarted #33 in vibepod-agents is released.
  • The image itself builds and passes its smoke test in Add ECA (Editor Code Assistant) image vibepod-agents#33 (eca 0.173.1, eca-cli 0.1.107 on amd64 and arm64).
  • Not run: an interactive session against the image. This session had no Docker daemon of its own.

To check live (with VP_IMAGE_ECA=vibepod/eca:local)

  • First run, /login (Copilot device code, Anthropic code to paste), the login persists across runs
  • OpenAI subscription login with vp run eca -p 127.0.0.1:1455:1455 (the ECA OAuth callback binds all interfaces, per the code; not tried)
  • vp run eca -- -c "two words" and vp run eca --ikwid
  • vp task create eca "Say hello" with and without --ikwid; vp board work -a eca parses the result block from -p output
  • vp skills add … shows up in eca-cli's / picker
  • vp logs start: ECA's requests show up in the dashboard
  • vp import eca --dry-run on a host with ECA
  • Rootless Podman: logins and chats under ~/.config/vibepod/agents/eca/, nothing written into the workspace
  • Add docs/assets/eca.png and the README gallery entry

Possible follow-ups

  • ECA's editor plugins drive eca server over stdio. A raw-stdio mode, like --acp but for ECA's protocol, would let them run the server in a VibePod container.
  • ECA Remote (control a session from web.eca.dev) needs an inbound port (7777) and a reachable host name.
  • --provider support via a generated custom provider in ECA_CONFIG, once verified against a real endpoint.

https://claude.ai/code/session_01M6h7CCHj8pyyh7P8UWKzHW


Generated by Claude Code

vp run eca starts eca-cli, ECA's terminal client, which runs the image's
eca server. The server takes ~ from the passwd entry rather than HOME,
so the spec pins XDG_CONFIG_HOME, XDG_CACHE_HOME and XDG_STATE_HOME on
the /config mount, and skills are mounted into $XDG_CONFIG_HOME/eca/skills
instead of the shared ~/.agents/skills.

--ikwid adds --trust. Tasks run eca-cli -p with the prompt after --,
since eca-cli rejects unknown options and joins the other arguments into
the prompt. No ACP (ECA has its own protocol), no resume hint, and no
llm wiring: providers live in ECA's config.json.

vp import eca copies ~/.config/eca by category and, as credentials, its
config.json (where /login saves API keys) and the logins file in
~/.cache/eca. The rest of the cache, chats keyed by host workspace paths
included, is neither copied nor reported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6h7CCHj8pyyh7P8UWKzHW
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6h7CCHj8pyyh7P8UWKzHW
@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

2 participants