dsh-plugin-jules: Delegate coding tasks to Google Jules in DeepSeek Harness

Introduction

When running models in Harness, what a single conversation turn can accomplish is often constrained by context and tool-call limits. For work that actually modifies repositories, runs commands, or opens PRs, if everything is piled into the same turn, the turn either drags on or, if it gets interrupted midway, no one is left to pick up where it stopped.

Google Jules is a remote coding agent that runs on a clone of your repository in the cloud: you provide a task and a repository, and it asynchronously plans, edits files, executes commands, and can create pull requests on Google’s side. The DeepSeek Harness community plugin dsh-plugin-jules (maintainer rbviz, category: Workflow) wraps Jules’s v1alpha REST API into ten jules_* tools, allowing Harness models to delegate long-running tasks, follow up in the background, approve plans, and fetch unified diffs back for local use. The plugin itself has no runtime dependencies and communicates directly with the documented Jules API.

What This Is

dsh-plugin-jules is a profile bundle for DeepSeek Harness: after installation it injects a Jules capability layer into Harness (loader id jules). The npm package name is dsh-plugin-jules; in the current documentation the version is 0.2.0 and the license is MIT.

It addresses the bridge between “remote agents and Harness’s turn-based model”: you get the session id immediately after creating a session, so work can continue in the cloud; via jules_watch you register a background watch and Harness jobs notify you on completion, so the model doesn’t have to poll for status; requirePlanApproval and jules_approve_plan let you review a plan before files are changed; and jules_patch returns a paginated, git apply-able diff.

If you are still on Harness 0.1.x, you should keep using dsh-plugin-jules@0.1.x; the 0.2.x plugin line depends on the 0.2.x jobs API and cannot be loaded on the older runtime.

Environment and Prerequisites

  1. DeepSeek Harness: 0.2.1-rc.2 or newer, and still within 0.2.x; you need a profile with the base bundle (providing tools, systemPrompt, jobs, and the storage stack). If engines.dsh is not satisfied, Harness will refuse to load at startup and explain why.
  2. Node: 22 or newer.
  3. Jules account: at least one repository connected via the Jules GitHub App.
  4. Jules API Key: created at https://jules.google.com/settings; each account can have at most three keys, and each key is displayed only once.

Core Capabilities

Delegation and Lifecycle

  • jules_create: pass prompt, with optional source, branch, title, requirePlanApproval, autoCreatePr; returns the session id immediately, and the cloud task does not depend on whether the current turn is still listening. Omitting source creates a session without a repository.
  • jules_sources: lists repositories connected to Jules; the target repository for jules_create must first appear in this list.
  • jules_list / jules_status / jules_activities: list recent sessions, view single-session details (status, plan, approvals, PR, generated files, recent commands and messages), or read the event log.

Plan Approval and Conversation

  • When requirePlanApproval is enabled, the agent will not modify files until the plan is approved; after reading the plan, call jules_approve_plan to give the go-ahead.
  • jules_send_message: answer questions, correct the plan, or append follow-up work.

Waiting for Results and Retrieving Diffs

  • jules_watch: background watching that returns a job id; the documentation suggests ending the current turn after registering, then handling things once the completion notification arrives.
  • jules_wait: blocking wait within the same turn (use when there are no other steps to run in parallel).
  • jules_patch: returns the latest unified diff, lists all touched files, and supports offset / nextOffset pagination for large diffs.

Session-id parameters can be written as 123, sessions/123, or a Jules console URL, and so on (the README has a note on the URL form; the truncated part does not show the full format).

Installation and Activation

The plugin declares dsh.bundle and is installed via dsh plugin under a profile (forwarded to pnpm). If the profile doesn’t exist yet, the first command creates it.

Registry installation ships a prebuilt lib/, so no compilation is needed on your machine, and no allowBuilds is required:

dsh plugin --profile <your-profile> add dsh-plugin-jules

Restart Harness before the new bundle takes effect; the running process still uses the bundle set from startup. You can use the following command to confirm the layer composed successfully:

dsh --profile <your-profile> --dump-config | grep -A 3 'id: jules'

Upgrades and removal also go through the plugin subcommand, and each change requires a restart:

dsh plugin --profile <your-profile> update dsh-plugin-jules
dsh plugin --profile <your-profile> remove dsh-plugin-jules

Install from GitHub

When installing from source on GitHub, pnpm 10+ may fail the first time because of the prepare script, and prompt you to add the following to the profile’s pnpm-workspace.yaml:

allowBuilds:
  dsh-plugin-jules: true

The documentation explains: allowBuilds means allowing this package’s code to be executed locally during the installation stage (outside the agent sandbox); you should only grant it to trusted sources, and you can pin a commit with github:rbviz/dsh-plugin-jules#<sha>. The official command is:

dsh plugin --profile <your-profile> add github:rbviz/dsh-plugin-jules

A Git install runs prepare to link peer dependencies and compile src/ into lib/; an npm install skips prepare.

Authentication Configuration

  1. Create an API key at https://jules.google.com/settings.
  2. Reference the key name via the config item apiKeyEnv (default JULES_API_KEY); do not write the key directly into the config file. You can export the environment variable before starting Harness, or use the Harness credential store.
export JULES_API_KEY=...

The resolution order is: literal apiKey → ctx.credentials → startup environment; after rotating the key, the next request takes effect immediately, with no reload needed. When no key is configured, the tools return an actionable error message instead of a bare 401.

If the bundle is already installed, do not also insert a same-id jules entry with an absolute path in cordis.patch.yml; otherwise startup will fail due to a duplicate loader entry. To change behavior, override the whole config section by overriding the same-id line.

Typical Usage

The quick path given by the README is as follows (the ellipsis in the middle represents waiting for the background notification):

jules_sources                     # view repositories Jules can operate on
jules_create                      # prompt + source + requirePlanApproval + autoCreatePr
jules_watch                       # returns a job id; then end the current turn
  ... completion notification arrives ...
job_output                        # read the report
jules_status                      # read the plan, then jules_approve_plan
jules_patch                       # review or land the diff

Here is a more day-to-day delegation order:

  1. Use jules_sources to confirm the target repository is connected.
  2. Use jules_create to submit the task; set requirePlanApproval: true when you want a human gate on changes, and set autoCreatePr when you want Jules to open a PR automatically (see the tool schema for parameters).
  3. Call jules_watch, get the job id, then end the turn to avoid spinning on polling.
  4. After receiving the completion notification, use job_output to see the summary and jules_status to see the plan; if the plan is pending approval, run jules_approve_plan.
  5. Use jules_patch to fetch the diff, review it locally, then git apply it or merge it per your workflow.

Suitable Scenarios and Notes

Who it’s for: teams or individuals already developing agents on DeepSeek Harness 0.2.x who want to hand “cross-file changes + commands + PRs” to Google’s cloud Jules while keeping plan approval and diff retrieval capabilities inside Harness.

Permissions and security: the plugin accesses the Jules API with the permissions of the current Harness process and its configured credentials; when installed from GitHub with allowBuilds enabled, the package’s build scripts run locally during installation. Read the repository source and the MIT license before installing, and only allow builds for trusted sources.

Ecosystem note: the DeepSeek Harness community plugin directory (e.g., the entry page on SkillHub) is an independent site with no official affiliation with DeepSeek / 幻方 (High-Flyer); the facts in this article are based on the plugin’s GitHub README and package metadata.

Links

  • Directory page: https://www.skillhub.cn/plugins/rbviz/dsh-plugin-jules
  • GitHub: https://github.com/rbviz/dsh-plugin-jules
  • Jules: https://jules.google.com
  • API Key settings: https://jules.google.com/settings

dsh-plugin-jules collapses Jules’s long-running cloud coding flow into a toolchain Harness can orchestrate: delegate, watch, approve the plan, fetch the diff. It fits well as a Workflow-category plugin on an existing 0.2.x profile.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye