Repository navigation
Releases
Releases · aklkbqx/serena-go
serena-go v0.2.1
What's New in v0.2.1
- Zero-Touch On-Demand Embedding Auto-Start (
auto_start_cmd): Automatically starts a configured local or remote embedding server on the firstsemantic_code_searchwhen offline (60s retry cooldown, HTTP/healthreadiness probe, up to 4.5s fast cold-start wait with immediate exit if helper declines, zero zombie processes, and instant local BM25 fallback). - Activity Touch for Idle VRAM Unload (
activity_file): Touches a configured timestamp file on every embedding call so external idle watchdogs can automatically unload GPU VRAM after inactivity. - Automatic Background 100% Corpus Indexing (
auto_index_bg): Whenever a repository has<100%vector coverage while the embedding endpoint is online, spawns a singleflight-locked (flock) detached background worker (serena-go index --embed --bg-auto) using gentle concurrency (2 workers x batch=16) so subsequent queries get 100% vector recall automatically. - Non-Intrusive
doctor:serena-go doctorprobes readiness passively without triggeringauto_start_cmd, reporting standby status cleanly. grammar_subsetTest Verification:scripts/check-oss-hygiene.shnow executesgo vetandgo test -racedirectly against the 26-languagegrammar_subsetbuild tags.
serena-go v0.2.0
Changelog
All notable changes to serena-go are documented in this file.
[0.2.0] - 2026-11-27
Added
- V2 Pure-Go Shared
mmapBinary Index (.sidx): Read-onlysyscall.Mmapshared across concurrent MCP sessions (0 duplicated RSS), precomputed inverted posting list (<6 msBM25),<1 ms100%-recall symbol table lookup, deterministic ordering, and full-dimension SQ8 (int8) vector matrix (100% Recall@5,~2 msfull-corpus scan). - 100% Corpus GPU Indexing (
serena-go index --embed): 4-worker parallelbatch=32embedder withencoding_format: "base64"(~300 chunks/s), model-aware prompt prefixes (nomic,qwen3,e5), and automatic vector cache invalidation on model/dimension switches. - Multilingual & Thai Tokenizer: Preserves
unicode.Mncombining marks, generates 3–4 grapheme Thai n-grams, adds lightweight English stemming, test-file dampener (0.55×), and parent/child span deduplication. - Privacy & Completeness Guardrails: Refuses to crawl/embed
$HOME,/,/tmp,/var,/etc,/Volumes; honors.gitignoreviarg --files; reports skipped/capped counts transparently. - Upgraded
code_context_pack: Supports batchsymbols: [...]with deduplicated types/diagnostics, parallel stage execution,tsconfig.jsonpath aliases (@/*,@app/*), Go intra-repo imports, same-file definitions, compactstruct/interfacebodies (up to 15 lines), outgoing local callees, production-first callers, and warm LSP hover. changed_symbolsMCP Tool: Mapsgit diff/staged hunks to affected AST symbols, callers, and live diagnostics in 1 call.- Cross-Client
serena-go hookCLI: Zero-jq<6 mspost-edit(including Codexapply_patch),session-brief, andremindhooks for Claude Code, Antigravity, Codex, and Grok. - Token Economy & Build Size:
--profile slim(15 high-leverage tools), MCP toolannotations(readOnlyHint,destructiveHint,idempotentHint), tiered disclosure insemantic_code_search(~45% fewer output tokens), compactget_symbols_overview, and curatedgrammar_subsetbuild tags shrinking the static binary from33 MBto19 MB(-42%).
Fixed
- Safety & UTF-8: Eliminated mid-character UTF-8 byte slicing (
truncateUTF8), removed fuzzy-substring fallback from mutating symbol tools (replace/insert/delete/rename), added per-file write mutex for concurrent edits, and added exact UTF-16↔UTF-8 LSP offset conversion +positionEncodingsnegotiation. - AST & Search Accuracy: Fixed
find_symbol(..., substring_matching=true)case-insensitive ripgrep (-i) and non-empty miss output; fixed Go generic[K, V]receivers, Govar_spec/struct fields/interface methods/singleconst/varspans, TSabstract/namespace/enum, Python@decoratorsignatures & top-level constants, Rustimpl<T>& trait methods, and Swiftstruct/enumclassification. - Speed:
check-filenow uses Go stdlibgo/parser(<1 ms) and skips redundant TS tree-sitter parsing whenoxlintruns (~50 ms); LSPsyncFilededuplicates unchanged writes via SHA-256 and invalidates stale diagnostics on edits; remote SSH preflight cached 5 min with 20-min remote idle TTL. - OSS Hygiene: Removed stray personal hardware string from
semantic_code_searchschema description, pruned dead schema params, and madeMakefile installsymlink-safe.
[0.1.0] - 2026-11-27
Added
- Initial Pure-Go (
CGO_ENABLED=0) 3-Tier Code-Intelligence MCP Server compatible with Serena MCP tools and.serena/memories/.
serena-go v0.1.0
Changelog
All notable changes to serena-go are documented in this file.
[0.1.0] - 2026-11-27
Added
- Pure-Go (
CGO_ENABLED=0) 3-Tier Code-Intelligence MCP Server compatible with Serena MCP tools and.serena/memories/. - Tier 0: Zero-RAM native Go memory CRUD,
rgpattern search, and atomic file replacement. - Tier 1: Stateless
gotreesitterAST symbol overview, symbol lookup, surgical body replacement, relative insertion, 1-shotcode_context_pack, andcheck-filefast diagnostics (oxlint+ty+ warm-only LSP). - Tier 1+ Hybrid Semantic Search: Incremental AST-chunked BM25 with code-aware tokenization + optional OpenAI-compatible
/v1/embeddingsGPU Vector Reciprocal Rank Fusion (RRF) with automatic sub-batching. - Tier 2: Shared per-
(repo, lang)lazy Unix-socket LSP supervisor (vtsls,gopls,rust-analyzer,ty,sourcekit-lsp,clangd) with OS memory-pressure LRU governance (macOSmemorystatus& Linux/proc/meminfo). - Opt-In Remote SSH LSP Offload: Fast TCP probe, POSIX single-quoted SSH invocation, bidirectional local/remote URI translation, and live local buffer synchronization.
- CLI Utilities:
doctor,status,stop-lsp,check-file,version, and JSON configuration (~/.config/serena-go/config.json).