Skip to content

API Reference parrot.knowledge.scan_excludes

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.knowledge.scan_excludes

View source

The single source of truth for directories no scanner ever descends into.

Both knowledge subsystems walk the same repositories and had grown their own copy of this list: wiki.repo_scan.DEFAULT_EXCLUDE_DIRS and graphindex.cli._ALWAYS_SKIP. The graphindex copy was a strict subset, missing exactly the tool-output directories (.claude, .parrot, .worktrees, .graphindex, .obsidian, .trash) — so anything discovering through graphindex re-scanned every SDD worktree, i.e. a full duplicate copy of the repository per open worktree.

This module owns the union. It deliberately imports nothing: every CLI entry point pays for whatever a scanner's constants module drags in, so the shared list must stay a leaf.

Names here are matched against individual path PARTS, never prefixes — a directory called build is pruned at any depth. Path-prefix exclusions (e.g. a nested wiki bundle) are a separate concern owned by the caller.

Attribute SCAN_EXCLUDE_DIRS

Type: frozenset[str]

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally