Back to directory

accounting-entry-test

In a curated listMaintenance: Active

daijiaoshou-ds/accounting-entry-test

Run journal-voucher cleaning, cash-flow mapping, contra-account analysis and entry anomaly tests on a local ledger from a DSH workbench panel with journal_* agent tools.

View on GitHubHomepage
$ dsh plugin add accounting-entry-test

18

stars

6

forks

Python

Language

MIT

License

2026-03-24

Created

2026-11-23

Last push

MIT-licensed DSH plugin plus a Python engine that turns a local ledger into journal-voucher cleaning, cash-flow statements, contra-account analysis and entry-anomaly tests, with review handed to the task's own agent session.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-11-25

License

MIT

01What can it help you accomplish?

  • Clean a journal-voucher export into business buckets you can audit

    24-bucket classification per voucher with a calibrated confidence tier, a review list weighted by vouchers per group, an unknown-account JSON for maintaining the alias table, and a decisions log for every manual re-bucket

    Auditors and finance staff who receive a full-year ledger as Excel/CSV and have to explain what each voucher is

  • Turn the same ledger into a cash-flow statement and an entry-anomaly report

    A cash-flow statement aggregated by item plus a monetary-fund voucher sheet in one file (CSV above 50k rows), and for the anomaly test a business-group clustering, cross-group distance matrix, anomaly scores and a statistics report

    Audit teams that must not classify the same ledger twice for two deliverables

  • Resolve contra accounts for multi-debit, multi-credit vouchers

    An entry-structure class (1×1, 1×m, m×n, all-debit / all-credit, special), exhaustively computed combination schemes ranked by an Occam score, and an Excel export of the result

    Auditors who need the counterpart account of a compound voucher rather than a row-level guess

02How to install into DeepSeek Harness

Prerequisites

  • DeepSeek Harness with the 审计工作台 plugin — on npm as `dsh-auditor` since 0.1.8; the plugin is the main UI
  • Python 3.11 – 3.13 (3.13 recommended) and a virtual environment for the engine
  • A repo checkout on disk with its venv, because the sidebar entry reads repoRoot and the interpreter path from the plugin config
  • Network access for the plugin install, the PyPI mirror and the ModelScope model download

Installation steps

  1. 01

    In DSH open 插件 → 添加插件 and enter `dsh-auditor`.

  2. 02

    If that fails, install from GitHub (`github:daijiaoshou-ds/dsh-auditor`), or unpack `dsh-auditor-<版本>.zip` into one fixed directory such as `D:\dsh-auditor` and give 添加插件 that absolute path — keep the same directory, upgrades overwrite it.

  3. 03

    Open 审计工作台 → 环境配置 and click through the six steps top to bottom: Python interpreter → virtual environment → base dependencies → CPU torch → model files → base BGE.

  4. 04

    Because the sidebar entry has no session, write the project root and interpreter into the plugin config: `repoRoot: <仓库绝对路径>` and `python: <仓库绝对路径>/venv/Scripts/python.exe`.

  5. 05

    Manual route instead: clone the repo, `python -m venv venv`, activate it, `pip install -r requirements.txt`, `pip install torch --index-url https://download.pytorch.org/whl/cpu`, `pip install -r requirements-nn.txt`, then `modelscope download daijiaoshou/hajishou-V2.0 --local_dir core/nn/_storage`.

  6. 06

    To run the checkout's own plugin directory instead of the npm package: `plugin_manager install_bundle` with `target = <仓库绝对路径>/dsh_plugin/journal-workbench`.

Verify the integration

  • All six steps of 环境配置 complete, which is what leaves a runnable engine plus models on disk
  • Upload `sample_data/示例序时账.csv` and walk 字段配置 → 分类 → 查看结果: the README ships that sample for exactly this end-to-end check
  • The sidebar gains a 审计工作台 icon and the conversation gains a tab once the bundle is installed

03DSH integration and capability boundaries

DSH integrationNative runtime

Native DSH plugin (审计工作台, npm package dsh-auditor): the Host half registers journal_* agent tools and an HTTP/background-job layer, the browser half is a hand-written h() panel with no build step, and both drive the same Python engine through the repo checkout.

  • Journal-voucher cleaning (24 business buckets)

    An Excel/CSV journal export with mapped columns — voucher no., top-level account, account name, summary, debit and credit→A bucket per voucher with a calibrated confidence tier, a review list, an unknown-account JSON and a traceable decisions log

    runs a fine-tuned BGE-large model locallyreview re-buckets are written to decisions/*.json with an idempotency key, a reason and a timestamp
  • Cash-flow statement built on the shared classification

    A ledger the cleaning stage has already classified→A cash-flow statement aggregated by item plus a monetary-fund voucher sheet in one file, switching to CSV above 50k rows

    loads no model of its own and re-uses the upstream bucketsa resume after an upstream bucket change recalculates the downstream products
  • Entry-anomaly test

    Vouchers with date, voucher no., account, debit and credit, plus a Pareto materiality percentage→Business-group clustering, a cross-group distance matrix, anomaly scores and a statistics report

    vouchers below the materiality threshold are dropped before scoring
  • Contra-account analysis for compound vouchers

    Vouchers with an account column and debit / credit amounts→Entry-structure class, exhaustively enumerated combination schemes ranked by an Occam score, and an Excel export

    multi-debit, multi-credit entries are enumerated rather than guessed, so wide vouchers cost more compute
  • Agent-run review stops (journal_* tools)

    A job sitting at an actor=ai stage→A journal_next → judge → journal_submit → journal_report loop driven by that task's own review session, with paged requests for large batches

    a job at a review stop does not wake an agent by itself — someone has to press 「AI 复核这批」review conclusions are written back into the job's decisions and trigger the downstream stages

04Who is it for? When not to use it?

Good for

  • Auditors and finance staff who receive a full-year ledger as Excel/CSV and have to explain what each voucher is
  • Audit teams that must not classify the same ledger twice for two deliverables
  • Auditors who need the counterpart account of a compound voucher rather than a row-level guess

Not for

  • Install and first run need the network: the plugin comes from npm or GitHub, dependencies come from the Aliyun PyPI mirror, and the classification model is pulled with `modelscope download`.
  • The engine and venv locations and the plugin-config example are Windows-shaped (`%LOCALAPPDATA%\dsh-auditor\engine`, `venv/Scripts/python.exe`, `venv\Scripts\Activate.ps1`) — the manual route also lists `source venv/bin/activate` for macOS/Linux. A plain `pip install torch` pulls the 2.4 GB CUDA build instead of the 122 MB CPU build, so the `/whl/cpu` index has to be pinned.
  • Not everything advertised is wired into the workbench: bank-statement matching is still a standalone subproject, 成本计算 is a placeholder, and the legacy 小工具 set moved to `_archive` and no longer ships with the main flow.

05Compatibility, maintenance and safety notes

  • Install and first run need the network: the plugin comes from npm or GitHub, dependencies come from the Aliyun PyPI mirror, and the classification model is pulled with `modelscope download`.
  • Jobs, products and review decisions stay on the machine under `_storage_jobs/<id>/`, shared by the workbench and the `journal` CLI; a task keeps running in the background after the page is closed and has to be stopped with ■ 中止.
  • The engine and venv locations and the plugin-config example are Windows-shaped (`%LOCALAPPDATA%\dsh-auditor\engine`, `venv/Scripts/python.exe`, `venv\Scripts\Activate.ps1`) — the manual route also lists `source venv/bin/activate` for macOS/Linux. A plain `pip install torch` pulls the 2.4 GB CUDA build instead of the 122 MB CPU build, so the `/whl/cpu` index has to be pinned.
  • Not everything advertised is wired into the workbench: bank-statement matching is still a standalone subproject, 成本计算 is a placeholder, and the legacy 小工具 set moved to `_archive` and no longer ships with the main flow.
2026-03-242026-11-23Not specified by the author

MIT · no GitHub release published; last push 2026-11-23 · DSH plugin ships on npm as dsh-auditor (from 0.1.8); the README's own status is a local tool for finance and audit teams, review handed to the session's agent

06Frequently asked questions

How do I install it into DeepSeek Harness?

In DSH open 插件 → 添加插件 and enter `dsh-auditor` (the npm package, published since 0.1.8). If that fails, fall back to `github:daijiaoshou-ds/dsh-auditor`, then to the offline zip: unpack `dsh-auditor-<版本>.zip` into one fixed directory (not the Downloads folder — upgrades overwrite that same directory) and point 添加插件 at its absolute path.

What has to happen before the first analysis?

Open 审计工作台 → 环境配置 and run the six steps top to bottom: Python interpreter, virtual environment, base dependencies, CPU torch, model files, base BGE. The engine and models land in %LOCALAPPDATA%\dsh-auditor\engine and the venv in %LOCALAPPDATA%\dsh-auditor\venv — both outside the plugin directory, so a new plugin version does not mean reinstalling the environment.

How can I tell the engine actually works?

Upload sample_data/示例序时账.csv and run 字段配置 → 分类 → 查看结果. The repo ships that sample (six vouchers covering payroll, purchasing, sales, expenses, assets and tax) exactly so the whole flow can be validated end to end.

Where does my ledger go, and how do I stop a run?

Nowhere off the machine: jobs, products and review decisions live under _storage_jobs/<id>/, and the workbench and the `journal` CLI read the same folder. A task keeps running in the DSH background after you close the page — press ■ 中止 in the feature page's top-right corner to stop it.

Does the AI review happen on its own?

No. A stage marked actor=ai only writes a request file and stops; you press 「AI 复核这批」 to wake that task's review session, or 「不复核,直接用」 to keep the program's judgement. Without DSH the CLI equivalents are `journal next`, `journal submit` and `journal report`.

08Data and sources

  • Author-claimedgithub.com781c2257082e…

    面向财务人员 / 会计师事务所的本地会计工具,主界面是 **DSH 插件「审计工作台」**。

  • Author-claimedgithub.com781c2257082e…

    同一份已配好的数据与同一套阶段机;复核由当前会话的 agent 接手,数据不出本机。

  • Author-claimedgithub.com781c2257082e…

    index.js # Host:注册 journal_* 工具

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-11-25. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.