Deploy DSH Superagent | Proactive Coding Agent for a GitHub Repo
Mention an agent on a GitHub issue, get a pull request back. Self-hosted.
dsh-superagent
Just deployed
/data
Deploy and Host DSH Superagent on Railway
DSH Superagent is a proactive coding agent for one GitHub repository, built on DeepSeek Harness. Mention its account on an issue, and it opens a ticket, works in its own session and checkout, and answers in the same conversation, usually with a pull request. A web panel shows what needs a person. This template runs it always-on behind a password, with its state on a volume.
This is a community template, not made or supported by DeepSeek. DeepSeek publishes Superagent as a research prototype for reference, not an official product or production-ready software, on a preview release of DeepSeek Harness. Try it on a repository you can afford to experiment on.
About Hosting DSH Superagent
One service, one volume at /data:
- DeepSeek Harness and the Superagent bundle, both pinned, listening only inside the container
- Caddy on the public port, with a password in front of the panel, since DeepSeek Harness has no login of its own
git,gh, Node 22, Python 3 and build tools, so the agent can run your repo's builds and tests
The volume holds the agent's database, sessions, a clone of your repository and one checkout per ticket.
Common Use Cases
- Hand off issues by writing
@your-agent fix thisand get a pull request back - Let an agent pick up small fixes on a repo without keeping your laptop on
- Try DeepSeek's take on an agent that acts only when asked, and speaks only when someone must act
Dependencies for DSH Superagent Hosting
- A dedicated GitHub user account for the agent, with write access to your repository. A GitHub App won't work, because Superagent reads the account's notifications. Don't use your own account: everything the agent writes appears under its name.
- A classic GitHub token for that account with the
repo,read:org,notificationsandworkflowscopes - A model provider key: DeepSeek, or any other provider you add in the panel
Deployment Dependencies
- DSH Superagent on GitHub
- Superagent deployment guide
- DeepSeek Harness on GitHub
- DeepSeek API keys
- Create a classic GitHub token (signed in as the agent account)
Implementation Details
First use:
- Create the agent's GitHub account, invite it to your repository with write access, and accept the invitation as that account. In that account's notification settings, make sure "Participating, @mentions and custom" includes On GitHub. With email only, mentions never reach the agent, and nothing reports an error.
- Deploy with
AGENT_GITHUB_TOKEN,GITHUB_REPOSITORY(owner/name) andGITHUB_ALLOWED_LOGINS(your GitHub login; only these people can ask the agent for work). - Open your Railway domain and log in as
WEB_USERwith the generatedWEB_PASSWORDfrom the Variables tab. - If you didn't set
DEEPSEEK_API_KEY, add a provider under Settings → Models. - Choose Superagent in the sidebar. Overview names anything still missing.
- From an allowed account, comment
@your-agent do something smallon an issue. A ticket appears within about a minute.
Changing the repository or the allowed logins: edit the variable and redeploy, or change them in the panel under Settings. A redeploy only applies a variable that changed, so edits made in the panel otherwise stand.
Proactive work is off by default: in observe mode, Superagent records what it would have picked up without doing it. A person merges every pull request unless you set up auto-merge in the Delivery requirements prompt.
Notes and limits:
- The agent runs commands without approval, as root inside this container, with its GitHub token on the volume. Keep real secrets out of the service's variables and give the account access to only what it needs.
- Requests arrive by polling the account's notifications, about once a minute, so no webhook is needed. Adding a mention by editing an existing issue isn't picked up; post a new comment.
- It uses about 350 MB of RAM once set up, and reached 400 MB on a one-file ticket in a tiny repo. That fits a 0.5 GB plan for trying it out, but each ticket adds a session plus whatever your builds and tests use, so real work needs more.
- Feishu is supported upstream but not set up by this template.
Why Deploy DSH Superagent on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying DSH Superagent on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
dsh-superagent
two-workspaces/dsh-superagentGITHUB_REPOSITORY
The one repository the agent works on, as owner/name. The agent account needs write access to it.
AGENT_GITHUB_TOKEN
Classic GitHub token of the agent's own dedicated account, with the repo, read:org, notifications and workflow scopes. Not your personal account: everything the agent writes appears under this name.
GITHUB_ALLOWED_LOGINS
GitHub logins that may ask the agent for work, separated by commas. Start with just yours.

