Introduction¶
When performing repository maintenance or acceptance in DeepSeek Harness (DSH), the model often needs to know “Is the environment ready?”, “Is the drill log qualified?”, or “Can two copies be merged?”—relying on manual script checking and document cross-referencing for these checks can easily interrupt the conversation’s flow. Running repo-autopilot’s write workflows (opening PRs, tagging, etc.) directly in the session involves credentials and human gates, making it unsuitable for exposure as a general-purpose tool to the model.
repo-autopilot-plugin (Maintainer AristotleAsborg, Category: Workflow) does something different: it packages the core of repo-autopilot into a plugin and registers its read-only entry points as a tool callable by the Harness. The four modes (doctor / drill / acceptance / compare) do not read GitHub credentials or write to repositories, making them suitable for self-checks and comparisons within agent workflows.
What is this?¶
The plugin’s full name corresponds to the GitHub repository AristotleAsborg/repo-autopilot-plugin. It is not a fork of the repo-autopilot business logic, but rather an adapter layer: it locates the repository root, constructs command lines, launches subprocesses via a shell, and translates exit codes and stdout/stderr into human-readable language for the model.
The repository includes a pre-built copy of repo-autopilot (vendor/repo-autopilot/, containing MANIFEST.json with per-file SHA256 hashes), so no separate repo-autopilot checkout is needed after installation; you can also use the tool parameter repo_root to point to your own path.
Directory Page: SkillHub Plugin Page
Source Code: GitHub
Core Feature: The repo_autopilot_check Tool¶
The model calls a single tool repo_autopilot_check with optional parameters mode and repo_root:
| Mode | Check Content |
|---|---|
doctor |
Seven environment self-checks (state integrity, pending approvals for gates, local small models, GitHub connectivity, etc.) |
drill |
Checks if the 7-day practical drill log is qualified |
acceptance |
Checks if the acceptance step table can be loaded |
compare |
Performs per-file content hash comparison between a source repo and a copy (use before merging two copies) |
The external behavior can be summarized as: execute a read-only command -> interpret exit codes based on built-in semantics (e.g., drill exit code 1 means “less than 7 days”, not a failure) -> return a conclusion and the tail of the raw output. There is no path within the plugin’s scope to read credentials or write externally; repo-autopilot’s write capabilities remain in its own gate process and are not within this plugin.
Environment Requirements¶
| Item | Requirement |
|---|---|
| Python | 3.12 or higher |
| Python Modules | yaml, requests, numpy |
| repo-autopilot | Bundled with the plugin; or provide your own path via repo_root |
| Shell Service | PowerShell-based (pwsh on Windows), used for command construction and execution |
| Node | ≥ 20 (see engines in package.json) |
| git | Optional; the four read-only modes do not rely on git |
The repo-autopilot repository itself has no requirements.txt; dependencies must be installed in the interpreter actually used to run the checks.
Installation and Activation¶
Both installation methods share the same implementation (lib/index.js is generated by host.js). Note: Installing to the profile level writes to %DSH_HOME%\profiles\..., which may cause EPERM within the DSH session sandbox. It is recommended to run the installation script by double-clicking in the File Explorer or executing it in a regular terminal.
One-click Installation (Profile Level, Recommended: “Effective after restart”)¶
Double-click install.cmd. The script will:
- Find Python (
-Python→ env varREPO_AUTOPILOT_PYTHON→python3→python→py -3.12), check version and dependencies, and perform per-file SHA256 verification on the bundledvendor/repo-autopilot/; - Generate
host.local.js(writing the bundled copy path toDEFAULT_REPO_ROOT); - Perform profile-level installation:
dsh plugin --profile <name> add <plugin directory>
Available environment variables: DSH_PROFILE (default standard), DSH_BIN (path to the dsh executable).
Uninstallation:
dsh plugin --profile <name> remove repo-autopilot-plugin
In-session Installation (dynamic Package)¶
Generate host configuration:
python scripts/install.py --emit-host
Pass the entire output of host.local.js to cordis_define to register a Cordis Package (see the “Register as a Cordis Package” section in the repository README for details).
Pre-installation Self-check (Route A, Recommended)¶
Run with Python 3.12+ in the plugin directory:
python scripts/install.py --repo-root <absolute path to repo-autopilot>
If --repo-root is omitted, the script will automatically search upwards from the current directory for the repo-autopilot root. Exit code 0 indicates registration is possible, 1 indicates missing components. After success, it is recommended to pin the interpreter:
$env:REPO_AUTOPILOT_PYTHON = 'D:\PythonEnv\venv\Scripts\python.exe'
(Replace with your actual local interpreter path.)
After installation, you can run a smoke check anytime:
python scripts/smoke.py
python scripts/smoke.py --repo-root <your own repo-autopilot path>
Typical Usage¶
In a Harness session, the model simply calls the tool. Examples:
- After deployment or configuration changes:
repo_autopilot_check(mode="doctor"), to confirm environment and state integrity. - Following up on the 7-day drill:
repo_autopilot_check(mode="drill"), to check if the log meets the standard (pay attention to exit code semantics). - Before release:
repo_autopilot_check(mode="acceptance"), to confirm the acceptance table can be loaded. - Before merging two repository copies:
repo_autopilot_check(mode="compare", repo_root="..."), for per-file hash comparison.
If you are maintaining a separate checkout of repo-autopilot, pass repo_root pointing to that absolute path; otherwise, it defaults to the bundled copy path written at installation time.
Use Cases and Cautions¶
For Whom
- Users already using or planning to use repo-autopilot for repository maintenance, acceptance, and drills, who want the model in a DSH conversation to read-only pull self-check results.
- Users who need to use the same doctor/drill/acceptance/compare logic before merging copies or going live, and do not want to expose write tokens or open PR capabilities at the plugin layer.
Boundaries
- This plugin only covers the four read-only modes; write paths like
/refine-idea,/fix,/create-new-projectstill go through the main repo-autopilot body and human gates, and are not triggered via this tool. - The plugin launches subprocesses on the host with the current dsh process’s permissions; before installation, you should read the source code and the MIT License to confirm the paths and shell behavior comply with your security policy.
- SkillHub etc. are community directories with no official affiliation to DeepSeek / High-Flyer; plugin stars and versions are subject to the GitHub repository (current package version 1.0.0).
Conclusion¶
repo-autopilot-plugin packages repo-autopilot’s read-only checks into a single tool on the Harness: a verifiable vendor copy, zero credentials, and semantic exit codes, facilitating environment health checks, drill logs, acceptance tables, and copy comparisons within workflows. For write operations or the full eight conversational commands, you should continue to use the main repo-autopilot body.
- Directory Page: https://www.skillhub.cn/plugins/AristotleAsborg/repo-autopilot-plugin
- GitHub: https://github.com/AristotleAsborg/repo-autopilot-plugin
- repo-autopilot Main Body: https://github.com/AristotleAsborg/repo-autopilot