Foreword¶
The core of DeepSeek Harness (DSH) lies in its plugin architecture. In agent development scenarios, developers need to have a real-time grasp of the project’s AOCI cognitive index and governance status. The dsh-aoci-panel plugin adds an AOCI tab to the session view tab bar, providing index overviews, governance status displays, entry browsing capabilities, and guided installation for projects that have not yet integrated AOCI.
Plugin Introduction¶
This plugin is maintained by donyue7 and is based on the MIT license. By registering a new tab within DSH, it allows users to view the current project’s AOCI assets in read-only mode or perform initialization operations when necessary.
Core Features¶
The plugin mainly consists of the following sections:
- Index Overview: Displays the project name, layout mode, number of index entries, volume status,
composite_identity, baseline file count and update time, the latest verify results, pending reports, and recent operations. - Governance Status: Displays alignment status,
checkresults and next-step suggestions, pending transactions, Recovery status, budget watermarks, Scope alignment and rule counts, Code drift details, and Findings. - Entry Browsing: Supports searching by path, tag, or F description. Clicking an entry expands the full F/R/A/S content. Tags are automatically interpreted into Chinese meanings based on the meta-volume dictionary.
- Installation Wizard: When a project has not yet built AOCI, the panel guides the user through environment pre-checks (confirming aoci CLI and DSH home), configuring installation options (Locale, Scope, Agent, etc.), previewing execution actions, and executing
aoci init/aoci scan, while appending MCP lines to DSH. - Onboarding Card: Accessed via the top “Guide” button, it provides AOCI concepts, lifecycle (Install -> Build -> Use -> Maintain), panel section explanations, and a quick reference for common CLI commands.
- Top Toolbar: Provides repository switching (from registered DSH workspaces), aoci binary switching (auto-detected and sorted by rc version in descending order), data timestamp, refresh, verify (executes
aoci verify), and onboarding access.
Installation and Activation¶
Installation can be completed by executing a one-click script via PowerShell:
pwsh -File scripts/install.ps1
This script performs the following operations:
1. Copies the plugin package to $DSH_HOME/profiles/<profile>/node_modules/dsh-aoci-panel.
2. Appends "dsh-aoci-panel" to the end of the dsh.profile.bundles array in that profile’s package.json (automatically backing up the original file before installation).
3. Prints hints on how to make it effective.
After installation is complete, the DSH host must be restarted for the plugin to take effect.
Typical Usage¶
- View Status: Open the
AOCItab in the session view tab bar to view the current project’s index overview and governance status. - Guided Installation: If the project has not yet built AOCI, simply click “Install” in the panel and follow the wizard to complete
aoci initandaoci scan. - Manual Installation: If manual installation is required, use the script mentioned above, or restart DSH after manual operations.
Usage Scenarios and Notes¶
- Permissions and Read/Write: Except for the installation wizard, the panel is in a read-only state. It does not modify business code,
aoci.txt, or formal.aociassets. The installation wizard only writes AOCI artifacts to the target repository and optional DSH composite patch lines. - Activation Mechanism: DSH requires a restart to activate the plugin after integration. The DSH patch lines written by the wizard also require a host restart.
- Package Type: This plugin is a local package registered only in
dsh.profile.bundlesand not independencies, to avoid conflicts duringpnpm install. - Hot Reload Limitations: The desktop DSH host does not support hot module reloading for
lib/index.js. Modifying host logic (lib/index.js) requires a DSH restart; however, modifying frontend logic (lib/client.js) is updated in-place via HMR in the desktop version without needing a restart. - Caching Mechanism: Panel data caches reside within the current process. Switching tabs or reopening the panel does not trigger recalculation; only clicking “Refresh” or “Verify” will trigger it. It recalculates upon the first opening after a DSH restart.
Closing Remarks¶
dsh-aoci-panel aims to provide DSH users with an intuitive AOCI cognitive panel, solving the issue of invisible index and governance status. Through guided installation and rich display features, it helps developers better maintain agent projects. For complete information, please refer to GitHub.