$ account jimmc414
OneFileLLM is a versatile CLI tool and web application designed to process diverse inputs (local files, GitHub repositories, YouTube transcripts, arXiv papers, web pages, etc.) into a single structured XML-like output optimized for LLM consumption. The system features format-specific processors that extract and convert content (e.g., Excel to markdown, PDF text extraction, Jupyter notebook to code), token counting via tiktoken with optional NLTK-based compression, and metadata reporting. It includes a Rich-powered terminal interface with colored output and progress bars, a Flask-based web app with Server-Sent Events for real-time progress updates, and an alias system for JSON-stored shortcuts with placeholder substitution. Security is prioritized through SSRF protection, local path validation, and offline mode support. The architecture separates core processing logic (onefilellm.py), CLI handling (cli.py), utilities (utils.py), and web components (extras/web_app.py), enabling modular reuse.
This repository is a Python-based CLI tool for exporting, importing, and managing Claude Code sessions. It allows users to export sessions from ~/.claude/projects/ to portable formats (JSONL, markdown, XML), import them to resume work in different environments, and create backups for safe recovery. The tool features both legacy export to ~/claude_sessions/exports/ and enhanced in-repo export to .claude-sessions/, with intelligent session detection, UUID regeneration preserving message threading, and pre-import snapshots for rollback capability. It includes hook scripts for automatic exporting and slash command integration for seamless workflow integration.