feat: add Cline harness support - #266
Merged
Merged
Conversation
Ship slow-powers as a Cline plugin (CLI/SDK/Kanban) and set up Cline tooling for working on this repo. - cline/plugins/slow-powers.js: registers bootstrap.md as a session rule (registerRule) and gates the first switch_to_act_mode of each conversation on hardening-plans (skip-once + per-conversation marker, mirroring hooks/exit-plan-mode's deny-once argument) - package.json: cline.plugins manifest field; cline/ added to files. Skills are auto-discovered from the package root, no wiring needed. - tests: Cline entry in tests/harness/spec.ts, manifest assertions in manifests.test.ts, and cline-plugin.test.ts covering plugin shape and gate behavior - docs: README Cline install section with the IDE-extension caveat; AGENTS.md four-harness update + live-testing instructions - repo setup: .clinerules/memory-bank.md + seeded memory-bank/; .gitignore excludes .cline/plugins/ install artifacts No skill content changed, so no evals are required.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds Cline as a fourth supported harness, and sets up Cline's own tooling (rules + Memory Bank) for working on this repo with Cline.
Cline plugin
cline/plugins/slow-powers.js— dependency-free JSAgentPlugin, declared via theclinefield inpackage.json(which is already version-locked). Install withcline plugin install https://github.com/slowdini/slow-powers.git.setup()registersbootstrap.mdas a session rule viaregisterRule, so the skill-enforcement block is in every session's system prompt — the Cline equivalent of the Claude/Codex SessionStart hook and the OpenCode system-prompt transform.hooks.beforeToolskips the firstswitch_to_act_modeof each conversation with a reason pointing athardening-plans, keyed by a per-conversation tmp marker — the same deny-once, fail-open, can't-hard-lock-plan-mode argument ashooks/exit-plan-mode. Theskip+reasonsemantics match the runtime's owncore.plan-mode-command-guardextension.Repo-local Cline setup
.clinerules/memory-bank.md— Cline's canonical Memory Bank instructions.memory-bank/— the six core files, seeded;activeContext.mdrecords this work and the verification results.AGENTS.md— four-harness update + live-testing instructions. (Cline readsAGENTS.mdnatively — no symlink needed.).gitignore— excludes.cline/plugins/install artifacts.Tests
tests/harness/spec.tsgains theClineharness entry;manifests.test.tsassertscline.plugins[]paths resolve inside the repo withhooks+rulescapabilities.tests/harness/cline-plugin.test.ts: plugin shape, bootstrap registration, gate behavior (skip-once, per-conversation independence, missing-id fallback, fail-open on malformed contexts).Harness tested
Cline CLI 3.0.51 (per PR requirements). Live verification on headless sessions:
cline plugin install <repo> --cwd <scratch>installs and registers the plugin;--forcereinstall picks up edits.<EXTREMELY-IMPORTANT>bootstrap block is present in the agent's instructions, and the bootstrap was behaviorally active (agent invoked a skill on a ~1% match, per the bootstrap rule).One check remains manual:
switch_to_act_modeis not exposed in headless one-shot sessions, so the gate firing end-to-end needs one interactivecline -iplan-mode run (present plan → approve → first mode-switch is skipped with the hardening instruction). The gate logic itself is unit-tested against the documentedAgentBeforeToolResultcontract, and the runtime'sskiphandling + hook context shape were confirmed against the shipped CLI source.Evals
Not applicable — no skill content changed (no behavior-shaping prose touched); this PR adds harness infrastructure only.
Notes for reviewers
.cline/skills/or~/.cline/skills/; no bootstrap/gate there).memory-bank/progress.md): the already-hardened short-circuit (upstream Claude hook causes issues if hardening-plans is invoked autonomously #153 analogue) for the Cline gate, and a cross-harness exploration of installed-plugin-vs-repo skill precedence (Cline's skill registry is last-wins with plugin dirs scanned after workspace dirs).