CodeByteLens for Openclaw

An open-source code intelligence tool that empowers AI agents to perform static code analysis, symbol indexing, and call graph analysis without a bulky LSP server.

lxr-666
v1.0.0
Jun 22, 2026
0
426
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install codebytelens

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install codebytelens using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is CodeByteLens?

CodeByteLens is a highly efficient code intelligence toolkit optimized for Openclaw Skills. Inspired by the architectural patterns of Claude Code LSPTool, it offers a 100% open-source, serverless alternative. Built using high-performance components like ripgrep for search, pyright for type check analysis, and AST parsing, it delivers lightning-fast repository diagnostics right from your workspace.

Unlike traditional configurations that demand a fully running LSP engine, CodeByteLens works entirely locally and out of the box. By providing local files, definitions, and code call graphs instantly to your development ecosystem, this tool facilitates streamlined interaction with your code base, making it ideal for fast-paced AI workflows and secure local setups.

CodeByteLens Use Cases

  • AI-Powered Code Exploration: Provides deep contextual mapping of codebases so agents running Openclaw Skills can locate functions, classes, and method signatures instantly.
  • LSP-Less Resource Management: Optimizes development in resource-constrained contexts like docker containers, VMs, or lightweight CI machines by bypassing heavyweight server requirements.
  • Local Code Auditing and Refactoring: Supports automated dependency-tracing and call graph visualization to make complex codebases safer to refactor.
  • Rapid Type Checking: Enables automated quality control pipelines with local type-safety scanning using pyright.

How CodeByteLens Works

  1. Query Initiation: The user or AI coding agent executes the local analysis script, specifying the desired mode (symbols, define, calls, or complexity) and the target source code path.
  2. Local Repository Grepping: For token mapping, ripgrep performs hyper-fast string and regex matches to identify declaration sites and usage instances across your files.
  3. Syntax Tree Parsing: CodeByteLens parses target files using local syntax analysis to extract defined symbols, structure definitions, and classes into a digestible layout.
  4. Type Inspection: Pyright works silently in the background to resolve types, identify typing mismatch alerts, and gather hover-equivalent data when requested.
  5. Call Graph Modeling: The system traces function invocations and import statements dynamically to assemble an actionable hierarchy representing program control flows.

CodeByteLens Setup

Follow these instructions to configure and integrate this skill into your ecosystem of Openclaw Skills.

Requirements

Verify python3 is available in your execution environment. You must also install the pyright utility to enable type check verification:

pip install pyright

Execution Commands

Execute the Python-based analytical interface using the scripts inside your skill folder:

# Structure a file's symbols and classes
python3 scripts/analyze.py symbols path/to/file.py

# Trace function and class declarations
python3 scripts/analyze.py define "ClassName.method" path/to/

# Generate functional call hierarchies
python3 scripts/analyze.py calls path/to/file.py

# Output code quality and complexity indicators
python3 scripts/analyze.py complexity path/to/file.py

CodeByteLens Data Schema & Taxonomy

The output parameters are structured neatly to allow rapid consumption by AI systems or CLI scripts. CodeByteLens outputs cleanly formatted structural data based on the executed operation.

Analysis Mode Input Context Returned Output Details
symbols Path to a target python file Complete outline containing variables, methods, functions, and locations.
define Target Token & Lookup path File path, absolute line numbers, and context lines where the class or method resides.
calls Target Python file Complete list showing structural import charts and cross-method invocations.
complexity Target Python file Quantitative metrics for readability, cyclomatic density, and nesting levels.

CodeByteLens Advanced Features

  • No LSP Required: Delivers complete IDE-level indexing capabilities without managing port configurations, background processes, or LSP protocol overhead.
  • Supercharged Code Searching: Harnesses ripgrep patterns to resolve symbol references globally in milliseconds.
  • AI Agent Context Feeding: Custom-built to feed context arrays into Openclaw Skills agents, letting models map class properties with minimal token consumption.
  • Dynamic Dependency Trees: Automatically diagrams call relationships, providing a safe framework for structural analysis and refactoring workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*