[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112694":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":15,"stars30d":16,"stars90d":12,"forks30d":12,"starsTrendScore":14,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":9,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":12,"starSnapshotCount":12,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},112694,"dsh-beluga","Subaru486desuwa\u002Fdsh-beluga","Subaru486desuwa","Personal Chat, ChatGPT history import and controlled memory for DeepSeek Harness",null,"TypeScript",78,0,55,1,17,47,53.2,"MIT License",false,"main",true,[],"2026-11-22 04:51:42","2026-11-22 04:14:43","# Beluga\n\nPersonal Chat for DeepSeek Harness, named after one of the most vocal whales.\n\n[中文](README.zh.md)\n\nOne plugin adds personal Chat beside Harness Work: conversations, ChatGPT history import, a reviewed personal profile, and controlled memory. Work keeps its own sessions and tools; Chat needs no repository.\n\nThe base plugin provides Chat and Memory. Office is a recommended but separately downloaded extension, `dsh-beluga-office`, installed only after explicit user consent. GitHub is another optional extension, `dsh-beluga-github`. The base package depends on neither and ships none of their libraries. Neither models nor uploads can install extensions.\n\n## Build from source\n\nNo release tarball or npm package exists yet. Build one with Node 24.9+ and pnpm:\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002FSubaru486desuwa\u002Fdsh-beluga.git\ncd dsh-beluga\npnpm install --frozen-lockfile\npnpm run build\npnpm run pack\n```\n\nThe tarballs are written to `dist\u002F`. Use those paths in the commands below.\n\n## Install the built plugin\n\nTarget: **unmodified DeepSeek Harness 0.2.1-rc.3**, Node **24.9+**. This is a pre-release candidate; it has not been published to npm or a public market.\n\nInstall a built release tarball into your chosen **web** profile, then restart that profile:\n\n```sh\ndsh plugin --profile web add .\u002Fdsh-beluga-0.1.0.tgz\ndsh --profile web\n```\n\nOpen **Chat** in the Harness sidebar and start a conversation. The chat's title sits at the top left: after the first reply, the model writes a short title from the first exchange, once; a chat you renamed keeps your name, and earlier chats keep theirs (`autoTitles` turns this off). The button at the right of the message box names the model and reasoning effort: open it to drag the effort slider, or pick the model name to switch models. While Chat is open, the sidebar lists your chats where the workspace browser usually is: pinned chats first, then the rest by date, or by what needs you (running, waiting for you, new reply) from the sort menu. A spinner marks a reply in progress, a ring a chat waiting for you (an action to approve or a memory to review), and a dot a reply that finished while the chat was not open. Search finds archived chats too and tags them. **Settings** at the foot of the list opens one dialog with General, Personalization, Apps and Data controls. The **Work** row above Chat returns to the Work view without changing its selected session; the New Session button at the top still starts a Work session. The bundle adds only its own loader row; it does not replace official plugins or patch Harness.\n\n## Conversations and files\n\n- Stream replies, stop generation, copy messages, edit a user message or regenerate an answer. Old branches remain selectable.\n- Long chats keep their whole history in view. When a chat outgrows what one model request carries (`maxContextBytes`, 512 KiB by default, less for a model with a smaller context window), older tool results are left out first, then the model condenses the oldest turns in the background so later replies still know them.\n- Search titles and message bodies; rename, archive, or delete a Chat and its owned attachments. Archiving only hides a chat from the list: search still finds it, the model can still search it, and it still feeds the memory summary. Deleting is how Beluga forgets a chat. Archived chats are opened, unarchived or deleted in **Settings → Data controls**.\n- Pin a Chat to the top of the list, or export it as Markdown. Tool output and reasoning stay out of the export.\n- Replies list their sources beneath them: web pages, the saved memories they used, earlier chats they found, which open on a click, and Work sessions they read, which open in Work. The memory summary and custom instructions go with every reply and are not listed. Read aloud uses only voices on your device; without one it says so rather than sending text to a speech service.\n- Upload text documents, extractable-text PDFs, and supported images. Scanned PDFs need OCR outside this plugin. Images require the explicit inline route below.\n- When Harness has a web provider, the model searches the web when a question needs it. Turn that off in **Settings → Apps**; then only a message sent with **Web search** picked from the + menu searches. Chat never receives shell, arbitrary filesystem or deployment tools.\n\n## Import ChatGPT history\n\nOpen **Settings → Data controls → Import ChatGPT** → select an official export ZIP or conversation JSON → review counts and warnings → **Import**.\n\nA ZIP can be far larger than the upload limit. The browser reads only its conversation JSON, either one `conversations.json` or numbered `conversations-000.json` files, and uploads that. Media stays on your device.\n\nThe importer retains the original JSON, unknown fields, roles, timestamps, `mapping` graph and `current_node`. Select any branch to inspect it. Voice messages are read from their transcriptions. Media references remain in the original archive; export media binaries are not imported or downloaded automatically. Reasoning steps stay in the original archive too, but are left out of the history view, Markdown export and model context. Repeated imports are skipped, changed conversations create revisions, and batch undo removes only that batch's archives. Later Chat continuations survive undo.\n\nContinue directly below an imported branch. The model receives a bounded, explicitly untrusted snapshot of that selected branch, not forged native Work logs. Omitted nodes are reported; the complete original archive stays available for viewing.\n\nDefaults: 64 MiB upload (for a ZIP, once media is left out), 256 MiB extracted conversation JSON, 10,000 conversations, 500,000 total mapping nodes and 512 MiB stored archives. An unsupported or malformed record rejects the preview instead of silently dropping it. Checked against one real official export from November 2026; repository fixtures stay synthetic. Other exports may differ.\n\n## Personalization and memory\n\n**Settings → Personalization** holds your custom instructions (about you, and how to respond), the memory switches, the memory summary, and saved memories with their review queue. Each switch saves as soon as it changes. Custom instructions are included independently of keyword recall. Only narrowly recognized, source-grounded low-risk preferences can save automatically; sensitive, inferred and conflicting proposals require confirmation. A memory a reply proposes appears under that reply: undo one saved automatically, or save or dismiss one awaiting review; until then the chat shows as waiting for you in the list. A memory another chat saves automatically gets a notice with undo. Correcting a fact supersedes it; forgetting suppresses automatic relearning of its text or old evidence.\n\nThe **memory summary** is an overview of you that the model writes from your normal chats once they are idle, at most every six hours; later normal chats use it as background. Temporary Chat and imported history never feed it. It records only what you said or confirmed: drafts, translations or role-play you asked for, text you pasted and hypotheticals are not taken as your views. An update changes only the sections it needs to and leaves the others exactly as they were. Choose **Edit** in its menu to change the text yourself or paste a summary you already have. It is saved as typed, without a model, except that credentials, long numbers and email addresses are removed. **Restore previous version** undoes the latest change.\n\nSaved-memory text\u002FJSON and instruction Markdown can be reviewed here. Importing `AGENTS.md` requires personal-scope review; it never edits the source file or Work rules. Do not import credentials. A conversation export does not automatically reconstruct ChatGPT's separate saved-memory store.\n\nWhile replying, the model can search your earlier chats and quote excerpts, which go to the selected model provider. Turn this off in Personalization. Temporary Chat and imported originals are not searched, while archived chats are; imported history reaches a model only when you continue it. Forgetting a memory does not delete the chat it came from, so the model may still find it there; delete that chat if needed.\n\n## Work crossings\n\nChat and Work read nothing of each other until you turn a crossing on. **Settings → Apps → Work** has a switch for each:\n\n- **Let Work look up personal memory** gives the main agent of each Work session a read-only tool, `personal_memory_lookup`, that returns your saved memories and memory summary, filtered by words if it asks. It never returns your custom instructions or \"about you\". Calls from subagents or PTC code are refused. Each call and its result is logged in the Work session like any tool call.\n- **Read Work records in Chat** lets the chat model find Work sessions you started in the workspaces you tick, by time and words, and read what you and the agent said; tool calls, reasoning and notices Harness added are left out. One search reads at most the 50 newest sessions (`maxWorkSessions`) and needs no full-text session search in Harness. A reply lists the Work sessions it read beneath it; a click opens one in Work. What it reads is tool output: once a reply has read Work, it proposes nothing to memory, and the memory summary skips what the assistant said after it.\n\n**Hand off to Work**, in a chat's menu (in the header of a Temporary Chat), asks you for a workspace, then has the model write a task brief from the chat, without memory or custom instructions, and puts it in a new Work session's message box there for you to check and send. A draft already in that box is kept, with the brief added after it. Chat never starts or sends a Work session itself.\n\n## Temporary Chat\n\nTemporary Chat keeps its messages and attachments in RAM and does not read or write the profile or long-term memory. It has no history entry or persisted browser draft. Leaving the view closes it; an unobserved disconnected temporary chat expires after the configured idle interval (default 60 seconds). Restarting the host loses it.\n\nThe selected model provider still receives the request and applies its own retention policy. Other user-installed Harness observers or operating-system dumps are outside the plugin's storage boundary. The plugin calls text routes without a Work `sessionId` and avoids the stock durable image-upload pipeline.\n\n## Optional inline image route\n\nText reuses Harness model routing. To use images, configure one OpenAI-compatible Chat Completions endpoint that accepts inline image data and a **Harness credential reference**, not a literal API key. In your profile patch:\n\n```yaml\n- id: personal-chat\n  config:\n    dataDir: !!js dshHomePath('personal-chat')\n    inlineProvider:\n      baseURL: https:\u002F\u002FYOUR-PROVIDER.example\u002Fv1\n      credentialRef: YOUR_EXISTING_CREDENTIAL_REFERENCE\n      models: [YOUR_IMAGE_MODEL]\n```\n\nSelect the model labeled **Inline images**. This route uses the provider API, not a ChatGPT website subscription. It requires explicit provider configuration because rc.3's native attachment pipeline persists image bytes. OpenAI-compatible streaming and inline payloads are covered by a local HTTP fixture; a real provider\u002Fmodel pairing still needs its own acceptance check.\n\n## Data and removal\n\nOwned data lives under `$DSH_HOME\u002Fpersonal-chat`: a private SQLite database and attachments. Back up that directory while the profile is stopped. Deleting a chat removes its history\u002Ffiles but retains separately confirmed memories; forget those in **Settings → Personalization**. Uninstalling the package does not delete personal data:\n\nA newer version upgrades the database in place on first start; older versions then refuse it, so back up first.\n\n```sh\ndsh plugin --profile web remove dsh-beluga\n```\n\nUse a distinct `dataDir` for each concurrently running profile; the writer lease prevents two instances from sharing the same database.\n\n## Office candidate\n\nAfter explicit installation of the Office extension:\n\n- **Reading:** DOCX, XLSX and PPTX as source records, and any range of a worksheet, with formulas listed apart from their saved results.\n- **Preview and PDF:** Office files render on this machine with the LibreOffice engine that ships with Harness. The layout can differ slightly from Word or Excel.\n- **Word:** create documents with lists, tables, charts, a table of contents, page numbers and Chinese fonts; change paragraphs of any DOCX, uploads included, with optional tracked changes; fill `{{name}}` templates.\n- **Excel:** create workbooks; change cells of any XLSX, uploads included, leaving everything else as it was. Add native column, bar, line and pie charts to either; they read their cells, so they follow the data. Formulas are recalculated and errors such as `#REF!` come back to the model. New sheets print one page wide.\n- **PowerPoint:** create 16:9 decks from slides in eight fixed layouts: title, section, bullets, two columns, native chart, table, key figures and image. The engine places and sizes everything, shrinks text to fit, and reports what still does not fit. Images come only from PNG or JPEG files attached to the chat. Speaker notes are kept.\n\nEvery change makes a new version and keeps the original. Chat does not run code, and formulas that fetch from the network or start programs are refused. Temporary Chat keeps files in memory, so it has no preview, PDF export, recalculation or layout check. Changing an existing PPTX is not available yet.\n\nInstall the Office tarball into the existing Chat profile only after the user agrees: `dsh plugin --profile web add .\u002Fdsh-beluga-office-0.1.0.tgz`, then restart that profile. It uses the engine already installed with Harness, so nothing large is downloaded. Removing `dsh-beluga-office` disables processing while retaining chats, memory and existing artifact downloads.\n\n## GitHub app\n\nAfter installing the GitHub extension, open **Settings → Apps** in Chat and connect an account with this computer's GitHub CLI sign-in or a pasted fine-grained token. Beluga checks the token with GitHub, then keeps it in the Harness credential store only, never in its own database or a view.\n\n- **Work in GitHub from a chat:** triage pull requests and issues, read files and reviews, look into Actions runs and their logs, comment, open branches and pull requests, and merge. The tools come from GitHub's official MCP server. Creating, forking or deleting whole repositories is left out.\n- **On demand:** the model uses GitHub when a message needs it, or pick **GitHub** from the + menu for one message. Turn automatic use off in Apps.\n- **Changes wait for you by default:** a card shows the action and what will be sent, with **Allow** and **Decline**. Apps can let low-risk actions (comments, issues, branches and pull requests) or all actions run at once. Reads never ask, and Stop ends a wait without running the action.\n\nWhat GitHub returns goes to the selected model provider, like any tool result. Install with `dsh plugin --profile web add .\u002Fdsh-beluga-github-0.1.0.tgz`, then restart the profile. Disconnect before `dsh plugin --profile web remove dsh-beluga-github` to delete the token as well; chats stay. None of the packages is published to the public market yet.\n","Beluga 是一个为 DeepSeek Harness 设计的插件，提供独立的个人聊天界面、ChatGPT 历史记录导入功能及用户可控的记忆管理机制。核心功能包括：会话持久化与分组展示、基于上下文自动\u002F手动命名对话、多模型切换与推理强度调节、记忆审核流程、文件与历史消息的流式交互支持。技术上采用 TypeScript 构建，以轻量插件形式集成，不修改原生 Harness 代码，不捆绑第三方扩展（如 Office 或 GitHub 插件），所有功能模块解耦且按需加载。适用于需要在 DeepSeek Harness 工作环境内开展非项目导向的探索性对话、知识沉淀、跨会话上下文复用及私有对话归档的个人开发者或研究者场景。",2,"2026-11-24 04:43:52","CREATED_QUERY"]