npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

claude-code-infinite

v1.0.11

Published

Wrapper for Claude Code CLI

Readme

Claude Code Infinite

  • Maximize Claude's intelligence with context-management from MemTree.dev
  • Supports unlimited-length coding sessions
  • Feels fast and fresh with every message
  • Automatically recalls only the relevant past information
  • Allows you to continue your session without summarizing or compacting

Requirements

[!NOTE]

No Anthropic Subscription

If you do not want to buy Anthropic subscription, choose option 2. "Anthropic Console account", during the Claude Code setup.

You don't need to buy API credits, just login and Claude Code will let you complete setup. Anthropic API usage will be billed through https://polychat.co.

Finally run /logout within Claude Code and rerun with ccc

Setup

  1. Install with npm
npm install -g claude-code-infinite
  1. Run Claude Code Infinite with
ccc

How it works

When you send a message, we retrieve relevant details and summaries from the prior messages in your thread. These details and summaries populate a memory message. Following the memory message, we append a compressed version of your recent message history. The resulting context-window is dramatically smaller, allowing Claude to process your request with much greater efficacy, lower latency, and reduced cost.

What this is NOT

This is not a MPC or tool for simply retrieving memories. While we are compatible with all MPC's, tools, and other Anthropic features, these do not prevent your context window from becoming detrimentally large. MCP's and tools are some of the biggest token bloaters and it's exactly these types of messages that we heavily reduce during our compression phase.

Why it works

LLMs get exponentially less intelligent as their input grows.

References:

Furthermore, the above research primarily tests on needle-in-a-haystack tasks, which underestimates the effect for more difficult tasks encountered in coding.

This is why starting sessions from scratch provides such a significant uplift in ability. What we're essentially doing is keeping each session as close to from-scratch as possible by limiting the tokens in Claude's context window to around 30k, or 15% of the standard 200k context-limit, filled precisely with the information relevant to your last message. Read more about how MemTree works here.

Operating System Analogy

It may seem strange that we are advocating for small context windows in a product called Claude Code Infinite. But Infinite is referring to the size of a new memory layer, the MemTree, which is a layer above the context window. This layer is larger and updated more slowly than the LLMs main input, just as disk is larger + slower than RAM.

So you can think of MemTree as an operating system's virtual memory manager. Just as an OS manages RAM by swapping less-used data to disk, MemTree manages the model's context window by intelligently recalling only the most relevant information from past interactions. This ensures that the model always has access to the most pertinent data without being overwhelmed by the entire history of the conversation.

Usage Tips

  • If you want your session to apply to many different tasks, we recommend giving the overall high level goal you want for your session in the first message, e.g. "Refactor this project to remove code smells and bugs". Then followup with lower level tasks in subsequent messages. This as Anthropic models key heavily off the first message. You should also feel free to start new sessions for new tasks. This as the model will continue to have a focused context with your CLAUDE.md and first message always included. Reach out to [email protected] if you have any questions or concerns!

  • Add context to your status line to see how MemTree keeps your context small

    /statusline add context % used
  • You want your fresh session context to be 10k tokens or less. If your starting context is more than that, consider reducing the size of your custom MCP's and slash commands to ensure Claude performs at its very best

  • You can resume previous threads with /resume

Troubleshooting

401 {"detail":"Your session has expired or the token is invalid. Please sign in again."}

This happens if you chose "Anthropic Console account" during setup instead of using an Anthropic subscription.

Fix:

  1. Run: /logout
  2. Re-run ccc

This logs you out of your Anthropic Console account and keeps you in ccc which uses PolyChat. If you'd like to use your own API key with PolyChat, login to polychat.co and head over to our BYOK settings.

API Rate limit errors

If you hit your Anthropic subscription's rate limits, you can still continue by running /logout and restarting ccc. This will bill tokens through your PolyChat subscription. Remember that you can use the /resume slash command to resume previous sessions.