bootstrap

A command-line importer that loads documents from a folder into a searchable memory store.

In plain words
What is it for?
Use it to import Markdown or text files, keep their metadata, assign categories and authors, or place them in a chosen store.
Why use it?
It avoids adding files one by one and lets you preview matches or skip documents already imported.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/proticom/gnosys/bootstrap
Clone the repo
git clone --depth 1 https://github.com/proticom/gnosys
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 529 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00529
Opus 5 $0.00000 $0.00264
Sonnet 5 $0.00000 $0.00106
Haiku 4.5 $0.00000 $0.00053

Measured yesterday against content hash eaacc8daf3d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bootstrap scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/bootstrap.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gnosys bootstrap

Batch-import existing documents from a source directory into the memory store.

Usage

gnosys bootstrap ./docs
gnosys bootstrap ./notes --pattern "**/*.md" "**/*.txt" --dry-run
gnosys bootstrap ./archive --skip-existing --preserve-frontmatter --store project
gnosys bootstrap ./imports --category imported --author human --authority imported --confidence 0.7

Options

Option Description
-p, --pattern <patterns...> File glob patterns (default **/*.md)
--skip-existing Skip files whose titles already exist
-c, --category <category> Default category (default imported)
-a, --author <author> Default author (default human)
--authority <authority> Default authority (default imported)
--confidence <n> Default confidence 0–1 (default 0.7)
--preserve-frontmatter Keep existing YAML frontmatter when present
--dry-run Preview without writing
-s, --store <store> Target writable store

Behavior

  • Resolves a writable store; exits with No writable store found. when none available.
  • Calls discoverFiles to preview matches; prints Found N files in <sourceDir>.
  • If zero files match, prints Nothing to import. and returns without calling bootstrap.
  • Otherwise runs bootstrap(writeTarget.store, ...) with mapped options.
  • Prints summary: Bootstrap DRY RUN or Bootstrap COMPLETE with scanned/imported/skipped/failed counts.
  • Lists imported, skipped, and failed file paths in separate sections.

Output example

Found 12 files in ./docs

Bootstrap COMPLETE:
  Scanned: 12
  Imported: 10
  Skipped: 2
  Failed: 0

Platform notes

macOS / Linux

  • Source directory can be relative or absolute.
  • Glob patterns follow the bootstrap library conventions.

Windows

  • Quote paths and patterns in PowerShell when they contain spaces.

Validation

cd gnosys-public
npm run cli -- bootstrap --help

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 71 lines · 0 tokens per session scan A eaacc8daf3d1

Subscribe to this mod's changes

bootstrap is a command published in the GitHub repository proticom/gnosys (4 stars, last pushed 15d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 529 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.