返回目录
其他 插件

dsh-antfarm

winterhuan/dsh-antfarm

该仓库暂未提供项目说明。

Stars
0
Forks
0
Issues
0
更新
15 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:winterhuan/dsh-antfarm

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README


description: "Original Antfarm teams, persona identities, SQLite progress and native DSH run controls." kind: "package-bundle"

@winterhuan/dsh-antfarm

English | 中文

Summary

Run the original feature-development, bug-fix and security-audit teams in DSH. Each specialist keeps its own identity, persona and workspace, while each attempt gets a fresh Session. Configure Agents, start tasks and inspect step outputs, stories and native transcripts on the workflow board. Version 0.3.3 targets DSH 0.2.2-rc.1 and preserves historical 0.2.0 runs for inspection.

Table of Contents


Use this package

Install and develop

Use Node.js ^22.19 || >=24, pnpm 11.7.0 and a DSH 0.2.2-rc.1 Web profile providing the native standard Agent Preset and local spawn provider. The bundle adds five workflow tools, the /antfarm command, the Session sidebar and the workflow board. It registers no Antfarm role presets.

Install the immutable release tag into a Web profile:

If this profile has the unscoped dsh-antfarm package, remove that layer with dsh plugin --profile web remove dsh-antfarm before installing the scoped release.

dsh plugin --profile web add github:winterhuan/dsh-antfarm#v0.3.3

For source development:

pnpm install --frozen-lockfile
pnpm run typecheck
pnpm run build
pnpm test

Build before linking this checkout into an isolated profile. Set an independent DSH_HOME and point workspace-controller.config.documentsDirectory at a temporary directory before opening Web.

dsh --profile antfarm-dev --from-default-profile web --dump-config > /dev/null
dsh plugin --profile antfarm-dev add link:/Users/winter/dsh-creative/plugins/dsh-antfarm

Restart the development service and hard-refresh Web after rebuilding. Remove the layer with dsh plugin --profile antfarm-dev remove @winterhuan/dsh-antfarm. Daily profiles use the fixed remote release described in the repository handoff; source edits do not update them.

Start and inspect

Open Antfarm workflow board on the left, select a root Session with a project cwd, then choose a workflow and describe the task. The feature-development team appears by default; bug-fix and security-audit teams are also available. Review the team and click Start run without entering a command or opening the right sidebar.

Expand an Agent to edit its name, model, timeout and persona files. Click Validate and save before starting; new tasks use the saved configuration. An empty model inherits the workflow model or DSH default. Advanced configuration contains the complete YAML, save location, copy and override-removal controls.

You can also start from a root Session with a project cwd using the commands below. Coding teams use Git and GitHub CLI through their original agent instructions; prepare the repository, dependencies and credentials appropriate to the task. The selected workflow authorizes its declared PR actions.

/antfarm run --workflow feature-dev implement payment callbacks
/antfarm fix duplicate callbacks
/antfarm audit authentication
/antfarm workflows
/antfarm list
/antfarm status <runId-or-number>
/antfarm stories <runId-or-number>
/antfarm logs [runId-or-number]
/antfarm cancel <runId> [reason...]
/antfarm resume <runId> [guidance...]

The short form /antfarm <task...> uses feature-dev by default. The model has antfarm_run, antfarm_list, antfarm_status, antfarm_resume and antfarm_cancel. Run/resume tools wait for the workflow outcome unless background: true; commands and panel starts return an admission receipt. All reads and controls check the original root Session owner.

The global board shows explicitly authorized Sessions and runs; its team and launch form remain available when there are no runs. You can also open Antfarm in the right sidebar to configure a team, start a run and inspect its steps, outputs, stories, events and child Sessions. Lists use fifty-row pages; visible views refresh, hidden views stop polling, and failed refreshes retain loaded content.

Recovery and retained files

Workers must return an explicit STATUS: done, STATUS: retry or STATUS: failed. Successful replies must contain the step’s expects text; missing status, malformed replies and execution failures consume the existing retry budget. A story verifier’s retry repeats the current story; other steps stop the run and retain feedback. Correct the problem before resuming that step; recovery does not automatically return to another step. Recovery guidance, previous failure feedback and available build/test baselines enter subsequent attempt inputs.

Resume resets the failed step while retaining completed stories and consumed story retry counts, following original Antfarm. There is no additional retry grant. An interrupted native attempt requires transcript inspection and recovery guidance; the host refuses a second live executor and late results from cancelled attempts. Completed or cancelled runs cannot resume.

Stable agent workspaces live under $DSH_HOME/antfarm/workspaces/<workflow>/<baseDir>. Agents receive the owning project directory in their task. Workspaces are retained, and completed loop progress moves into the developer workspace’s archive/<runId>/progress.txt. Local learning in persona files is retained and loaded while its source template is unchanged. An attempt stops only when both the template and local file changed to different contents. Resolve conflicts by saving the merged content in both the workflow definition and workspace file. Workspaces are shared by identity; label project-specific learning with its project.

Historical per-run JSONL data stays under the configured journalRoot. Attributable old runs appear as inspection-only records, with available complete-prefix outputs and native Session links. The executor does not migrate, resume or clean them. Shared agent workspaces have no Run cleanup operation.

Workflow configuration

Discovery checks <project>/.antfarm/workflows, configured workflowDirs, then bundled workflows. Custom workflows use original Antfarm YAML and workspace.files references for IDENTITY.md, SOUL.md and AGENTS.md. Each agent defines its model, role, deadline, workspace and optional native DSH skill names. Available declared skills load from the owning profile; missing optional skills are disclosed to the agent, matching original provisioning.

The workflow editor saves revision-bound project/user copies and refuses escaped paths or stale source. Running work retains its admitted definition. Install/uninstall controls change availability for new runs; removing an active workflow refuses the operation unless its owned runs are cancelled and drained with force.

Native Plugins settings expose runtime configuration. Structural changes restart the service; uncertain attempts remain interrupted.

Setting Meaning
journalRoot Historical journal root; original antfarm.db, events and workspaces use its parent directory.
workflowDirs, defaultWorkflowId, subagentProvider Registry roots, default team and fresh local execution provider.
maxActiveRuns, maxActiveRunsPerOwner, dispatchIntervalMs Host/owner capacity and model-free readiness polling.
healthEnabled, healthIntervalMs Periodic diagnostics; /antfarm health and ensure-execution also work manually.
gitTimeoutMs, subprocessGraceMs Native frontend-diff deadline and subprocess termination grace.
webhookTimeoutMs, webhookTokenEnv Best-effort request deadline and optional environment credential name.

Workflow notifications.url or an explicit Run subscription receives original event fields. URLs omit credentials, query strings and fragments; authentication uses the native environment reference. Delivery failure does not change SQL progress, and host shutdown drains requests.


Understand the implementation

Implementation and development — click to expand

The loader retains the original workflow documents and persona resources. The database owns original runs, steps and stories transitions. Additional dsh_* tables record owner/Session associations and exclusive native dispatch. events.jsonl provides observation and never reconstructs authoritative business state.

The agent adapter associates a reserved child ID with a stable persona before native activation. It uses the shared standard composition and enforces role policy in visible tools and actual dispatch. DSH owns the model loop, native transcript, parent authority and teardown. DESIGN explains recovery and ownership; PARITY defines the comparison and verification limits.


Further Exploration


Model Experience

Workflow tools and child instructions

What the model sees

The root model receives five workflow control tools. Each child receives the selected original persona files, declared skill instructions, project path, resolved step input and prior original context. It returns the requested KEY: value text. Children cannot start nested Antfarm teams. Run UI queries do not enter model context.

Token effect

Full identity, soul and responsibility instructions repeat for each fresh attempt. Prior output, story criteria, progress and verification feedback add task-specific input. Tool results can contain original context and story summaries; inspect long native transcripts separately.

KV Cache effect

The identity section follows the shared native prompt. Persona variables resolve from the current claim context, so its content changes with these values and local learning. Fresh Sessions do not reuse prior conversation history; provider cache reuse depends on matching request prefixes.

Known Limitations and Deferred Work

  • Each Run executes serially. Stable agent identities permit one active attempt each; multiple runs wait when they share an agent.
  • Role policies restrict direct tools. Shell and skill access can still modify files; deployment permissions remain authoritative.
  • Original text outputs and PR links remain worker reports. The Host does not independently approve GitHub reviews or attach candidate-bound test evidence.
  • Interrupted effects can repeat after explicit recovery. SQLite, fresh Sessions and event logs do not guarantee exactly-once external actions.
  • OpenClaw cron installation, dashboard processes and polling-model calls use native DSH equivalents. Default Headless lacks the required preset composition; DSH 0.2.2-rc.1 has no TUI entry.
  • PARITY separates local mechanism evidence from real-model quality, platform and remote release verification.

Dev Note

Working context for maintainers — click to expand

The Git release contains prebuilt Host/Web entries and original persona resources. PARITY records the validation scope.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类其他
规则置信度低

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。