Reading the repo
Reading the repo
How to install on macOS
Towards a More Autonomous Agent System
Saved setup from 4 h ago
Will it work on my device?
SETUP.mdInstructions for an agent that sets up dsh-superagent with its operator. If you are a person, ask your coding agent to read this file and follow it.
The setup follows docs/000-philosophy.md: it takes as little of the operator's attention as possible.
docs/000-philosophy.md, and run the probe below once. Read nothing else until every answer is collected.Run from this checkout, once, and keep the result to yourself:
node -v; pnpm -v; git --version; tmux -V; python3 --version; gh --version | head -1; dsh --version
gh api user --jq .login
command -v lark-cli
grep -l -E 'id: dsh-superagent\b' "${DSH_HOME:-$HOME/.dsh}"/profiles/*/cordis.patch.yml 2>/dev/null
engines.dsh range of package.json. A missing one becomes an item of the plan, not a question. DSH also needs a model provider; if the operator has never run DSH with a model, configuring one is an operator step.gh api user result is the operator's own GitHub login, used as the recommendation in question 5.dsh-superagent entry is an earlier setup: ask whether to continue it, keep its configuration, and read Upgrade in docs/006-deployment.md.Ask in this order, one per message, following the flow of work in docs/001-domain.md: first where Triggers come from, then who may ask for work there, then what the Executor does with a Ticket. Recommendations are in brackets.
Sources: where requests come from.
owner/name?Policy: who may ask for work.
<operator login>: the agent acts only for people on this list, and a short list keeps the team's noise low while the operator learns how the agent behaves.]Execution: what the agent does with a Ticket.
~/src/<name>.]Do not ask about values with a good default; list them in the plan instead:
superagent, a copy of DSH's Web profile kept apart from the profile the operator works in, so it restarts without closing their Sessions; port 3082; state directory <home>/.dsh/state/superagent as an absolute path;agent/;observe, which records proactive work without doing it, and the default rules and prompt sections;Send one message, under 300 words: what will be installed, the accounts and CLIs, the settings to save, the operator steps, and the defaults. Ask for one confirmation.
docs/006-deployment.md, write the CLI wrappers yourself, then send one message with what only the operator can do: create the agent account and, with auto-merge, sign a CLI in as the account that enables it, accept the repository invitation as the agent account, run auth login for each wrapper, and for Feishu create and publish the bot app and run the config init command with its secret. Wait until the operator says it is done, then check each login with <wrapper> api user --jq .login.docs/006-deployment.md. Skip the git clone of this repository: you are in its checkout. Clone the repository of question 2 if question 7 asked for a new clone. With an existing profile, skip the dsh superagent --from-default-profile command, which would replace the profile and delete its cordis.patch.yml, and edit that file instead of replacing it.docs/006-deployment.md, in this order: the github Source, the feishu Source if used, the policy block with the allowed lists (for Feishu, look up the chat ids with the bot's CLI first), and the executor block with a prepare command from the answer to question 7. Then save the prompts with the commit identity of question 8 and the auto-merge answer of question 9 in Delivery requirements. A save that returns restarting: true restarts dsh-superagent: wait until scripts/dsh-superagent status no longer exits 1 before the next request, and read the revisions again from GET settings.docs/006-deployment.md, fix it, and continue. Ask the operator only for what you cannot fix yourself.scripts/dsh-superagent status exits 0 with no setup problem. If you run in the operator's own DSH profile, create the hourly check of the Hourly check section of docs/006-deployment.md with your schedule tool; otherwise give the operator its prompt to schedule there. Then send one message, under 300 words:
@<agent login> <request> on an issue in the repository. A Ticket appears on the overview within about a minute.docs/000-philosophy.md: start narrow, tune for less noise, own what the agent says.docs/, in order.Then run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: xcode-select --install
git clone https://github.com/deepseek-ai/dsh-superagent-prototype.git cd dsh-superagent-prototype
Node.js ^22.19.0 || >=24.0.0
# needs nvm: brew install nvm (or https://github.com/nvm-sh/nvm) nvm install 22
corepack enable pnpm install
pnpm test
Setup has many steps, so an agent does it with you. Ask your coding agent:
Read SETUP.md in this repository and set up dsh-superagent with me.
It asks one short question at a time, shows the full plan once, and then installs and configures everything. SETUP.md is what it follows.
No reports for macOS yet.
Opens a chat with this manual already filled in, for macOS. It uses your own account; gitmanual sends nothing.