Introduction¶
When doing Flutter development with DeepSeek Harness (DSH), the common practice is to switch to the terminal to run flutter run, and then open DevTools or IDE debugging windows separately. Conversation, code, and runtime state are split across multiple interfaces, and features like hot reload, device switching, and memory snapshots often require switching back and forth between windows.
The community plugin dsh-flutter-tools (maintained by nikitafedorov008) is introduced below. It provides a Flutter panel in the DSH sidebar: device and launch, VM Service controls, embedded DevTools, and memory and performance analysis. The goal is to complete these operations without leaving the current session.
What is this¶
dsh-flutter-tools is a client-side plugin for DSH (npm package name dsh-flutter-tools, current version 0.0.1, MIT license). The official description summarizes it as: Provides a Flutter panel in the DeepSeek Harness sidebar, covering devices, launching, VM Service controls, debug toggles, embedded DevTools, memory, and profiling.
In terms of implementation, the host side (Cordis) maintains a persistent flutter daemon under the /flutter route, manages the flutter run --machine subprocess, and connects to the VM Service of running applications via flutter-devtools-mcp. The UI is a panel.html with no build step, and the sidebar tab loads this panel via an iframe.
Core Features¶
Devices and Launch¶
- Devices: Persistent
flutter daemon(event-driven, not polling). Physical devices or available emulators automatically appear in the list when connected; the panel displays the currently selected device (including OS identifier and type icon), clicking allows switching, and selections are remembered per project. - Launch: Select device, mode (debug / profile / release), flavor, and
--dart-definekey-value pairs, then start or stop with one click. The panel readsapp.debugPortand connects to VM Service itself; application logs are displayed within the panel. - Flavor and defines: Flavors are inferred from the project (Android
productFlavors, non-default Xcode scheme); defines are a key-value editor. Both are remembered per project and validated before entering the command line.
Runtime Control and Debugging¶
- Control: Hot reload, hot restart, screenshot (inline), Widget tree, debug paint.
- Debug toggles: Only exposes service extensions registered by the application, such as
debugPaint,showPerformanceOverlay,repaintRainbow,debugPaintBaselinesEnabled,timeDilation,inspector.show.
DevTools and Memory¶
- Embedded DevTools: The DevTools service is hosted by the daemon, and the panel embeds pages such as inspector, performance, cpu-profiler, memory, network, and logging; you can move the same page to a sidebar browser tab.
- App facts and memory: Key-value information such as VM version, platform, pid, isolate, etc.; real-time heap usage, GC button, save memory snapshots, and comparison between the last two snapshots.
Captures, Profiling, and Project Commands¶
- Captures and profiling: Rebuild tracing, HTTP capture toggles; profiling sessions;
collect_performance_session(workspace root path is filled in by the plugin). - Project commands:
pub get,pub outdated,flutter doctor, output is rendered within the panel (pub outdatedis a table with upgradable rows highlighted,flutter doctoris displayed as a checklist).
Other¶
- Detach and Web: After Detaching, the application continues to run, but the panel stops tracking; Web builds can be opened in sidebar browser tabs.
- SDK Resolution: Prioritizes workspace pins (
.fvm/flutter_sdk, then.fvmrc), otherwise falls back to the Flutter onPATH.
Installation and Activation¶
In DeepSeek Harness, open Settings → Add plugin, and paste this repository address into the input box (this field also accepts plugin package names or local directories). The command line can use the same specification for installation:
dsh plugin add …
Replace … with the same spec as the GUI (e.g., GitHub repository address). If the current profile is managed by the desktop application and CLI changes are refused, you should usually install via the plugin manager.
Dependencies and Requirements (from README):
- Flutter SDK is installed (workspace pin preferred,
PATHas backup); npxis available onPATH(pullsflutter-devtools-mcpon first use);- Install
dsh-better-sidebarfor sidebar browser tabs; - Application must be running in debug mode for rebuild tracing; running in profile mode for metrics.
Node engine requirement: >=20 (see package.json).
Typical Usage¶
After installing and enabling the plugin, and meeting the above dependencies, open DSH within the Flutter project workspace and enter the Flutter panel from the sidebar (the client bundle registers the tab, and the body is an iframe pointing to /flutter).
- Confirm the panel lists devices (daemon is connected); launch the emulator via the API if necessary (
POST /flutter/emulator/launch). - Select the device, run mode, flavor, and defines, then launch the application; after successful connection, use hot reload, debug toggles, or embedded DevTools.
- When dependency or environment checks are needed, trigger
pub get,pub outdated, orflutter doctorwithin the panel and view the rendered results directly. - For performance or memory analysis, turn on profiling / capture toggles, or use DevTools related pages and heap / GC / snapshot comparison capabilities.
All external HTTP routes of the plugin are under /flutter and only accept loopback Host (see the Endpoints table in the repository README for details). Local UI iteration can use a dev server outside the repository (does not replace DSH installation):
node dev-server.mjs 9100 /path/to/flutter/project
Implementation Notes (relevant to daily operations): --dart-define is a compile-time parameter; changes require a relaunch, hot restart will not take effect; do not violently kill the process group after Detaching, to avoid killing the detached application.
Applicability and Notes¶
Suitable for: Developers doing daily Flutter development, integration testing, and lightweight profiling in DSH, who want devices, logs, DevTools, and conversation on the same screen.
Classification: The community directory classifies it as “Client”; GitHub stars are 0 (based on directory page information), which does not represent feature completeness; please evaluate it yourself before use.
Security and Permissions: The plugin runs with the permissions of the current DSH process, launching subprocesses like flutter, npx, and accessing the workspace and VM Service. You should read the GitHub source code and MIT license before installation, and enable it only in trusted environments.
The DSH ecosystem emphasizes “Everything is a plugin”; SkillHub Plugin Directory is a community site and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-flutter-tools consolidates Flutter device management, launch parameters, VM Service controls, embedded DevTools, and common CLI output into the DSH sidebar, reducing the need to switch between terminals, browsers, and IDEs. For details, route descriptions, and build notes, refer to the repository README.