agent-discipline
Run the following command in DeepSeek Harness:
dsh plugin install FranklinZaneDurant/agent-discipline
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install FranklinZaneDurant/agent-discipline inside DeepSeek Harness to install the plugin; the source repository is at https://github.com/FranklinZaneDurant/agent-discipline
About this plugin
A methodology that lives only in a document is one the model is free to ignore. agent-discipline closes that gap by translating the Harness Engineering Methodology spec into three runnable capabilities: an auto-injected prompt section (order -90) that constrains the session lifecycle and core invariants; a scaffolding tool, agent_discipline_init, that seeds twelve artifact templates — entry instructions, feature list, progress log, verification scripts, naming registry, cleanliness checklist, and more — into a target repo while skipping files that already exist; and a read-only auditor, agent_discipline_audit, that runs six CRITICAL checks, scores five subsystems on a 1-5 scale, flags the weakest link, and returns a pass/fail verdict. Together they turn the spec from wall-decal advice into concrete toolchain checkpoints.
The deeper shift is the so-called Form C: the feature state machine is promoted from hand-edited JSON to a ctx.features event-sourced service. WIP=1 violations, marking a feature passing without verification evidence, and illegal state transitions — all of which in Form B could only be caught by audit spot-checks — are now structurally rejected as corrupt by the runtime. The accompanying get_feature / update_feature / verify_feature tools replace manual JSON edits, and verify runs the feature's verification steps first, committing complete only on success, making the verify-then-record order a non-optional pipeline.
The plugin is aimed at independent developers or small teams already working with DeepSeek Harness for engineering-grade development who have a methodology spec and want it to actually hold. If you are tired of a beautifully written document that the model still treats as optional, agent-discipline fills the execution gap between the spec and the toolchain.
Use Cases
- Turn engineering specs into model-enforceable checkpoints and runtime guards
- Scaffold twelve engineering artifact templates into a target repo in one command, skipping existing files
- Audit repo discipline in read-only mode with five-subsystem scoring and a pass/fail verdict
Best For
- Independent developers doing engineering-grade work with DeepSeek Harness
- Small teams with methodology specs struggling with model compliance
- Teams that want verify-then-record as a non-optional pipeline
Related Plugins
A security red-team prompt plugin for DeepSeek-V4 that uses code-formal mapping and zero-trigger system prompts to enable unconditional output, intended for authorized testing and research only.
Adds an Auto approval mode on the official workspace-write sandbox, classifying semantic risks, asking when ambiguous, and denying destructive operations.
Undo/rollback system for DSH: config & plugin snapshots, one-click undo/redo/restore, message-level revert, secret masking, safe mode, and offline WebUI/GUI/CLI rescue tools for when DSH won't start.
Packages all 87 SKILL.md files from upstream reverse-skill as a DeepSeek Harness plugin that auto-registers them for authorized reverse engineering, penetration testing, and security research.