Metadata-Version: 2.5
Name: catch-the-gist
Version: 0.0.4
Summary: Turn sources into Agent Skills.
Project-URL: Homepage, https://github.com/Brainferno/catch-the-gist
Project-URL: Source, https://github.com/Brainferno/catch-the-gist
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Requires-Python: >=3.11
Requires-Dist: mcp<3,>=2.3
Requires-Dist: pydantic>=2.8
Requires-Dist: pyyaml>=6
Requires-Dist: typer>=0.12
Description-Content-Type: text/markdown

# catch-the-gist

catch-the-gist turns documents, transcripts and notes into Agent Skills for Claude Code and Codex. Your coding agent reads the source in chunks through a small set of deterministic MCP tools, drafts the skill with you, and catch-the-gist writes, validates and installs it. Every instruction in the generated skill carries a provenance anchor that points back to the source passage it came from.

## What works in 0.0.4

- Text sources only: `.md`, `.markdown`, `.txt`, `.srt` and `.vtt` files. Video, PDF, images and other formats arrive in later sub-projects.
- Agent mode only: the agent you already run does the reading and writing. catch-the-gist itself makes no model calls.
- Output is a standard Agent Skill folder (`SKILL.md`, `references/`, `PROVENANCE.json`), installed to `.agents/skills/<name>` with a symlink at `.claude/skills/<name>` (project scope) or the equivalent under your home directory (user scope).

## Install the plugin

Claude Code:

```
/plugin marketplace add Brainferno/catch-the-gist
/plugin install catch-the-gist@catch-the-gist
```

Codex: add the same repository as a plugin marketplace (it ships `.agents/plugins/marketplace.json`) and install `catch-the-gist` from it.

The plugin starts the MCP server with `uvx`, pinned to the `v0.0.4` tag of the GitHub repository. To run Claude Code against a local checkout instead:

```
git clone https://github.com/Brainferno/catch-the-gist
CATCH_THE_GIST_FROM=$PWD/catch-the-gist claude --plugin-dir ./catch-the-gist/plugin
```

You need `uv` installed (`uvx` must be on your PATH).

## Use it

In Claude Code:

```
/catch-the-gist:catch-the-gist path/to/notes.md
```

The agent ingests the file, reads its chunks, proposes a skill name and description, and waits for your confirmation before writing and installing it.

## CLI

The same package has a command line for the deterministic steps. From a clone, run the commands with `uv run` inside the checkout, as below; after the PyPI release you can drop the `uv run` prefix and call `catch-the-gist` directly.

```
uv run catch-the-gist version
uv run catch-the-gist ingest path/to/notes.md [--json]
uv run catch-the-gist validate .agents/skills/<name> [--json]
uv run catch-the-gist install <skill-dir> [--scope project|user] [--agent claude-code|codex] [--force] [--copy] [--json]
uv run catch-the-gist mcp
```

`ctgist` is a short alias for `catch-the-gist` and takes the same commands. `validate` exits 8 when the skill has errors. Set `CATCH_THE_GIST_WORKDIR` to run somewhere other than the current directory; the cache lives in `<workdir>/.catch-the-gist/cache`.

## Privacy

catch-the-gist itself makes no network calls and reads no credentials, including nothing under `~/.claude`. It never calls `claude` or `codex`. The one network access is outside the code: `uvx` downloads the package (and its Python dependencies) the first time the plugin starts the server, and it may also download a Python 3.13 interpreter on that first run. Your sources stay on your machine, and what your agent does with the chunks it reads is governed by that agent's own settings.

## License

Apache-2.0. See `LICENSE` and `NOTICE`.
