dsh-plugin-verified-search
f0909172434
Verified current-source search workflow for DeepSeek Harness
PROJECT TOPICS
PROJECT README
English · 简体中文
Turn AI conversations into linked Obsidian knowledge, safely.
Cobsidian is an agent-agnostic workflow skill for maintaining an Obsidian or Markdown vault. It searches before creating, previews the proposed change, asks for one plain-language confirmation, writes atomically, and validates the result. Integrity hashes stay in the execution layer; users do not copy confirmation codes.
It is not a hosted service or an Obsidian plugin. Your coding agent runs the workflow against a local folder of Markdown files.
Quick Start · How It Works · Install · DeepSeek Harness · MCP Server · Compatibility · Latest Release
Use the agent you already know: Claude Code · Codex CLI · GitHub Copilot CLI · Kimi Code · OpenCode · Pi · Antigravity
Synthetic demo vault. No private notes, paths, or credentials.
Run a read-only dry run against the bundled demo vault:
git clone https://github.com/Totoro-qaq/Cobsidian.git
cd Cobsidian
python skills/cobsidian/scripts/dry_run.py examples/demo-vault --topic "AI Conversations" --mode learning --text "agent workflow notes" --json
Then point your agent at skills/cobsidian/SKILL.md:
Use Cobsidian to organize this material into my Obsidian vault.
Vault: /absolute/path/to/obsidian-vault
Run a dry run first, check duplicates, suggest backlinks, and wait for confirmation before writing.
| Stage | What Cobsidian makes visible |
|---|---|
| Read | Resolves the vault and builds identities from filenames, H1s, titles, and aliases. |
| Decide | Reports create | append | blocked separately from note shape. |
| Review | Returns duplicate risk, backlink suggestions, and an exact patch plan. |
| Approve | Asks Apply this reviewed change?; the selected plan ID stays internal. |
| Write | Verifies the internal plan and file hashes, writes atomically, validates, and keeps rollback available. |
The result is durable Markdown with useful [[wiki links]], not a second copy of a note that already exists.
flowchart LR
A["AI chat, logs, project notes"] --> B["Cobsidian dry run"]
B --> C["Search existing vault notes"]
C --> D{"Machine action<br/>create | append | blocked"}
D --> E["Note plan<br/>single-note | multi-note | report-only<br/>split = multi-note"]
E --> F["Patch preview + simple approval"]
F --> G["Atomic write + validation"]
G --> H["Rollbackable transaction"]
| Before | After |
|---|---|
| Useful answers disappear in chat history | Reusable notes stay in the vault |
| Repeated prompts create near-duplicates | Existing identities are checked first |
| Links are guessed while writing | Backlinks come from actual vault notes |
| Agent edits are hard to audit | A reviewed, integrity-bound plan precedes every write |
search → dry run → review the diff → confirm write → atomic apply → validate
The confirmation is intentionally human: Apply this reviewed change? On approval, the host passes the exact plan ID associated with that preview to the deterministic writer. The ID, target fingerprint, and before/after SHA-256 values remain internal integrity checks.
Dry run is the default safe path. It reports the decision and leaves writes empty.
{
"dry_run": true,
"mode": "learning",
"decision": {
"action": "append",
"target_note": "AI Conversations.md"
},
"suggested_backlinks": [
{
"title": "Agent Workflows",
"path": "Agent Workflows.md"
}
],
"writes": []
}
| Ordinary Markdown generation | Cobsidian |
|---|---|
| Produces a standalone file | Maintains a linked knowledge system |
| Ignores existing notes | Scans the vault before writing |
| Mixes action and document shape | Separates machine action from note plan |
| Writes immediately | Plans, confirms, writes, validates, and can roll back |
Before writing, Cobsidian computes a Knowledge Read: mode, depth, granularity, evidence, and display choice. auto | always | off controls conversational presentation only. With off, display_style is hidden while the complete JSON remains available in dry-run output.
Capability-based degradation keeps the result honest. A local host can become ready after checks, MCP remains read-only, and a chat-only host returns a draft or requests a usable path instead of claiming work it could not perform. Detailed rules live in the mode and host references and the shared preflight contract.
{
"mode": "learning",
"mode_explicit": true,
"recommended_modes": [],
"depth": "standard",
"granularity": "single-note",
"evidence": "conversation",
"display_policy": "auto",
"display_style": "compact"
}
{
"mode": "dissection",
"mode_explicit": false,
"recommended_modes": [],
"depth": "deep",
"granularity": "multi-note",
"evidence": "source-grounded",
"display_policy": "auto",
"display_style": "expanded"
}
flowchart TD
U["User material"] --> R["Resolve vault path or config"]
R --> S["Build identities and scan the vault"]
S --> A{"Machine action<br/>create | append | blocked"}
A --> P["Note plan<br/>single-note | multi-note | report-only<br/>split = multi-note"]
P --> L["Suggest backlinks"]
L --> X["Preview patch + confirm reviewed change"]
X --> V["Atomic write, validate, rollback on new warnings"]
V --> O["Report transaction, links, validation"]
Requirements: Git, Python 3.10+, a Markdown vault, and a coding agent that can read local instructions and run commands.
Preview the destinations, then install the skill for supported CLIs:
python install_cobsidian.py --host all --scope user --dry-run --json
python install_cobsidian.py --host all --scope user
Or copy the shared skill manually:
mkdir -p ~/.agents/skills
cp -r skills/cobsidian ~/.agents/skills/cobsidian
See INSTALL.md for Windows, project-scoped, symlink, update, and uninstall instructions. See Integrations for host discovery paths.
Cobsidian remains an Agent Skill. The optional DSH Cordis Bundle packages that same canonical skill and Python backend as a native DeepSeek Harness extension, adding typed tools and one-shot approval without changing the existing Skill, CLI, or MCP paths.
cd integrations/dsh
npm install
npm run build
dsh plugin --profile web add .
export COBSIDIAN_VAULT="/absolute/path/to/obsidian-vault"
dsh web
The native workflow exposes scan, dry-run, prepare, apply, and rollback as separate tools. DSH presents a one-shot approval while carrying the exact plan/transaction ID in the background; users do not paste hashes. Private note material is passed through permission-restricted temporary files rather than process arguments; the bundle stores plans under ~/.dsh/cobsidian by default and does not store API keys or tokens.
The bundle currently targets the DSH 0.1.0-rc.6 API family because DeepSeek Harness is still a developer preview. See the bundle guide for configuration, use, and verification.
Hosts with Model Context Protocol support can run Cobsidian as a local, read-only stdio server:
python -m pip install -r requirements-mcp.txt
python skills/cobsidian/mcp_server.py
Configure COBSIDIAN_CONFIG or COBSIDIAN_VAULT; see MCP Server.
Give the agent the workflow, the vault, and the safety boundary:
Use Cobsidian to turn this conversation into an Obsidian learning note.
Check whether it should create a new note or append to an existing one.
Add useful wiki links, report possible duplicates, and wait before writing.
Copy-ready variants live in Prompt Examples.
Cobsidian accepts an explicit mode or routes from natural language. Clear requests use one inferred mode; ambiguous requests recommend at most two relevant modes. See Modes and the detailed mode references.
Deterministic helpers cover vault scanning, duplicate detection, backlink suggestions, validation, dry runs, transaction preparation, exact-plan application, and quality evaluation:
python skills/cobsidian/scripts/scan_vault.py /path/to/vault --json
python skills/cobsidian/scripts/find_duplicates.py /path/to/vault
python skills/cobsidian/scripts/suggest_backlinks.py /path/to/vault --file draft.md
python skills/cobsidian/scripts/validate_notes.py /path/to/vault
python skills/cobsidian/scripts/write_executor.py prepare /path/to/vault --action append --target-note "RAG.md" --content-file draft.md --plan-out /tmp/cobsidian-plan.json
python skills/cobsidian/scripts/write_executor.py apply /path/to/vault --plan /tmp/cobsidian-plan.json --confirm PLAN_ID --json
cobsidian.config.example.yml is the current supported config surface. It covers the vault path, mode directories, Knowledge Read presentation, backlink limit, duplicate threshold, append preference, and validation behavior.
interaction:
knowledge_read: auto
Copy it to cobsidian.config.yml; helper scripts accept --config cobsidian.config.yml.
Contributions are welcome. Read CONTRIBUTING.md, and never include private vault content, local profile paths, API keys, unpublished notes, or personal screenshots.
Cobsidian is an independent open-source project. OpenAI, Codex, Obsidian, Claude, Cursor, Hermes, and other names are trademarks of their respective owners. This project is not affiliated with, endorsed by, or sponsored by those owners.
MIT © 2026 Totoro.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。