Stack Gems
Menu

Alternatives · Code Context

RTK alternatives (2026)

RTK: Apache-2.0 agent shell thrift. Cut tokens under agents; it is not the agent.

Its Catch: Vs the coding agent itself (Claude Code, Codex, Aider): RTK is a token-thrift layer under agents — output compression/proxy, not an agent, not a model router.

Below: 8 free or free-tier tools from the same category (code context tools for agents), free and open source first, then the closest match by shared tags. Each keeps its own Catch.

  1. 1.RepomixMIT pack entire repo into one AI-friendly file

    Free / OSS · OSS/MIT · 28.9k GitHub stars

    VerdictMIT repo packer. Free forever.

    CatchStill a dump - huge monorepos blow context. Distinct from CodeGraph and Gitingest.

  2. 2.GitingestMIT turn any GitHub URL into prompt-ready ingest

    Free / OSS · OSS/MIT · 15.9k GitHub stars

    VerdictMIT GitHub ingest. Free forever.

    CatchPublic-URL convenience, not a private monorepo indexer. Distinct from Repomix local pack and CodeGraph graph.

  3. 3.files-to-promptApache-2.0 concatenate a directory into one LLM prompt

    Free / OSS · Apache-2.0 · 2.8k GitHub stars · quiet 180d+

    VerdictApache-2.0 dir-to-prompt CLI. Free forever.

    CatchQuiet since early 2025 - still useful, not a product. Distinct from Repomix and Gitingest.

  4. 4.CodeGraphMIT local AST code knowledge graph for coding agents

    Free / OSS · OSS/MIT · 74.4k GitHub stars

    VerdictMIT local code graph for agents. Free forever; packers are the text cousins.

    CatchIndex cost and residual context occupancy are real. Not a hosted SaaS brain. Distinct from Repomix/Gitingest (pack text) and Aider (edit loop).

  5. 5.SerenaMIT MCP toolkit: symbol-level retrieve/edit via free LSP

    Free / OSS · OSS/MIT · 30.4k GitHub stars

    VerdictMIT symbol MCP for agents. Free LSP core; JetBrains plugin is optional paid.

    CatchComplements agents; it is not a turnkey SWE loop. JetBrains plugin backend is paid optional (free trial) — LSP path stays free. Symbol quality tracks whatever language server you wire.

  6. 6.MarkItDownMIT office/PDF/media→Markdown converter for RAG pipelines

    Free / OSS · OSS/MIT · 191k GitHub stars

    VerdictMIT document converter. Free forever; use when agents need to read Office and PDF, not just code.

    CatchVs files-to-prompt/Repomix/Gitingest (code-context tools): MarkItDown is the *document converter*, not a codebase packer. Heavy formats (PDF, images, audio) need optional dependencies (pdfminer, speechrecognition, Azure services). Quality varies by source format — complex PDFs may need the vision/Azure path.

  7. 7.HisterPrivate local search over visited pages and files

    Free / OSS · AGPL-3.0 · 6.1k GitHub stars

    VerdictAGPL-3.0 local privacy search. Useful personal context for agents; the network-copyleft Catch is loud.

    CatchVs Gitingest and Repomix (package repositories for model context) and Agent Reach (agent-facing public-web access): Hister searches your local history/files, not a repo snapshot or the open web. AGPL-3.0 carries network copyleft if you modify Hister and offer it as a service; keep that boundary in your deployment review.

  8. 8.Context ModeElastic-2.0 MCP sandbox for tool output and session continuity

    Free / OSS · Elastic-2.0 · 30.8k GitHub stars

    VerdictElastic-2.0 source-available context middleware. Useful SQLite/FTS MCP sandbox; no hosted/managed offering without a careful license review.

    CatchElastic License 2.0 is source-available, not OSI open-source; do not treat the `open-source` label as MIT/Apache freedom. ELv2 restricts offering the software as a hosted or managed service, so review the license before embedding or commercializing a managed Context Mode deployment. Vs a plain MCP server: this is output/context infrastructure, not another domain tool.

FAQ

What are the best free alternatives to RTK?
Repomix, Gitingest, files-to-prompt, CodeGraph, Serena. All are reviewed on Stack Gems in the same category (code context tools for agents); 8 free or open source.
What is the catch with RTK?
Vs the coding agent itself (Claude Code, Codex, Aider): RTK is a token-thrift layer under agents — output compression/proxy, not an agent, not a model router.
Is there an open-source alternative to RTK?
Yes: Repomix (OSS/MIT), Gitingest (OSS/MIT), files-to-prompt (Apache-2.0), CodeGraph (OSS/MIT).

More