Repository navigation
Polier v4.0.0
Built for DeepSeek Harness, without commands. 3.0 made Polier a software factory; 4.0 makes it live inside the DSH agent loop. Nobody types /pl or a Python line any more: the model sees the state on every step, the human talks plainly, and every human decision is a real DSH approval prompt.
Live context. A <polier> block in the runtime context of every model step (ctx.systemPrompt.context): project, role, the factory station with its open items, the running task with scope and gates, ready tasks, policy limits, pending approvals and the next sensible move. A short guide joins the system prompt of sessions inside a Polier project. Both are empty elsewhere. Config context: false switches them off.
Decisions are approval prompts. Built on the harness approval service (ctx.approval), answered in the DSH UI and logged in the session:
pl_mode— worker and reviewer switch at once; lead and off ask the owner first.pl_factoryadvance— closing a station asks the owner; the station recordsapproved_by: <owner> (approved in DSH).pl_approval— writes the Polier approval request, asks the owner and records granted or denied.
Without an answerer (headless) every prompt fails closed.
Tools instead of the /pl command. New pl_mode, pl_task (bind and claim, or release) and pl_approval; pl_factory gains reopen and advance and works before a board exists; pl_status adds the factory line and the policy summary. pl_state and pl_factory regenerate STATUS.md and docs/factory.md after every recorded change. Planning writes to factory.json need no lead mode while no task runs. Guard messages point to pl_approval and pl_mode instead of shell commands. The /pl command is gone.
Goals, subagents, Ralph. The guide and prompt/dsh.md show how a DSH goal can carry a whole station, how a fresh subagent reviews in pl_mode reviewer, and why Ralph and subagent reports are claims, not evidence.
DSH only. Removed: the Claude Code adapter (adapters/claude-code/), the MCP server (tools/mcp.py), install.sh, update.sh, drift detection (tools/drift.py, tools/manifest.py, tools/manifest.json) and core/gates.py. The plugin moved from adapters/dsh/ to plugin/ and is split into lib/context, lib/guard, lib/session, lib/tools and lib/factory. Dev dependencies follow DSH 0.2.2 (@deepseek-ai/cordis 4.1.0, dsh-* 0.2.2-rc.1, the native tool executor for tests).
No examples, no dead code. examples/ is gone; the two reference projects the tests and CI need live in tests/fixtures/. Removed functions only tests still used (write_denial, stop_message, is_tracked, exhausted, task_id_pattern, snapshot_changed, …), unused constants and helpers, and fixed a broken error message in the board's resources.services check. CI runs pyflakes.
For contributors. A root AGENTS.md describes the layout, the commands and the rules for changing Polier.
Compatibility. Project files are unchanged: board, policy, runs, reviews, approvals, gates, claims, slots, worktrees and factory.json. Update with dsh plugin --profile <name> add github:atshv/polier and restart. Claude Code and MCP users stay on 3.0.0 (#v3.0.0).