agentleFS
Sai-Lalith-SistlaSai-Lalith-Sistla/Capio/CLAUDE.md

Capio

CLAUDE.md2 starsChanged 5 months agoMITView on GitHub

Guidance for Claude Code. This project uses the AAMAD framework. Before any implementation work: read CHECKLIST.md + project-context/2.build/TASKS.md. Capio — Latin: "I seize, I capture." Captures screenshots of Instagram/LinkedIn posts, articles, and web pages, extracts text via OCR so they're searchable. Pain point: 1000+ phone screenshots impossible to find later. Read these before touching any code. Full content in .claude/rules/. See _extract_content/CLAUDE.md for details.

  • In this repositoryOne other file it gives its agents.

The file

We split this CLAUDE.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before any implementation work: read CHECKLIST.md + project-context/2.build/TASKS.md.

    line 23
  2. Very specific:

    Read these before touching any code.

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

Guidance for Claude Code. This project uses the AAMAD framework.


Navigation

.claude/
  agents/    — @backend-eng  @frontend-eng  @product-mgr  @qa-eng
  prompts/   — prompt-phase-1-define  prompt-phase-2-build  prompt-phase-3-deliver
  rules/     — architecture  tech-stack  output-format  pipeline  frontend-chrome  coding-standards
  templates/ — PRD  SAD  MR
project-context/
  1.define/  — PRDs and SADs (feature definition artifacts)
  2.build/   — api.md  pipeline.md  schema.md  setup.md  TASKS.md
  3.deliver/ — QA logs, deploy configs
AGENTS.md    — persona index + phase prompt guide
CHECKLIST.md — full project status across all three phases

Before any implementation work: read CHECKLIST.md + project-context/2.build/TASKS.md.


What is Capio

Capio — Latin: "I seize, I capture."

Captures screenshots of Instagram/LinkedIn posts, articles, and web pages, extracts text via OCR so they're searchable. Pain point: 1000+ phone screenshots impossible to find later.


Run the server

uvicorn backend.api:app --host 0.0.0.0 --port 8008 --reload

Build documentation

DocLocation
Setup & installproject-context/2.build/setup.md
API referenceproject-context/2.build/api.md
Pipeline detailproject-context/2.build/pipeline.md
DB schemaproject-context/2.build/schema.md
Active tasksproject-context/2.build/TASKS.md

Always-on rules

Read these before touching any code. Full content in .claude/rules/.

RuleSummary
architecture.mdcLocal-network-first; relative paths in DB; db.py init only at startup
tech-stack.mdcEasyOCR / FastAPI / SQLite FTS5 / Groq / Vanilla JS — no substitutions
output-format.mdcNever return raw JSON — always TOON
pipeline.mdc5 steps in order; per-batch commits; DB before filesystem
frontend-chrome.mdc56px header; no frameworks; mobile < 640px
coding-standards.mdcParameterized SQL; with conn:; startup key validation; atomic file writes
docs-sync.mdcDB change → update schema.md; endpoint change → update api.md; never report done without docs in sync

Codebase map

Extraction core — _extract_content/ (standalone CLI + MCP)

_extract_content/
  extract.py          CLI entry point
  server.py           FastMCP server (exposes extract_images as MCP tool)
  output_utils.py     TOON serialisation — save_output / save_combined
  extractors/
    image.py          EasyOCR wrapper + continuous screenshot detection

See _extract_content/CLAUDE.md for details.

Backend — backend/ (FastAPI + SQLite)

FileWhat it does
backend/api.pyFastAPI app — all pipeline steps, browse API, cleanup, Loci endpoints
backend/db.pySQLite schema init — img_tbl, bth_image_tbl (FTS5)
backend/similarity.pyTwo-stage Jaccard duplicate detection (title+gist+author tokens → 3-word shingles of MD body)
backend/recommender.pyRFM topic chips + recommendations for Loci
backend/classifier.pyPlatform classifier (keyword scoring, 11 platforms)
backend/prompts.pyGroq prompt builders — ocr_cleanup_prompt, retitle_prompt
backend/static/Web frontend — Upload, Process, Browse, Clean Up, Loci
backend/inbox/Screenshot drop zone
backend/archive/Output Markdown notes (<slug>_<YYYYMMDD>_<hex6>.md)

Pipeline steps (run in order from /process)

  1. Scan inbox → img_tbl
  2. Group continuous shots → bth_image_tbl
  3. EasyOCR → json_data + toon_data (SSE stream)
  4. Classify platform → platform
  5. Groq LLM → title, gist, author, archive/*.md (SSE stream)

Pages

PagePathKey features
Home/5 cards
Process/processStep table, SSE live feed, Run All
Browse/browseFTS5 search, filters, Smart Merge, Stats, image viewer
Clean Up/cleanupOrphan scan, batch delete by ID
Loci/lociTopic chips, RFM recommendations, reading panel, PDF print

Hardware

  • Windows 11, NVIDIA RTX 3060 (6 GB), CUDA 12.5
  • Python 3.10
  • PyTorch: https://download.pytorch.org/whl/cu124

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.