mirror of
https://github.com/vectorize-io/hindsight.git
synced 2026-09-14 19:31:49 +08:00
4388e0f95b
Registers `dcode` (LangChain's deepagents-code) as a native Agent Plugin: root `plugin.json` contributing the shared skill, the Hooks V2 SessionStart/UserPromptSubmit/Stop lifecycle, and the `hindsight_*` MCP server, installed through Dcode's own marketplace/plugin manager. Includes fixes found by running it against deepagents-code 0.1.65: - Decode `last_assistant_message`. Dcode's transcript lags the Stop event, so that field is load-bearing, but it is computed as `str(content)` — a Python repr whenever the provider returns content blocks. It was retaining ~1.8KB of encrypted reasoning payload as the assistant turn, and never comparing equal to the transcript's clean text, so an already-flushed reply was appended again every turn. Guarded family-wide: any harness surfacing the field must declare a decoder. - Annotate the six read-only MCP tools with `readOnlyHint`. Dcode rejects unannotated MCP calls in headless mode, which made recall and the knowledge-page tools unusable under `dcode -n`. - Parity: local history import (attributed via `dcode threads list --json`, since the transcripts carry no cwd), a Docker E2E adapter and image, the harness icon on the docs site as well as the control plane, and a clean uninstall that also retires the marketplace it registered. - Document that Dcode cannot host the codebase survey: `hindsight_ingest_document` writes, so its headless runtime gates it by design; it falls back to another agent's CLI like eight other harnesses. Supersedes #3887. Co-authored-by: Paritoshdagar <paritoshdagar@gmail.com> Claude-Session: https://claude.ai/code/session_01DNWFQn8AUN6SApcswHG3aN
8 lines
722 B
XML
8 lines
722 B
XML
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M32 0H8C3.58172 0 0 3.58172 0 8V32C0 36.4183 3.58172 40 8 40H32C36.4183 40 40 36.4183 40 32V8C40 3.58172 36.4183 0 32 0Z" fill="#161F34"/>
|
|
<path d="M25.0573 15C28.3394 15 31 12.3137 31 9L20.9427 9C17.6606 9 15 11.6863 15 15L25.0573 15Z" fill="#7FC8FF"/>
|
|
<path d="M31 19.0573C31 22.3394 28.3137 25 25 25L25 14.9427C25 11.6606 27.6863 9 31 9L31 19.0573Z" fill="#7FC8FF"/>
|
|
<path d="M14.9427 25C11.6606 25 9 27.6863 9 31L19.0573 31C22.3394 31 25 28.3137 25 25L14.9427 25Z" fill="#7FC8FF"/>
|
|
<path d="M9 20.9427C9 17.6606 11.6863 15 15 15L15 25.0573C15 28.3394 12.3137 31 9 31L9 20.9427Z" fill="#7FC8FF"/>
|
|
</svg>
|