dshbase

插件目录 / Automation / dsh-plugin-dated-folders

dsh-plugin-dated-folders

已验证 · 实测可装 Aeanfx

✓ 持续维护 基于 1 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
JavaScript语言
2026-08-14最近推送
跨平台平台

功能简介

AI制作插件,按日期归档生成文件

✅
我们的评价
可用 — 实测通过,早期项目

AI制作插件,按日期归档生成文件 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-plugin-dated-folders

npm version
License
dsh-plugin

One folder per day keeps the clutter away.

A DeepSeek Harness (DSH) plugin that keeps the workspace tidy:
every new file the agent generates goes into a folder named by the date it was created, plus a short description.

  • Folder name: YYYY-MM-DD_<description> (e.g. 2026-08-14_notes)
  • Description ≤ 10 bytes (UTF-8 — roughly 3 CJK characters or 10 ASCII letters)
  • The same-day folder is reused when it already exists; the date is the day the file is generated
  • Edits to existing files and explicitly user-specified paths are left untouched

How it works

The plugin registers one system-prompt section (dated-folders:policy, order 55) through the
systemPrompt service — the same mechanism used by the official dsh-plan-mode / dsh-persona
plugins. The rule is folded into every model request, so the agent, its subagents, and workflow
workers all follow it.

  • Platform: Host (agent plane)
  • Publishes a service: no → in an agent preset composition it sits loose (no isolate realm)
  • Depends on: @deepseek-ai/cordis (peer), zod

Install

Option 1 — agent preset row (recommended)

  1. Install the package into the profile — the loader resolves plugin packages from the
    profile directory, not from a global install (requires pnpm; install it with npm install -g pnpm):

    dsh plugin --profile web add dsh-plugin-dated-folders
    
  2. Add one row to your agent preset's agent.cordis.yml (e.g. a copy of standard).
    Give the row an explicit config: map:

    - id: dated-folders
      name: dsh-plugin-dated-folders
      config: {}
    

    To customize the rule text:

    - id: dated-folders
      name: dsh-plugin-dated-folders
      config:
        section: |
          Your custom rule text
    

Troubleshooting

  • Cannot find package 'dsh-plugin-dated-folders' imported from ...\profiles\web\ — the package is
    not installed into the profile; run dsh plugin --profile web add dsh-plugin-dated-folders
    (install pnpm first if missing).
  • invalid config: expected object, received undefined — the row has no config:; add
    config: {} (or a section: map). Since v0.1.1 the plugin tolerates a missing config.

Option 2 — dsh plugin directly

dsh plugin --profile web add dsh-plugin-dated-folders

Then add the composition row shown above to cordis.patch.yml (or your preset's composition).

Configuration

Field Type Default Description
section string built-in rule The rule text injected into the system prompt.

Development

npm install
node --check lib/index.js     # syntax check
node _smoke-test.mjs          # smoke test with a stub ctx (see CONTRIBUTING.md)
npm pack --dry-run            # preview the published tarball

Publishing to the community

  1. npm: create an npm account, then npm publish (community naming convention: dsh-plugin-*).
  2. GitHub: open-source the repo and tag it with the dsh-plugin topic.
  3. Ecosystem list: open a PR to add it to awesome-deepseek-harness.
  4. Official repo: deepseek-ai/deepseek-harness ("Everything is a Plugin").

About this plugin

This plugin was fully produced by the DeepSeek Harness AI agent — the idea,
architecture, code, tests, documentation, and the npm/GitHub publishing workflow
were all written by the agent in an interactive session. A human only assisted
with the operations the agent cannot perform itself: creating the GitHub and npm
accounts, uploading files through the web UI, running interactive npm login /
npm publish (two-factor authentication), and clicking through the publishing
steps. The entire conversation — from the initial "keep my workspace tidy by date"
idea to this release — is recorded in the DeepSeek Harness session log.


中文

关于本插件

本插件由 DeepSeek Harness AI 代理完全制作:创意、架构、代码、测试、文档以及
npm/GitHub 发布流程均由 AI 在交互式会话中完成。人类仅辅助执行 AI 无法亲自操作的
部分:注册 GitHub 与 npm 账号、通过网页上传文件、执行需要两步验证的交互式
npm login / npm publish,以及点击完成发布步骤。从最初"按日期整理工作区"的想法
到本次发布,整段对话都记录在 DeepSeek Harness 的会话日志中。

License

MIT — see LICENSE.


中文说明

这是什么

每日一匣,文件归位。

一个 DeepSeek Harness 插件:让 Agent 生成的所有新文件自动归档到「日期+描述」文件夹,保持工作区整洁。

  • 文件夹名:YYYY-MM-DD_描述(如 2026-08-14_笔记)
  • 描述 ≤ 10 字节(UTF-8,约 3 个汉字或 10 个英文字母),概括当天文件内容/用途
  • 当天已存在该文件夹则复用;日期取文件生成的当天
  • 编辑已有文件、用户明确指定路径不受影响

工作原理

通过 systemPrompt.section() 注入一条归档规则段落(与官方 dsh-plan-mode / dsh-persona 同款机制),
每次模型请求都会携带该规则,Agent、子代理、工作流统一遵守。

安装

前置:需要 pnpm(npm install -g pnpm)。注意:loader 从 profile 目录解析插件包,
不是全局 npm——所以插件必须装进 profile。

  1. 把插件装进 profile:

    dsh plugin --profile web add dsh-plugin-dated-folders
    
  2. 在 Agent 预设的 agent.cordis.yml(如 standard 的副本)中追加(行内必须带 config:,
    否则报 invalid config: expected object, received undefined;v0.1.1 起可省略):

    - id: dated-folders
      name: dsh-plugin-dated-folders
      config: {}
    

    自定义规则文本:

    - id: dated-folders
      name: dsh-plugin-dated-folders
      config:
        section: |
          你的自定义规则文本
    

常见坑

  • Cannot find package ... imported from ...\profiles\web\ → 插件没装进 profile,执行
    dsh plugin --profile web add dsh-plugin-dated-folders(缺 pnpm 先装)
  • invalid config: expected object, received undefined → 组合行缺 config:,补 config: {}

配置

字段 类型 默认 说明
section string 内置规则 注入系统提示的规则文本,可自定义

发布到社区

  1. npm:注册账号后 npm publish(社区约定命名 dsh-plugin-*)
  2. GitHub:开源仓库,打上 dsh-plugin topic
  3. 生态列表:向 awesome-deepseek-harness 提 PR 收录
  4. 官方仓库:deepseek-ai/deepseek-harness

About this plugin

This plugin was fully produced by the DeepSeek Harness AI agent — the idea,
architecture, code, tests, documentation, and the npm/GitHub publishing workflow
were all written by the agent in an interactive session. A human only assisted
with the operations the agent cannot perform itself: creating the GitHub and npm
accounts, uploading files through the web UI, running interactive npm login /
npm publish (two-factor authentication), and clicking through the publishing
steps. The entire conversation — from the initial "keep my workspace tidy by date"
idea to this release — is recorded in the DeepSeek Harness session log.


中文

关于本插件

本插件由 DeepSeek Harness AI 代理完全制作:创意、架构、代码、测试、文档以及
npm/GitHub 发布流程均由 AI 在交互式会话中完成。人类仅辅助执行 AI 无法亲自操作的
部分:注册 GitHub 与 npm 账号、通过网页上传文件、执行需要两步验证的交互式
npm login / npm publish,以及点击完成发布步骤。从最初"按日期整理工作区"的想法
到本次发布,整段对话都记录在 DeepSeek Harness 的会话日志中。

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-plugin-dated-folders」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

Web profile:

dsh plugin --profile web add dsh-plugin-dated-folders

Headless(CLI)profile:

dsh plugin --profile headless add dsh-plugin-dated-folders

包信息

npm:dsh-plugin-dated-folders · 版本 0.1.1 · 实测环境 dsh 0.1.0-rc.6

实测报告

端到端验证通过:dsh 0.1.0-rc.6 上 L1 安装 + L2 加载 + L3 运行问答。

使用场景

自动化一项重复工作——调度、串联任务或响应事件——不用你亲手启动。

适合谁

有周期性工作、想 cron 式无人值守而非手动触发的人。

二次开发建议

触发器和任务模板是缝——加事件驱动或文件监听触发,以及更丰富的流程编排。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Automation 里更多

浏览全部 7797 个插件 →