Introduction¶
DeepSeek Harness (DSH) Session logs record every conversation, but document links are scattered throughout long text blocks, requiring you to switch to the Feishu (Lark) app to view them. This plugin adds a ☁ N badge at the top of each conversation. Expanding it lists the Feishu documents mentioned in that Session, grouped by date, and clicking any entry jumps directly to the corresponding turn.
What It Is¶
dsh-plugin-feishu-docs is a DeepSeek Harness plugin maintained by WaterLiu. It extracts Feishu links from user and assistant messages in the current Session’s log file, generates a date-grouped document list, and supports jumping directly to the conversation turn where each document was mentioned.
Core Features¶
- Document List: Displays a
☁ Nchip at the top of the Session, where N is the number of documents discovered. Clicking to expand shows documents grouped by date, listing the title, creation time, and a “newly created” indicator. - Jump to Conversation Turn: Click the
⊙icon next to a document entry, and the view scrolls to the turn where that document was mentioned. If historical messages haven’t been loaded yet, it automatically paginates backward until the target turn is located, then highlights the entire turn until the next user interaction. - Local Scanning with Incremental Updates: On the first visit to a Session, a full scan runs from the end of the log, and a scan timestamp is recorded. Subsequent visits only decode new zstd frame segments added since the last scan, using
~/.dsh/feishu-docs-sessions.jsonto track offsets and avoid re-analyzing history. - Feishu Requests Only When Needed: Titles, creators, deletion status, and similar metadata come from Feishu but are fetched via
lark-clionly when required. Log scanning is entirely local with no pre-computation. - Avatar Caching with ETag: Avatars are fetched from Feishu and cached locally. The initial render doesn’t wait for network calls thanks to ETag. Background checks for updates run once per day.
- Re-authorization Entry Point: If the authorization expires, a dialog displays a “Go Authorize” button that opens the Feishu authorization page and completes device-code login without requiring manual CLI operations.
Installation & Enablement¶
No build steps, data files, or additional credentials are needed.
- In the DSH interface, select Plugins → Add plugin.
- Enter the repository address:
github:WaterLiu/dsh-plugin-feishu-docs. - Restart DSH. The plugin will display a
☁ Nchip at the top of each Session.
You can also run it from within an active Agent session (requires plugin_manager, included in the Standard preset):
plugin_manager install_bundle target: "github:WaterLiu/dsh-plugin-feishu-docs"
Typical Usage¶
- Open a longer Session; a
☁ Nchip appears at the top. - Click the chip to reveal the document list, grouped by date.
- Click the
⊙icon next to a document entry; the view scrolls to the turn where that document was mentioned and highlights the entire turn. - If re-authorization is needed, click “Go Authorize” in the dialog and complete the device-code login in your browser.
Use Cases & Caveats¶
Well-suited for scenarios that require frequent jumping between conversations and Feishu documents, such as:
- Looking up documents referenced in past conversations
- Quickly locating a specific discussion turn during multi-person collaboration
Caveats:
- The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license before installing.
- Document jumping is limited to the current Session; cross-Session navigation is not supported.
- Document creator and deletion status require lark-cli to be installed and logged in.
- The deletion marker is based on Feishu’s not exist response; permission denied is not treated as a deletion.
- Only links within message content are extracted; links in tool outputs or code blocks are not counted.
Short Conclusion¶
This plugin scans Session logs locally, requests Feishu data on demand, and directly links the document list to conversation turns, reducing the cost of switching between applications. For more details and source code, visit: GitHub.