Preface¶
When asking agents to plan trips in DSH, common problems are: plans written inside the conversation, with locations and routes hard to reconcile; a model revision can overwrite arrangements you already approved. If you also need to check train tickets or Xiaohongshu guides, you often have to open separate tools or hand-write scripts to hook up MCP.
dsh-roam-planner (maintainer AntonyLang, categorized as a client plugin) turns itinerary planning into a workspace inside DSH: a sidebar map panel, session-level itinerary storage, and a set of roam_* tools; optionally mounts external MCP sidecars (e.g. 12306, Xiaohongshu) via configuration. The following describes its positioning, installation, and typical usage. See the GitHub repository README and the SkillHub directory page for factual sources.
What Is This¶
The plugin’s full name is dsh-roam-planner (npm package name is the same, current version 0.2.3, MIT license). In one sentence: within DeepSeek Harness, generate travel plans via conversation, view them on a map panel, and only formally adopt them after your confirmation.
The core design is Draft → Candidate → Adopt: the agent only modifies the draft; roam_save_candidate freezes it as a pending candidate; only an explicit Adopt (roam_adopt) commits it, preventing hallucinated modifications from overwriting accepted itineraries.
Runtime requirement (engines.dsh): DeepSeek Harness ^0.2.1-rc.2. Basic capabilities (OpenStreetMap + OSRM geocoding and routing) work without Docker, a database, or additional API keys.
Core Features¶
Client and Host¶
After installation and restarting DSH, the host side loads roam_* tools and /roam/api routes; a Roam Planner icon appears in the sidebar, and the agent gains itinerary-related tools. The panel periodically polls state, following the agent’s editing progress.
Itinerary Tools (Excerpt)¶
| Tool | Purpose |
|---|---|
roam_get_snapshot |
Read the current session itinerary (creates an empty draft if none) |
roam_prepare_draft |
Modify title/number of days and stops (stops need only names; the host geocodes them) |
roam_save_candidate |
Freeze the draft for review |
roam_adopt |
Commit the candidate as the formal itinerary |
roam_fill_routes |
Fill in missing leg geometry and durations (Amap or OSRM) |
roam_forecast |
Weather at each day’s first stop (read-only) |
roam_search_places |
Keyword search for real places (requires Amap Key) |
roam_mcp_servers / roam_mcp_tools / roam_mcp_call |
Access configured MCP sidecars |
Map and Geo¶
The default basemap and geocoding can be configured in the config section of the plugin entry in cordis.patch.yml (see below). Without a key you can use Nominatim + OSRM; for addresses in China, it is recommended to fill in an Amap Web Service Key (not a JS API Key) under Settings → Roam Planner → Amap Web-service key, which is written into the host credential store ROAM_PLANNER_AMAP_KEY and takes effect on the next query, without a restart.
Data Storage¶
Itineraries default to the DSH storage domain $DSH_HOME/storages/roam_planner.json; if the storage domain is unavailable, it falls back to <dataDir>/.roam/store.json. The Amap key is not stored in the itinerary JSON; the basemap choice is a page-local preference.
Optional MCP Sidecars¶
Train tickets and Xiaohongshu notes are not built in. The plugin supports mounting MCP via stdio or streamable HTTP through configuration, launching the process on first invocation. The repository provides server/railway-mcp.js as a proxy for a third-party 12306 sidecar (parameters include from_station, to_station, date, time_from/time_to, station, limit, etc.). 12306-related projects declare non-commercial use only; the Xiaohongshu MCP requires one-time login and provides HTTP on :18060. See the README section “External MCP sidecars” for specific YAML examples.
Installation and Activation¶
Run in the DSH environment (replace <this package or directory> with the local package path or directory):
plugin_manager install_bundle <this package or directory>
Then restart DSH: once the host loads the tools and routes, Roam Planner becomes visible in the sidebar, and the agent can use roam_* tools.
Optional configuration options (plugin entry config, excerpted from the README):
| Key | Default | Meaning |
|---|---|---|
basemapId |
osm |
Basemap used on first run |
basemaps |
null |
Custom basemap directory; null uses built-ins |
geocoder |
nominatim |
nominatim, amap, or off |
amapKey |
null |
Deployment-level key; the key saved in Settings takes precedence |
defaultCity |
null |
Appended to place names, e.g. 苏州 |
dataDir |
null |
JSON fallback storage directory |
Typical Usage¶
With the installation and restart above done, reproduce as per the README “First run”:
- Click Roam Planner in the sidebar; an empty panel prompts you to ask the agent for a plan.
- Send a request like the following in any session:
Plan two relaxed days in Suzhou for me and my parents
- The agent will typically call
roam_get_snapshot,roam_prepare_draft(place names only), androam_fill_routes; the panel updates within seconds. - After
roam_save_candidateis called, a green Adopt plan appears; adopt after confirming. - Editing after adoption reopens the draft, and the panel can show the diff against the adopted version.
Use Cases and Notes¶
Who it’s for: developers or personal users already using DSH ^0.2.1-rc.2 who want to draft multi-day itineraries in natural language, view stops and routes on a map, and lock in a final plan via manual adoption; if train tickets or Xiaohongshu are needed, you can configure MCP yourself, accepting the corresponding sidecars’ installation and license constraints.
Permissions and security: the plugin runs with the permissions of the current DSH process and accesses the network for geocoding, routing, and optional MCP; before installing, please read the repository source, LICENSE, and PROVENANCE.md. The community directory SkillHub is an independent site with no official affiliation with DeepSeek / High-Flyer.
Troubleshooting (excerpted from the README): panel shows host routes unavailable → host not activated, restart DSH; itinerary exists but map is blank → basemap tile loading failed; routes shown as straight dashed lines → call roam_fill_routes; weather chip missing → no forecast data available for that date.
Conclusion¶
dsh-roam-planner brings “conversation-based itineraries, map-based reconciliation, explicit adoption” into the DSH client workspace, while leaving room for MCP extensions such as train tickets and guide searches. For more information, visit the directory page https://www.skillhub.cn/plugins/AntonyLang/dsh-roam-planner and GitHub https://github.com/AntonyLang/dsh-roam-planner .