
ModLens Code Intelligence & AST Semantic Grepper
An advanced AST-powered code intelligence suite for DeepSeek Harness. Delivers lightning-fast symbol resolution, deep call graph tracing, static anti-pattern audits, and clean refactoring patches.
Code-Intelligence · AST · Refactoring · Tree-sitter
$ pnpm add @liustack/modlensArchitecture
Core Features
Tree-sitter Native Multilingual Engine: Millisecond AST parsing for TS, Go, Rust, Python, and Java
Symbol-Accurate Navigation: Eliminates false-positive matches from comments and log messages
Semantic Context Slicing: Extracts only target functions and direct signatures, slashing tokens by 80%
Syntax Integrity Verification: Automatically audits edited patches to prevent broken braces or lints
Core Workflow
AST Ingestion & Indexing
Parses multi-language source trees with Tree-sitter, building fast symbol indexes.
Symbol & Call Traversal
Resolves definitions and usages across modules, mapping bidirectional call chains.
Semantic Context Slicing
Prunes unrelated code, synthesizing a minimal context containing only relevant logic.
Structured Patch Generation
Outputs unified diffs and AST edits that preserve formatting and prevent syntax errors.
Configuration Parameters Reference (YAML / JSON)
| Parameter | Type | Default | Description |
|---|---|---|---|
| maxSliceTokens | number | 4096 | Maximum token cap for a single code slice |
| resolveExternalLibs | boolean | false | Traverse third-party vendor modules |
| enableLSP | boolean | true | Enable lightweight LSP for precise type resolution |
Recommended Plugins
DSH Context Full-Spectrum Context Visualizer & Multi-Agent Dashboard
dsh-context is an all-in-one context inspection and visualization suite for DeepSeek Harness. Featuring a standalone Context dashboard, browser, sidebar integration, and /context commands, it breaks down token footprints, tracks turn-by-turn evolution and pruning history, and aggregates multi-agent team session logs.
Open Design Component Synthesizer & Canvas Engine
A generative UI compilation engine translating developer prompts and wireframes into clean React components. Powered by Tailwind CSS, Figma AST parser, and automated design token validation.
Archify Software Topology & Architecture Visualizer
An automated architecture reverse-engineering engine transforming source code and schemas into clean Mermaid, PlantUML, and C4 model diagrams with drift detection.