Introduction¶
The philosophy behind DeepSeek Harness is “everything is a plugin,” which means developers can embed a wide range of interactive capabilities within a plugin. For scenarios that call for visualization, simulation, and real-time feedback, running a sandbox directly in the browser sidebar is often more intuitive than relying solely on backend inference. However, most existing plugins lean toward data display or tool invocation, and there has been a lack of sandbox-style plugins that can intuitively demonstrate capabilities like “following,” “control,” and “perspective switching.”
The Zhifei Simulator (dsh-zhifei-simulator) is a drone follow-shot sandbox that runs in the DeepSeek Harness sidebar. The plugin generates pedestrians, vehicles, and boats in a riverside neighborhood, supports selecting targets via natural language, and lets the drone turn, tilt its gimbal down, and follow the target’s movement.
What It Is¶
- Positioning: An interactive drone follow-shot simulator that runs in the DSH sidebar.
- Maintainer: unhurriedly.
- Category: Client-side plugin.
- Core Value: Describe targets in natural language, complete tracking and perspective control within a sandbox—no real drone or flight controller required.
Core Capabilities¶
Natural Language Tracking¶
Enter commands like “track the white boat,” “track the red car,” or “track a pedestrian” in the scene. The plugin matches targets within the scene. When the target is not unique, it lists candidates (e.g., “1. Pedestrian in pink; 2. Pedestrian in green”). You can reply with “the first one” or “the second one,” or simply click the target directly in the scene.
Follow Distance¶
The follow distance (0–40 m) is configurable in the flight parameters:
- 0 m means locking directly above the target.
- 10 m means maintaining a position 10 m behind the target along its direction of motion.
Frustum and Gimbal¶
- The world view displays the drone, a semi-transparent frustum, and its ground projection.
- The “Gimbal View” panel on the right shows the same scene from the camera’s perspective, with the target always framed within the shot.
Draggable Drone¶
Hold and drag the drone to any position. Once released, it re-approaches the target from the new location. Dragging does not cancel the task—it only changes the horizontal starting position.
Flight Parameters¶
| Parameter | Range | Description |
|---|---|---|
| Altitude | 30–180 m | Default 120 m; changing altitude alters the frustum coverage area |
| Max horizontal speed | 1–40 m/s | If below the target’s speed, the drone will fall behind and the UI displays “Adjust position” |
| Follow distance | 0–40 m | 0 = lock directly above; > 0 = stay behind the target along its direction of motion |
Two Command Modes¶
- Local Commands: The default mode. Fully offline. Recognizes types, colors, landmarks, and indices within the scene.
- Streaming Model · Chat Completions: Connects to a streaming model compatible with OpenAI Chat Completions to parse more free-form phrasing. The page only sends the current scene target list and the command to that endpoint; the model can only return the ID of a target that already exists in the scene. It does not gain flight control authority, nor does it write coordinates. The API Key is stored only in the current page’s memory and is cleared upon refresh.
Chinese IME Safety¶
Pressing Enter while a pinyin composition is still active will not accidentally submit the pinyin as a command.
Installation & Activation¶
Installation is a profile-level operation. Replace web below with the profile you are actually using (check with echo "$DSH_PROFILE").
Method 1: Plugins GUI (Recommended)¶
- Open Plugins and click Add plugin.
- Enter the GitHub shorthand:
github:unhurriedly/dsh-zhifei-simulator
You can also use the full URL:
git+https://github.com/unhurriedly/dsh-zhifei-simulator.git
- Click Install and wait for the download and validation to complete.
- If an Enable now prompt appears, click to enable it; otherwise, find “Zhifei Simulator” in the Plugins list and toggle it on.
- Refresh the Harness page—the Zhifei Simulator entry will appear in the sidebar.
Method 2: dsh CLI¶
# Install from GitHub
dsh plugin --profile web add "git+https://github.com/unhurriedly/dsh-zhifei-simulator.git"
# Or install from a local directory (for development/debugging)
git clone https://github.com/unhurriedly/dsh-zhifei-simulator.git
dsh plugin --profile web add /absolute/path/to/dsh-zhifei-simulator
Uninstall:
dsh plugin --profile web remove dsh-zhifei-simulator
Method 3: Local Directory + GUI¶
- Clone or download the repository.
- In Plugins → Add plugin, enter the absolute path to the repository root, e.g.:
/Users/you/dsh-zhifei-simulator
- Install and enable.
Local-directory installs are symlinked: changes to
index.html,ui.css,app.js,engine.js, orscene.jstypically take effect with a page refresh; changes toindex.js,client.js, or locale files require reloading the plugin.
Post-Installation Check¶
- “Zhifei Simulator” appears in the Plugins list with status “Enabled” and no problem markers.
- A matching entry appears in the sidebar; clicking it opens the sandbox in the main area.
- The page renders both the world view and the gimbal view correctly. If the page is blank, verify that the host can serve the page at
/dsh-zhifei-simulator/.
Typical Usage¶
Open Zhifei Simulator in the sidebar and type in the command box at the bottom:
track the white boat
track the red car
track a pedestrian
- When multiple targets of the same type exist in the scene, the flight controller lists candidates, e.g., “1. Pedestrian in pink; 2. Pedestrian in green.” Reply with the first one / the second one, or click the target directly in the scene.
- Say stop tracking to make the drone hover in place.
- Drag the drone to change its horizontal position; it will re-acquire the current target after release.
- The World View in the bottom-right can be rotated by dragging and zoomed with the scroll wheel; dragging the drone itself does not rotate the view.
- The Gimbal View on the right is a simulated camera feed, not a real video stream.
Connecting a Streaming Model¶
The default Local Commands mode is offline and only recognizes types, colors, landmarks, and indices within the scene. To support more free-form phrasing:
- Click Local Commands in the top-right of the console, or the gear icon.
- Select Streaming Model · Chat Completions.
- Fill in the full endpoint URL, model name, and API Key.
- The endpoint must support browser CORS requests and SSE streaming responses.
The page only sends the current scene target list and your command to that endpoint; the model can only return the ID of a target that already exists in the scene. It does not gain flight control authority, nor does it write coordinates. The API Key is stored only in the current page’s memory and is cleared upon refresh.
Use Cases & Caveats¶
- Suitable for visually demonstrating capabilities such as “following,” “control,” and “perspective switching”—e.g., teaching demos, rapid prototyping, or interaction design in combination with a natural language model.
- This is an interactive simulator. It does not connect to real drones, flight controllers, or video streams, and does not issue any real flight commands.
- Targets in the scene move in loops along the river, roads, and pathways; the data is not based on real maps.
- In streaming model mode, the model is only responsible for parsing natural language into scene targets; tracking, gimbal, and speed constraints are still enforced by the local simulation engine.
- The model endpoint must allow browser cross-origin access; no CORS proxy is provided.
- When the follow distance approaches the scene boundary, the trailing point is clamped to the flyable area, so the actual distance may be slightly less than the set value.
In Closing¶
The Zhifei Simulator provides a draggable, configurable drone follow-shot sandbox in the DeepSeek Harness sidebar, enabling developers to quickly validate natural language control and perspective-switching logic without touching real hardware.
- Plugin directory page: https://www.skillhub.cn/plugins/unhurriedly/dsh-zhifei-simulator
- GitHub repository: https://github.com/unhurriedly/dsh-zhifei-simulator