sourcecode: Open-Source CLI to Compress Large Java/Spring Monorepos for Claude

An open-source CLI tool called sourcecode was released to compress large enterprise repositories into Claude-friendly context. Aimed at Java/Spring monorepos, it targets the problem of excessive token usage when feeding codebases to LLMs like Claude.
What It Does
The tool provides several features out of the box:
- Repo context compression — reduces a real Java Spring Boot + Angular monorepo (~4k files) from roughly ~3M tokens (manual estimate) to
--agentmode: ~5k structured tokens, or--compactmode: ~1.7k tokens. - Git hotspots / churn detection — identifies files with frequent changes.
- TODO / FIXME extraction — pulls all code annotations.
- Symbol lookup — across duplicated modules and projects.
- PR delta workflows — produces structured JSON/YAML output for Claude workflows.
Current Limitations
The author notes that deep Java semantics, Spring/MyBatis understanding, cross-file reasoning, and full architecture comprehension are still major works in progress. The tool is far more useful today as a context compression + navigation tool than as a generic AI code intelligence platform.
Future Focus
Going forward, the project will concentrate on:
- Java/Spring monorepos specifically
- Semantic symbol graphs
- Impact analysis
- Working-tree awareness
Installation
Available via PyPI and npm:
pip install sourcecode==1.0.0
# or
npm install sourcecode-npmGitHub repo: HarounDominique/sourcecode
Who It's For
Developers using Claude with large Java/Spring monorepos who need to reduce context size while preserving navigability and key code structure.
📖 Read the full source: r/ClaudeAI
👀 See Also

Freestyle Launches Sandboxes for AI Coding Agents with Live Forking
Freestyle provides cloud sandboxes for AI coding agents that start in ~500ms and feature live forking with <400ms pause, allowing full VM clones including memory state. They run full Debian with hardware virtualization on bare metal infrastructure.
TextExpander MCP Server Lets Claude AI Access and Manage Your Snippet Library
TextExpander launched a free MCP server that connects your snippet library to Claude. Claude can list, search, create, and edit snippets in bulk, including dynamic fields like dates and dropdowns.

Developer builds Rust compression library with Claude Opus 4.6, questions utility
A developer used Claude Opus 4.6 for two weeks to create a 15,800-line Rust compression library with 449 passing tests, Python bindings, and C FFI layer, but questions whether another compression library was needed.

Building a Geological Clock with Claude Code: Single HTML + Three.js
A product designer built eona.earth, a geological clock that maps Earth's 4.5 billion years onto 12 hours, using Claude Code, Three.js, and custom WebGL shaders — all as a single HTML file with no build step.