Preface¶
When working with agent workflows in DSH, it is common to either write plugins yourself or manually integrate a local tool repository into a Profile. The former involves a lot of repetitive labor, while the latter often leads to pitfalls regarding source code scanning, licensing, and integrity verification. The DeepSeek Harness community maintains plugins as first-class citizens; the directory site is not officially affiliated with DeepSeek or High-Flyer (幻方). If you wish to select reusable capabilities from existing local source code, generate candidate plugins, and undergo a verification process—rather than letting the Host import project code directly—you can take a look at the workflow plugin aios-plugin-forma maintained by BioAIEvolu (GitHub: BioAIEvolu/aios-plugin-forma, current package version 0.2.1, with compatibility listed as DSH 0.1.3+).
What is this¶
aios-plugin-forma is a Forma self-build DSH plugin (Bundle) under the AIOS ecosystem: given a local source code project, it uses versioned forma_* DTO tools to scan sources, identify reusable capabilities, generate candidate plugins after manual review and selection, and export the candidate plugin repository. Source inspection and candidate generation are completed by sub-workers held by the Supervisor; the Host will not import or execute code from the source project.
The repository embeds Forma Core within core/, without relying on the workspace’s core-root environment variables, the full AIOS, or the development-state forma/ tree. Only workRoot and the caller-selected source root enter via the DSH Profile: the Worker only reads from the configured source root and only writes to the managed work root.
Core Features¶
The following describes the capability boundaries defined in the README and consistent with contract files (specs/tools.json, specs/dto.json, etc.).
Scanning and Candidate Generation¶
- Performs capability identification and candidate plugin generation for the configured local source root (the default path is proposal-only: it generates tarballs and reports, but will not automatically install the generated plugin into the currently running Profile).
- Candidate generation directly based on unapproved source code requires an explicit reviewed-source-root record; the bundled CLI will not write such approvals. Therefore, source code selected by ordinary users can be scanned but is blocked from direct-source generation.
Verification, Licensing, and Tamper Protection¶
- Built-in verification and integrity-related workflows; cloud installations verify the SHA-256 of Release assets before executing any DSH commands.
- License scanning is an engineering heuristic signal, not legal advice: Evidence of GPL/LGPL/AGPL, unknown, or conflicting licenses will remain “requires review” or blocking; they cannot automatically pass the build gate unless a
LicenseReviewRecordis constructed independently. - Installation records and CLI output will redact sensitive query parameters such as signed URLs and tokens.
Process Boundaries and Security Model¶
- The Worker is a process boundary, not an OS-level malware sandbox; Node permissions and subprocess boundaries are part of defense-in-depth. Do not point Forma at source code you are unwilling to run yourself.
- Optional local runtime setting
FORMA_NODE_PERMISSION=1to enable Node 24 permission flags; in both modes, subprocess boundaries and path checks remain mandatory.
Capabilities explicitly not supported currently¶
Non-goals listed in the README for this version include: automatic creation/publishing of GitHub repositories, real human-machine GPL/AGPL approval workflows, automatic updates for installed bundles, and production deployment (disposable local Profiles only).
Installation and Activation¶
The plugin is installed into a specified DSH Profile via the in-package binary aios-plugin-forma, not implicitly using %USERPROFILE%\.dsh: --dsh-home, --profile, --work-root, and --source-root are always explicit and required in the CLI. npm install only fetches the package; npx runs the binary. DSH activates the bundle after a standard Profile restart, with no lifecycle scripts modifying the Profile. DSH plugin management relies on pnpm; the CLI resolves pnpm within the caller-specified DSH_HOME before every install/uninstall (uses it directly if on PATH, otherwise places a shim via corepack at <dsh-home>/.forma/shims, pinned to pnpm 12.3.4). If neither is available, it exits with code 10 (PNPM_REQUIRED).
Local tarball Installation (Example)¶
PowerShell example provided in the README (replace paths with your disposable directory and fixture):
npx --yes --package .\aios-plugin-forma-0.2.1.tgz aios-plugin-forma install `
--dsh-home <disposable-dsh-home> `
--profile forma-test `
--work-root <disposable-work-root> `
--source-root <fixture-root>\m1\repo-tool-mit
install completes package installation and Profile configuration (writing a runtimeDigest consistent with the current CLI); it does not connect to a running DSH Host. Whether the tool is activated must be confirmed via a health check after starting or restarting DSH (in JSON output, runtime_health: not_checked). Repeated installation is idempotent; already-installed indicates the version and configuration are unchanged and DSH is not called again.
Cloud Installation (Pinned Release Assets)¶
Only pinned GitHub Release asset URLs are accepted (https://github.com/<owner>/<repo>/releases/download/<tag>/<asset>.tgz); main, latest, or branch archives are not accepted:
npx --yes --package .\aios-plugin-forma-0.2.1.tgz aios-plugin-forma install `
--dsh-home <absolute-disposable-dsh-home> --profile forma-test `
--work-root <absolute-disposable-work-root> --source-root <absolute-source-root> `
--package-url https://github.com/BioAIEvolu/aios-plugin-forma/releases/download/v0.2.1/aios-plugin-forma-0.2.1.tgz `
--sha256 <64-hex-sha256-of-the-release-asset> --max-download-bytes 52428800
Specific tags and SHA-256 are subject to the GitHub Release notes; if the digest mismatches or the response is too large, it fails immediately before any DSH command runs.
Inspection and Uninstallation¶
npx --yes --package .\aios-plugin-forma-0.2.1.tgz aios-plugin-forma inspect `
--dsh-home <disposable-dsh-home> --profile forma-test
npx --yes --package .\aios-plugin-forma-0.2.1.tgz aios-plugin-forma uninstall `
--dsh-home <disposable-dsh-home> --profile forma-test
The CLI default output is a brief Chinese status line ([OK]/[INFO]/[WARN]/[ERROR], no color, no emoji); for automation, add --json (single document on stdout with schema_version: 1), and use --verbose (stderr) for diagnostic details.
Typical Usage¶
Following the installation steps above, after configuring work-root and source-root in a disposable Profile, call the forma_* DTO tools exposed by the plugin via a DSH session to complete: scanning local repositories, generating candidate plugins on the reviewed selection set, and exporting candidate repositories with verification and license-related reports. By default, candidates are not directly installed into the current Profile. If you want to bring capabilities from a local Python/JS/Go tool repository “into” the session, the entire chain should be understood as: Scan → Manual Selection/License Review → Generate tarball/report → Integrate via your release process, rather than trusting arbitrary source code with one click.
The local CLI inspect is used to view the current installation and configuration state without modifying the Profile; for the formal acceptance process, see FORMAL-ACCEPTANCE.md and provenance/README.md in the repository.
Applicable Scenarios and Notes¶
Who it is for: Developers who need to distill DSH candidate plugins from their own or controlled local source repositories within an isolated disposable DSH Profile, and rely on built-in verification and license heuristic reviews. It is classified as a “Workflow” plugin in the community directory (Directory page: https://www.skillhub.cn/plugins/BioAIEvolu/aios-plugin-forma).
Points to note:
- The plugin and sub-workers run with current DSH/Node process permissions; review source code and licenses yourself before installation, and do not point to untrusted repositories.
- The source root is a read boundary, not equivalent to source code approval; direct-source generation additionally requires a reviewed-source-root record.
- License scanning cannot replace legal judgment; GPL-family and unknown licenses cannot automatically pass the gate by default.
- This version is for local disposable Profiles, not for production deployment; Releases are distributed via pinned GitHub Release assets, not using
npm publishas the primary channel.
Conclusion¶
aios-plugin-forma packages Forma’s self-build capabilities into a self-contained Bundle: the Host does not touch source code execution, the Worker completes scanning, candidate generation, and verification within configured read/write boundaries, and the CLI connects installation, integrity verification, and pnpm resolution to explicit DSH Profiles. To verify tool contracts and versions, please refer directly to the GitHub repository README (including Simplified Chinese) and Release notes.
- Community Directory: https://www.skillhub.cn/plugins/BioAIEvolu/aios-plugin-forma
- Source Code and Documentation: https://github.com/BioAIEvolu/aios-plugin-forma