scoutica scan
The scan command is the powerhouse of the Scoutica Protocol. It takes any directory of unstructured text, PDFs, or code and compresses it into a high-fidelity, machine-readable professional profile.
Command Syntax
Section titled “Command Syntax”scoutica scan <source-directory> [options]Options
Section titled “Options”| Option | Behavior |
|---|---|
--clipboard |
Skips executing the local AI CLI call. Instead, it aggressively copies the deeply formatted prompt and embedded documents directly into your system clipboard, allowing you to paste it into ChatGPT, Claude.ai, or Gemini Advanced. |
--output <directory> |
Selects the exact card directory before any provider call. |
--with <provider> |
Selects a fixed, characterized provider adapter. |
--allow-remote-provider |
Records consent for this invocation. Required for remote-capable providers in noninteractive use. |
--force |
Regenerates even when card-owned source state is unchanged. |
<source> |
Required. The directory containing your unstructured data (PDFs, Markdown, text, code, CVs). |
[output] |
Optional. The directory to write the generated JSON/YAML to. Defaults to ./. |
The AI Parsing Pipeline
Section titled “The AI Parsing Pipeline”What it does:
When you run scoutica scan ~/CV, the CLI engine initiates the following operations:
- Reads supported top-level source documents with a 2 MiB extracted-text limit per file and 4 MiB aggregate limit. Over-limit input fails; it is never truncated.
- Uses
pdftotextto flatten any rich PDFs into rigorous raw plaintext. - Ingests supported top-level document formats (
.md,.txt, JSON, YAML, CSV, HTML, PDF, and DOCX). - Wraps this context tightly inside a massive system prompt (pulled from your
~/.scoutica/templates/scoutica_prompt.txt). - Discloses the provider destination and obtains consent when it is remote-capable.
- Supplies the payload through stdin or a request body, never as sensitive process arguments. Provider execution is capped at 300 seconds and the response at 8 MiB.
- Parses and validates the complete generated card in private staging, then promotes it with rollback protection.
- Writes source state only under
<card>/.scoutica/state.json; unchanged scans can skip the provider without consulting legacy cwd state.
Why use it:
- Zero-effort adoption: Mapping 10 years of professional experience across 5 different companies into a JSON schema manually takes hours.
scoutica scanaccomplishes it in 15 seconds. - Continuous Maintenance: You can run
scanagainst a folder containing 3 new certifications, and it will automatically update your profile.
Use Case A: Zero-to-One
Section titled “Use Case A: Zero-to-One”You have a folder called ~/professional/ containing resume.pdf, cover-letter.txt, and aws-cert.pdf.
scoutica scan ~/professional/ --output ./my-new-card/ --allow-remote-providerThe AI reads your Amazon certificate, places it under evidence.json, reads your PDF resume, structures it into profile.json, infers your location and remote preference into rules.yaml. You are completely done and ready to validate and publish.
Use Case B: The Clipboard Hack
Section titled “Use Case B: The Clipboard Hack”You do not want to install any CLI dependencies, but you DO have an enterprise subscription to ChatGPT. You have a folder of complicated legal documents you wrote proving your legal history.
scoutica scan ~/legal-history/ --clipboardYour clipboard now contains the master protocol system prompt + all the parsed text. You simply hit CMD+v inside ChatGPT, and it spits back exactly the structured files you need to copy into your repository.