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

Developer builds .NET SaaS template generator with Claude Code, shares workflow insights
A developer open-sourced NETrock, a .NET 10 SaaS starter template with authentication, ORM, and background jobs, then built a client-side generator for it using Claude Code. The generator lets users pick features and download a working .zip project that stays in their browser.

Open-Source Web UI for Parallel Claude Code Sessions Using Git Worktree
A developer has built an open-source web UI called CCUI that enables running multiple Claude Code sessions in parallel using git worktree. It runs as a local web server accessible via browser and supports SSH port forwarding for remote development.

Developer Builds Tool for Realistic Relational Database Generation
A developer built a tool that generates fully loaded relational databases with realistic data, solving the problem of creating test databases with intact foreign key relationships and cross-table consistency.

FlowBoard v5: The Project Workspace Your AI Agents Actually Run
FlowBoard v5 is a React-based project workspace for AI agents. It includes an event-sourced task store (SQLite), multi-agent support, idea-to-specs loop, and modular overview widgets.