Introduction¶
The plugin-based architecture of DeepSeek Harness (DSH) allows developers to extend core capabilities through Bundles. dsh-personal is a Bundle designed to provide the capability of recording, querying, and reviewing personal data for dsh. It stores structured data such as experiences, projects, tasks, blogs, and ideas in SQLite, and provides LLM-assisted summarization and review tools.
Core Positioning¶
dsh-personal is a personal assistant Bundle that provides SQLite storage, capture, query, and review tools for structured personal data. The LLM is only responsible for understanding and summarizing, while all factual data is persisted in SQLite and remains queryable after restart.
Installation and Configuration¶
The installation command is as follows:
pnpm dsh plugin --profile web add /path/to/dsh-personal
After installation, you can verify whether the configuration is effective:
pnpm dsh --profile web --dump-config
The configuration file (cordis.patch.yml) can set the timezone:
- id: personal
name: dsh-personal
config:
timezone: Asia/Shanghai
Core Features¶
This plugin provides 22 tools covering four dimensions: recording, querying, correction, and review:
- Recording and Creation: Supports recording experiences (movies, books, albums, exhibitions, etc.), creating projects and logs, creating tasks, updating tasks, creating and updating blogs, recording ideas and websites, and daily logging.
- Query and Retrieval: Supports querying various records, and full-text search based on Jieba Chinese segmentation and BM25 algorithm.
- Correction and Maintenance: Provides tools for getting, updating, and deleting records, as well as generating daily/weekly reviews.
- Data Storage: Data is stored in a SQLite file (
~/.dsh/personal/personal.db), with the current Schema version being 4.
Typical Usage¶
You can complete operations directly using natural language in conversations:
- Record experience:
Watched "The Medium" today, 7.5 points - Record reading:
Read half of "Out of Control" - Project log:
Forge located the Chinese character misalignment issue today - Maintenance operations:
Check blog certificates on weekends - Query tasks:
What tasks do I have that are not done? - Generate review:
Weekly review
Search and Retrieval Mechanism¶
The search function uses Jieba Chinese segmentation and SQLite FTS5, supporting subword matching for Chinese compound words, but does not support vector retrieval or automatic semantic expansion. Weights can be adjusted in the configuration:
searchTitleWeight: 5
searchTagWeight: 3
searchBodyWeight: 1
The search index only exists in the connected in-memory TEMP table and does not change the v4 database format. The first search builds an index from existing records, and subsequent writes are synchronized through TEMP triggers.
Data Consistency and Modification¶
To ensure data consistency, modification and deletion operations must pass in revision to prevent concurrent conflicts.
- Get record: Use
get_personal_recordto get the complete row andrevision. - Modify record: When using
update_personal_record, you need to pass inexpected_revision. The model will first query to locate, then execute after user confirmation. Modifications use the camelCase names of row fields. - Delete record: Deletion is permanent with no undo entry. If a record is referenced by other records (such as task source references), the deletion will be blocked and return the reference list.
Notes¶
- Old version database: The current Schema version is 4, and old version (v1-v3) databases cannot be opened directly. If you don’t need old data, you need to manually move or delete the old
personal.db. - Deletion limitation: Cascade deletion is not supported; only explicitly associated
relationsare removed. - Concurrent writing: When there are many records or frequent cross-process writes, the first search rebuilding the index will increase latency.
- License: The plugin details do not clearly indicate the license; please check the source code before installation.
Summary¶
dsh-personal structures personal data through SQLite and utilizes LLM assistance for natural language interaction and review. It is suitable for DSH users who need persistent memory, regular reviews, and structured knowledge management.
- Directory page: dsh-personal - SkillHub
- GitHub: ChengqianHuang/dsh-personal