dsh-goal
开发工具 活跃维护

dsh-goal

GooDAnDReaDY/dsh-goal

轻量级功能扩展插件,原生支持Goal模式设定与自主任务执行,自带粘性置顶顶栏横幅,可快速接入对应框架使用,交互简洁无冗余配置

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
99 KB
仓库大小
2 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:GooDAnDReaDY/dsh-goal
git clone https://github.com/GooDAnDReaDY/dsh-goal.git
git clone git@github.com:GooDAnDReaDY/dsh-goal.git
README.md main

📦 @goodandready/dsh-goal

Autonomous Goal Execution & Multi-Turn Task Tracking Engine with Sticky Header for DeepSeek Harness

npm version license DSH Plugin Node version

GoodAndReady Showcase

🇬🇧 English • 🇷🇺 Русский • 🇨🇳 中文说明


⚡ Overview & The Problem

Complex engineering tasks require multi-step autonomy: decomposing high-level objectives into milestones, executing successive iterations without manual user re-prompting, and maintaining clear visibility into task progress.

@goodandready/dsh-goal brings autonomous goal execution to DeepSeek Harness via the /goal command:

  • 🎯 Sticky Top Goal Banner: Pinned status header with live timer (• 2s, • 1m 45s), active goal title, and interactive control buttons.
  • ⏸️ Play / Pause / Cancel: Instantly pause the autonomous loop or resume execution on demand.
  • 📋 Milestone Breakdown Drawer: Interactive checklist showing sub-tasks, percentage completion, and iteration logs.
  • 🤖 Autonomous Agent Tools: Provides goal_set_milestones, goal_update_progress, and goal_finish tools directly to the agent.
  • 🛡️ Safety Guardrails: Configurable maxIterations limit to prevent runaway loops.

🏛️ Architecture

graph TD
    subgraph Input ["User Interaction"]
        Cmd["Slash Command: /goal <objective>"]
        API["REST API: POST /dsh-goal/action"]
    end

    subgraph GoalEngine ["Goal Lifecycle Engine (lib/index.js)"]
        State["State Manager (IDLE, RUNNING, PAUSED, COMPLETED)"]
        Milestones["Milestone Tracker & Decomposition"]
        Disk["Persistence Store (~/.dsh/goal-state.json)"]
    end

    subgraph AgentLoop ["Autonomous Agent Drive"]
        ToolSet["goal_set_milestones"]
        ToolProgress["goal_update_progress"]
        ToolFinish["goal_finish"]
        LimitGuard{"maxIterations Guard"}
    end

    subgraph UI ["DSH Web Interface"]
        Banner["Sticky Top Goal Banner"]
        Timer["Live Elapsed Timer"]
        Drawer["Milestone Checklist Modal"]
        Settings["Settings Card (Schemastery)"]
    end

    Cmd --> GoalEngine
    API --> GoalEngine
    GoalEngine --> State
    State --> Disk
    State --> Banner
    State --> Drawer
    GoalEngine --> AgentLoop
    AgentLoop --> LimitGuard
    ToolSet --> GoalEngine
    ToolProgress --> GoalEngine
    ToolFinish --> GoalEngine

📦 Installation

dsh plugin --profile web add @goodandready/dsh-goal

Restart your DeepSeek Harness instance and refresh the browser.


💬 Usage & Quick Start

Start a goal directly in chat:

/goal Refactor the authentication middleware and add integration tests

Or trigger via REST API:

curl -X POST http://localhost:3080/dsh-goal/action \
  -H "Content-Type: application/json" \
  -d '{"action":"start","title":"Optimize database queries"}'

⚙️ Configuration Reference (settings.yaml)

dsh-goal:
  maxIterations: 25
  autoDrive: true
  enableSound: true
Parameter Type Default Description
maxIterations number 25 Safety limit: maximum autonomous iterations per goal
autoDrive boolean true Keep the autonomous agent loop running between turns
enableSound boolean true Play completion audio chime when a goal finishes

🧪 Testing

Run the automated test suite:

npm test

📄 License

MIT © GooDAnDReaDY