Using the workspace
Switching from OpenHands
Bring your OpenHands skills, microagents, hooks, setup script and MCP servers into Duscode in a few minutes. You read each one before anything changes.
If you have been working with OpenHands, your setup comes with you. Duscode reads the files OpenHands uses, shows you what each becomes, and brings over what you approve.
In a few minutes
- Open your project in Duscode.
- Open Bring your setup: from the first-run prompt in a new task, or Settings → Memory, skills & playbooks → Bring your setup.
- When Duscode finds OpenHands files, the dialog starts with Switching from OpenHands? Click Review everything from OpenHands.
- Read each item. Warnings point out anything worth a second look, such as lines that read like instructions to an agent,
sudoin a setup script, or settings with no Duscode equivalent. - Click Approve and bring over. Nothing changes before this step.
Your OpenHands files stay where they are. Duscode never edits or deletes them.
What works straight away
These need no import. Duscode reads them where they are, in every task:
| File | How Duscode uses it |
|---|---|
AGENTS.md |
Project instructions, always read |
GEMINI.md, CLAUDE.md |
Project instructions, always read |
.agents/skills/<name>/SKILL.md |
Skills. Each is listed by name and description, and its instructions are loaded when they are needed |
~/.agents/skills/<name>/SKILL.md |
Your own skills, for every project |
Skills in .agents/skills keep their triggers and paths:
triggers: when your message uses one of the words, Dus gets that skill's instructions with your message, once per task.paths: the skill is a rule for matching files. Dus gets it the first time it reads, edits or creates one of them.
See Skill files for every field.
What Bring your setup converts
| From OpenHands | In Duscode |
|---|---|
A microagent with no triggers, such as .openhands/microagents/repo.md |
A marked section of the project's DUSCODE.md, which Dus always reads. Importing a newer version later replaces only that section |
A knowledge microagent with triggers |
A project skill in .duscode/skills, with the same triggers |
A task microagent with inputs |
A project skill. Its inputs become a first step: Dus asks for any value your message doesn't give |
A skill with paths in .openhands/skills |
A project skill with the same paths, plus its supporting files |
.openhands/hooks.json |
This project's hooks: Stop runs before a task counts as done, PreToolUse before a tool runs, PostToolUse on the file editor after an edit, SessionStart when a task starts |
.openhands/setup.sh |
The project's setup step. It runs once when a task starts |
.openhands/pre-commit.sh |
A hook that runs before each commit. A failure stops the commit |
MCP servers in ~/.openhands/mcp.json |
Apps & connectors, where you review what each server runs before Dus can use it (MCP servers) |
Hooks
Each hook keeps its command, its timeout and the meaning of its exit codes: exit 2 blocks, other failures are reported. It still gets its input as JSON on standard input, with tool_name and tool_input. Two differences to know:
- Tool names are Duscode's:
bashfor running commands, andedit_fileorwrite_filefor file changes. A matcher forterminalorfile_editoris converted for you. - A hook on each message (UserPromptSubmit) or at the end of a task (SessionEnd) has no Duscode equivalent. The review lists it as not brought over.
Setup and pre-commit scripts
A script runs in Duscode's sandbox, and each run is asked under your permission rules, like any of the project's commands. It runs only while it is exactly the version you approved. If someone changes it, it stops running and Bring your setup shows it as changed until you review it again.
Commands that need sudo don't work in the sandbox. Install those tools yourself, once.
Names and fields
- If a skill with the same name already exists, the item shows a suggested name, such as
github-openhands. Choose a name or leave it unticked. Nothing you have is overwritten. - Fields Duscode doesn't need, such as
versionandagent, are listed in the review with the reason. Fields Duscode doesn't know are listed as not brought over.
What you don't need to bring
- Models and keys. Dus picks the model for each task. If you use your own provider keys, add them in Settings → Models & keys.
- The registry. A skill you installed from a registry into
.agents/skillsalready works where it is.