Skip to content

Sources

A source is a body of knowledge that already lives somewhere else: an Obsidian vault, a GitHub repository, a Notion workspace, a Discord server, or a web page. Signet reads it, indexes it, and recalls from it, but the original stays the source of truth. Signet never edits notes, rewrites frontmatter, creates files, or moves anything inside a source, and it never writes to GitHub, Notion, or Discord.

Sources are different from saved memories. A saved memory is evidence Signet owns. A source hit in recall is marked as source-backed and carries a source_path pointing at the original, so an agent can open the real file when it needs exact context. Dreaming reads source content like any other evidence and files claims that cite it.

Signet also indexes some harnesses’ own memory files automatically, without any setup: Codex’s memories/ folder, Claude Code’s per-project memory/ folders, and Hermes Agent’s MEMORY.md and USER.md. These are read in place the same way.

To add a source from the dashboard, follow Connect sources and import documents. This page explains what each source kind indexes, the CLI commands for settings the dashboard doesn’t expose, and how updates and removal work. For request and response shapes, see the Documents and sources API.

Terminal window
signet sources add obsidian /path/to/ObsidianVault --name "Research Vault"
signet sources add obsidian /path/to/ObsidianVault --exclude "private/**" --exclude "*.tmp"
signet sources list
signet sources remove obsidian:...

Signet indexes the Markdown files below the vault root. It skips .obsidian/, .trash/, .hermes/, hidden folders, and hidden files. Repeat --exclude for anything else that should stay out of recall; the dashboard form has no exclude field. Attachments and other non-Markdown files are not indexed.

A connected vault shows up in three ways:

  1. Artifacts. Each Markdown file becomes a read-only artifact with source_kind = "source_obsidian_markdown" and its absolute source_path. Whole-file hits in recall start with a header like [Obsidian vault note: /path/to/vault/Idea.md].
  2. Graph. The vault root, folders, and files become entities in the knowledge graph, and wiki links become links between them. Source sync does not turn headings or paragraphs into claims; Dreaming reads the text and files claims that cite it.
  3. Chunks. Files are split by heading for search by meaning. Chunk text records the file path, heading, and line range. New chunks are stored as source_chunk; chunks indexed by older versions may still carry source_obsidian_chunk.

A recall hit from a chunk looks like this:

{
"source": "source_obsidian",
"type": "source_chunk",
"source_path": "/path/to/vault/permanent/Idea.md"
}
Terminal window
signet sources add github --repo Signet-AI/signetai --name "Signet GitHub"
signet sources add github --repo Signet-AI/signetai --token-ref GITHUB_TOKEN --resource-type issues --resource-type discussions
signet sources add github --repo 'Signet-AI/*' --resource-type docs --doc-path "docs/**/*.md" --max-items 50

Without --token-ref, a GitHub source indexes what the REST API serves without a token: issues, pull requests, and selected Markdown docs, with comments. Discussions use the GraphQL API and need a token. Other flags: --state filters issues and pull requests by state, --label filters by label, and --no-include-comments skips comments.

--max-items caps items per repository. Doc paths must be Markdown files or Markdown globs, so a GitHub source never becomes arbitrary code indexing. When some fetches fail, Signet records failure artifacts and the index job reports failure instead of claiming the data is complete.

Terminal window
signet secret put NOTION_TOKEN
signet sources add notion --token-ref NOTION_TOKEN --name "Team Notion"
signet sources add notion --token-ref NOTION_TOKEN --max-pages 2000

Create an internal integration in Notion, store its token as a Signet secret, and share the pages you want indexed with the integration. Signet indexes what the integration can read, up to --max-pages pages per sync (default 500, maximum 10,000), most recently edited first. Database entries are indexed with their properties above the page body. Raw ntn_ or secret_ tokens are rejected in source settings.

On each sync:

  • An unchanged page is skipped. Signet treats Notion edit times as minute-precise, so it refetches a page edited in the same minute as the last fetch, and refetches when the rendered title or properties changed without an edit (formulas, rollups, person names).
  • Pages that stop appearing are removed after a complete listing. Signet looks up a missing page before removing it, up to 200 lookups per sync, so a page edited mid-listing isn’t dropped; it is removed when Notion reports it gone (404 or trashed). When --max-pages cuts the listing short, pages well outside that window are removed without a lookup, and pages near its edge are removed if the lookup shows they still fall outside it. Unconfirmed removals are kept and reported. Removed pages are soft-deleted and their content kept until the source itself is removed.
  • A failed page fetch keeps the last indexed version. An incomplete listing skips removal.
  • Blocks Notion can’t render as Markdown are fetched one at a time, 25 per page at first and up to 400 on later syncs. Blocks the integration can’t serve (buttons, embeds, templates) become [Unsupported Notion block: <type>]. Blocks not yet retrieved become [Missing Notion block: <type>] and mark the page incomplete until a later sync fills them.
  • A sync stops early when Notion rejects the token, after five transient failures in a row, or after three hours. The next sync resumes with the pages not yet synced. Rate limits are retried with Notion’s Retry-After.
  • Page text is capped at 750,000 characters; clipped pages say so and carry a clipped flag.

Fetch failures, unconfirmed removals, and incomplete pages are recorded as failure artifacts, and the index job reports failure until they resolve. Comments, file attachments, and data-source schemas are not indexed.

Discord sources read guild content through the Discord REST API with a bot token, or read your local Discord Desktop cache.

Terminal window
signet secret put DISCORD_BOT_TOKEN
signet sources add discord --guild 123456789012345678 --token-ref DISCORD_BOT_TOKEN --name "Team Discord"
signet sources add discord --guild 123456789012345678 --token-ref DISCORD_BOT_TOKEN --channel general --since 2026-01-01
signet sources add discord --mode desktop-cache --name "Local Discord Cache"
signet sources add discord --mode desktop-cache --desktop-cache-path ~/.config/discord --full-cache

Raw tokens are rejected in source settings; pass a secret name with --token-ref. The dashboard form covers a single guild over REST. Modes, channel filters, cache paths, and the options below need the CLI or the Discord source API. Run signet sources add discord --help for the full list, including --max-messages, --no-threads, --no-archived-threads, --include-private-archived-threads, --no-members, --no-attachments, --attachment-text, --max-attachment-text-bytes, --no-embeds, --no-polls, and --no-thread-members.

REST mode indexes one or more guilds: categories, text, announcement, forum, and media channels, active and archived threads, member snapshots, and messages grouped into windows with replies, pins, mentions, attachment metadata, embeds, polls, and reactions. Text-like attachments are fetched only with --attachment-text, within a size limit. Each refresh fetches newer messages first, then continues backfilling history to the --since bound. A failed or partial fetch is recorded as a failure artifact and never treated as a deletion; existing rows stay until a successful sync refreshes them.

Gateway tail mode keeps a bot gateway connection open and indexes new, edited, and deleted messages, channel and thread changes, and member changes as they happen. It needs the guild, member, message, reaction, and message-content intents. Removing or cancelling the source closes the connection.

Desktop cache mode reads messages your Discord Desktop app has cached, with no bot token and no user-token automation. It indexes cached guild messages and direct messages (under the synthetic guild @me), channel metadata, and an import summary. The index mirrors the cache: after a complete scan, messages no longer in the cache are removed from Signet.

Add a public http(s) page from the dashboard (Import → Web page) or with POST /api/sources/web. Signet follows a short redirect chain, refuses loopback, private, and link-local addresses, enforces a timeout, an HTML content type, and a size limit, and never runs page JavaScript. It extracts readable Markdown and metadata (title, author, description, dates, canonical URL, site, language, image) and stores that as a web artifact. The original HTML is not kept. RSS feeds are not supported.

Files you import from the dashboard become import sources, one per file. Signet keeps the original bytes in the workspace’s managed import storage (normally data/imports/) and indexes a normalized copy:

  • Office documents, PDFs, and e-books are converted to Markdown.
  • JSON is kept as structured JSON, plus a searchable text projection.
  • CSV is kept as one table, plus searchable artifacts of 100 rows each with their row ranges.

Accepted formats, size limits, and the duplicate options are in Connect sources and import documents. The import result names the source-document entity the file became; claims come later, when Dreaming reads it. Imported sources can’t be re-indexed from the dashboard (#2321).

Exported agent transcripts go through a durable import job instead of the file importer:

Terminal window
signet sources import ./claude.jsonl ./codex.jsonl --kind transcripts --schema signet --agent my-agent --json
signet sources imports list --agent my-agent
signet sources imports status <job-id> --agent my-agent --watch --json
signet sources imports pause <job-id> --agent my-agent
signet sources imports resume <job-id> --agent my-agent
signet sources imports retry <job-id> --agent my-agent
signet sources imports cancel <job-id> --agent my-agent

The input is the Signet export schema (signet-export, version 1): one JSON object per line with source, id, harness, agent_id, session_key, project, timestamp, an exact message_count, and typed messages (roles user, assistant, system, tool, unknown). Content, whitespace, roles, projects, timestamps, and provenance are kept exactly. The --agent you choose owns the import; an agent_id inside the file does not change that.

The CLI creates the job, uploads each file in checksummed parts (resumable with signet sources imports upload), then starts the job. The daemon stores the uploaded bytes in its database and processes them in batches: at most 25 records or 8 MiB per batch, 16 MiB per record, 4 MiB per message, and 50,000 messages per record. Each line ends up imported, duplicate (same identity and content as before), or rejected (for example, same identity with different content). Blank lines are counted separately.

A job moves from staging to queued when started and running when the worker picks it up. It can be paused, and ends completed, completed_with_rejections, cancelled, or failed. A completed job has no pending lines; a cancelled or failed job can keep partial progress and pending lines. A daemon restart resumes from the last checkpoint without duplicating records. The status shows total = imported + duplicate + rejected + pending.

When a file finishes, the import asks Dreaming to read its conversations. That request keeps scheduling passes until a pass that reads evidence starts after the import. It resolves once every imported conversation has been reviewed, which can take a few passes when many imports are pending. Records committed before a pause or failure are stored, but the Dreaming request is raised only when a file finishes.

In the dashboard, the Agent transcripts import does the same and shows progress under Settings → Data & files → File imports.

Terminal window
signet sources snapshot export discord:... --out discord-source.snapshot.json
signet sources snapshot import discord:... discord-source.snapshot.json

A snapshot exports a source’s artifacts with their provenance so you can back up or move a source. Importing writes them back through the normal artifact path, so search indexing and removal work as before. The target source must already exist with the same ID and kind. Desktop-cache direct messages (@me) are left out unless you pass --include-local-discord. A snapshot is not a workspace backup.

Connected sources update in place. When files change, Signet re-reads them and refreshes its artifacts, graph rows, and chunks.

  • New and removed source settings are picked up automatically.
  • One scan runs per source at a time; extra requests during a scan collapse into one rescan afterwards.
  • Unchanged files are not reprocessed.
  • When a file changes, claims that cite it stay. A claim whose quoted text is no longer in the file is flagged for Dreaming to keep, replace, or archive. A deleted file flags its claims the same way.
  • Deleted files are soft-deleted and their chunks removed. A rename is a delete plus an add.

GET /api/sources/:sourceId/health, and the source row on the dashboard, report artifact and chunk counts, the latest artifact and checkpoint times, failures, partial and stale checkpoints, leftover rows from earlier purges, and orphan chunks. The status is healthy, degraded, empty, unhealthy (permission denied), or unknown when the check itself failed; with unknown, the counts are placeholders.

A source is degraded when it has partial or stale checkpoints, purge leftovers, or orphan chunks, or (except for Discord) recorded fetch failures. Discord failure artifacts are listed in failures but do not change the status today (#2331).

On macOS, a folder blocked by privacy settings is reported as a permission problem with the exact path and a Full Disk Access instruction, and Signet backs off that path until access is granted.

When recall, Dreaming, or another prompt-facing path uses source content, detected credentials are replaced with [redacted credential]. The stored artifact is not changed.

Terminal window
signet sources remove obsidian:...

disconnect is an alias. Removal cancels any running index job, purges Signet’s artifacts, graph rows, chunks, and embeddings for the source, then deletes its settings. Source files are never touched.

The daemon answers in one of three ways:

  • 200 with purged: removal finished.
  • 200 with cleanupPending: true, or 202 with pending: true: part of the cleanup is still running or will be retried. The source stays marked for deletion until it finishes.
  • 409: the source is being indexed or removed already. Try again later.

Neither client shows a pending removal yet. The dashboard drops the row as soon as the daemon accepts the request (#2339). The CLI reports success for a pending removal, and when the daemon answers with any error, including 409, it deletes the source settings locally and warns that nothing was purged (#2330).

Start the daemon before you remove a source. If the daemon isn’t running, the CLI removes the settings only and leaves the indexed rows in the database. Running remove again later can’t purge them, because the daemon no longer knows the source. For a connector source, add it again with the same settings (its ID comes from them), then remove it with the daemon running.

With authentication on, adding an Obsidian vault or a desktop-cache Discord source and using the folder and file pickers need admin. Adding other connectors, exporting snapshots, and removing sources need connectors. File imports need documents; importing by filesystem path also needs an admin loopback connection. Transcript imports need modify for the target agent.