
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
@ridit/lens
Advanced tools
Lens is an AI-powered CLI tool that lets you explore, understand, and modify any codebase through natural language. Built with React and Ink for a rich terminal UI, Lens connects to multiple LLM providers and gives the AI direct access to your filesystem, shell, and the web.
@ridit/lens-sdk/auto skips confirmation for safe read/search tools/auto --force-all approves everything including shell and writes# using bun
bun add @ridit/lens -g
# using npm
npm install -g @ridit/lens
lens open interactive chat (default)
lens chat chat with your codebase
lens chat -p /path/to/repo chat in a specific repo
lens chat --session <id> resume or create a session by ID
lens chat --prompt <text> send a single prompt non-interactively
lens chat --dev output structured JSON (for SDK/tooling use)
lens chat --single run one message then exit, resumes latest session
lens chat --force-all auto-approve all tools including writes and shell
lens chat --dev --prompt <text> headless mode: JSON output, no UI
lens chat --runtime-tools <path> load extra tools from a JSON file at runtime
lens provider configure AI providers (interactive)
lens provider --list list configured providers
lens provider --provider <name> --model <model> --api-key <key> add/update a provider
lens provider --switch <name> switch the active provider
lens provider --remove <name> remove a provider
lens provider --dev output result as JSON
lens task <text> apply a natural language change to the codebase
lens commit generate a smart commit message from staged changes
lens commit --auto stage all and commit without confirmation
lens commit --push push to remote after committing
The following commands existed in a previous version of Lens and are being restored after a core rewrite. They are registered but not fully functional yet:
lens review AI review of the codebase (coming soon)
lens repo <url> analyze a remote repository (coming soon)
lens timeline explore commit history (coming soon)
lens run <cmd> run dev server, auto-fix errors (coming soon)
Once inside a lens chat session, use slash commands:
/auto toggle auto-approve for safe tools (read, search, fetch)
/auto --force-all auto-approve ALL tools including shell and writes ⚠️
/provider configure AI provider without leaving chat
/memory list list stored memories for this repo
/memory add <text> add a memory
/memory clear clear all memories for this repo
/clear history wipe session memory for this repo
Pass a JSON file to --runtime-tools to inject custom tools into any chat session without modifying Lens itself. Each tool declares a name, description, optional parameters, and an HTTP endpoint that Lens will POST to when the AI calls it.
[
{
"name": "get_weather",
"description": "Returns current weather for a city",
"parameters": {
"city": { "type": "string", "description": "City name" }
},
"endpoint": "http://localhost:4242/get_weather"
}
]
lens chat --runtime-tools ./my-tools.json --prompt "What's the weather in London?"
Lens POSTs the tool arguments as JSON to the endpoint and returns the response body to the model. Runtime tools are always auto-approved in headless mode.
Custom tools can also be built and registered using @ridit/lens-sdk.
MIT
FAQs
Understand your codebase.
We found that @ridit/lens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.