Repository navigation
DeepSeek Harness gets its own desk; AGENTS.md lets an agent install from the repo link - #12
Conversation
…rmes The operator: a desk opened in dsh "should stay in DeepSeek Harness only — not linked or connected". The dsh adapter pointed its MCP server at the Hermes console on 8787, so both agents shared one chart, one paper account, one write token and one set of studies, and dsh's in-app study chat shelled out to the Hermes CLI. - console/backend/instance.py: TRADERS_AGENT_INSTANCE=NAME gives a console its own token, paper account, chart and study files (~/.local/state/traders-agent/instances/NAME/), its own Edge Stats workspace and engine (console port + 2), and no Hermes chat unless HERMES_CLI is set. A bad name stops the console with one sentence. Unset is exactly the Hermes desk as before. Explicit path variables still win; market data stays shared on purpose. - service-linux.sh / service-macos.sh: a named desk gets its own unit / launchd label, pid and logs, so it never replaces or stops the default one. - install-dsh.sh: desk `dsh` on 8788 by default; --console runs it, --service installs it, --doctor fails if the console on dsh's port is another desk, --uninstall only removes dsh's own service, --shared is the explicit way back to one desk. - /api/health reports the desk; tools/sync-live.sh ships instance.py. Verified with two real consoles side by side (test_instances.py and in Chromium): different tokens, a token refused across desks, a dsh agent command switches dsh's chart to ETHUSDT while the Hermes chart stays on BTCUSDT, the study chat refused on the dsh desk. Full suite 1,350 OK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
… the plugin
The operator wants users to hand their agent this repository's link and have it install the plugin.
AGENTS.md is written for that agent, and the README points to it in its first lines ("If you are an
AI agent ..."):
- tell the user what will happen first; no sudo; no optional extras unless asked; stop on failure
- check the machine and tell the host apart (Hermes / DeepSeek Harness / other)
- the exact commands per host and the line that means success
- the two warnings an install can print (no `hermes` on PATH, no systemd) and what to do
- verify with the doctor and /api/health's `instance`, then what to tell the user (an agent cannot
click inside their app)
- a troubleshooting table that quotes the scripts' real error lines; update and uninstall
test_agents_guide.py fails if a flag the guide runs or a message it waits for stops existing in the
scripts (checked by breaking the guide twice on purpose).
Following the guide on a fresh home found a real bug: `./install.sh --doctor` checked the first
python3.11+ on PATH (a 3.14 without mcp) while the install ran the console with the one that has it,
and reported FAIL on a working install. resolve_py now prefers an interpreter with mcp, the order the
service and setup-python already use. Fresh run: 7 s to a console on 8787, doctor clean; dsh desk on
8788, doctor "all checks passed". Full suite OK.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS
|
Architecture Inside the changed components — 1 viewComponent view — Instance isolation Internal resolution of desk state, token stores, broker accounts, and chat restrictions.
Data flow Review 3 findings · reviewed
|
Two commits on top of
main(c51fffd). Both are fast-forwards with no merge needed.1. The DeepSeek Harness gets a desk of its own (
494d8d9)The operator asked that a desk opened in dsh "should stay in DeepSeek Harness only — not linked or connected" to the Hermes one.
Before: the dsh adapter pointed its MCP server at the Hermes console on 8787. Both agents shared one chart, one paper account, one write token and one set of studies. dsh's in-app study chat ran through the Hermes CLI.
Now:
console/backend/instance.py:TRADERS_AGENT_INSTANCE=NAMEgives a console its own state.~/.local/state/traders-agent/instances/NAME/.HERMES_CLIis set.service-linux.sh/service-macos.sh: a named desk gets its own unit (traders-agent-NAME.service) or launchd label, plus its own pid file and logs. It never replaces or stops the default one.install-dsh.sh: defaults to deskdshon 8788.--consoleruns that desk and--serviceinstalls it.--doctorfails if the console on dsh's port is another desk.--uninstallremoves only dsh's own service.--sharedis the explicit way back to one desk./api/healthreports which desk answered (instance).tools/sync-live.shnow shipsinstance.py. Without it a synced install would fail to start; the suite caught this.2.
AGENTS.md: give an agent the repo link and it installs the plugin (da61de3)A guide written for AI agents. The README's first lines point agents to it ("If you are an AI agent …").
It covers:
hermeson PATH, no systemd);/api/health, and what to tell the user at the end;test_agents_guide.pyfails if a flag the guide runs, or a message it waits for, stops existing in the scripts. I checked this by breaking the guide twice on purpose; both breaks were caught.Bug fixed along the way: following the guide on a fresh home showed that
./install.sh --doctorreported FAIL on a working install. The doctor checked the first Python 3.11+ on PATH (a 3.14 withoutmcp), while the install ran the console with the one that has it.resolve_pynow prefers an interpreter withmcp, the same order the service already uses.Test plan
TRADER_CHART_REQUIRE_NODE=1 TRADER_CHART_REQUIRE_MCP=1.ruff,node --check,bash -non every shell script,vendor-sums --check,modulepreload --check,verify-plugin.mjsand its self-test.test_instances.pyruns two real consoles side by side:AGENTS.md:./install.sh --allhad the console answering on 8787 in 7 s, and the doctor was clean after the fix.Generated by Claude Code