poler
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
poler — Sovereign Ultra-Fast CLI Suite
Sovereign Ultra-Fast Filesystem Harvester, Parallel Grep, Zero-Copy Piece-Table Editor & AI-Agent MCP Engine.
poler is a unified, high-performance terminal utility and AI-agent interface written in pure Rust (2021 edition). It combines disk-crawling indexing, parallel text matching, memory-mapped zero-copy editing, and Model Context Protocol (MCP) tool exposure into a single ~7 MB self-contained binary.
🚀 Quick Install
1-Line Universal Installer (Linux & macOS)
curl -fsSL https://raw.githubusercontent.com/Kotokvit/poler-cli/main/install.sh | bashHomebrew (macOS & Linux)
brew install Kotokvit/tap/polerPrebuilt Binaries & Cargo
Prebuilt statically linked binaries for Linux (x86_64), macOS (Apple Silicon), and Windows are available on GitHub Releases.
cargo install poler-cliRelated MCP server: Better Finder MCP
⚡ Key Highlights
Zero-Copy Piece-Table Buffer ($O(1)$ RAM footprint): Instantly opens and edits files of arbitrary size (tested on 40 GiB files in milliseconds with < 100 KB metadata).
L1–L3 Address Crystal (
.t5a): Hardware-aligned 16-byte address anchors for instant subsequent searches in 2–20 ms without re-reading the filesystem.Parallel Grep: Native multi-threaded regex and literal scanner respecting
.gitignore, with context lines (-A,-B,-C) and pipe-safe ANSI color formatting.Archive & Document VFS: In-place inspection and surgical editing of
.docx,.epub,.odt,.pdf,.zip,.tar, and.tar.gz.$GF(3)$ Balanced Trit Syntax Protection: Protects code and documents from syntax and bracket balance corruption during automated AI-agent refactoring.
Built-in AI MCP Server (39 Tools): Ready out-of-the-box for AI coding environments (Claude Desktop, Cursor, Antigravity, VS Code, Zed) via
poler mcp.Multicall Compatibility: Direct drop-in replacement for
poler-harvestandpoler-edit-corevia symlinks or executable names.
⚔️ The Paradigm Shift: Why Ripgrep Chokes in AI-Agent Loops
«
ripgrepwas engineered in 2016 for a human developer staring at a terminal screen. In 2026, 80% of codebase searches are initiated by autonomous AI coding agents running in closed loops (Cursor, Claude Code, Antigravity). Forcing an AI agent to re-scan gigabytes of disk linearly on every prompt is thermodynamic and architectural insanity.»
When an AI agent issues 40 search queries during a 3-minute debugging loop, ripgrep re-scans the filesystem from scratch 40 times, re-parsing ASTs and re-reading NVMe storage.
poler eliminates linear scanning entirely: on the first pass, it projects codebase anchors into a persistent, hardware-aligned 16-byte Address Crystal (.t5a) backed by FastCDC and BLAKE3 cache invalidation. First run indexes; every subsequent query hits L1–L3 cache in 2–4 milliseconds.
⚡ Head-to-Head: Reproducible Benchmark
# Verify it yourself in 10 seconds:
hyperfine --warmup 2 \
'rg "pthread" /usr/include' \
'poler harvest /usr/include "pthread" address'Engine | Query Mode | Latency ( | Latency (Linux Kernel / Large Monorepo) | Output Token Overhead | Closed Edit Loop |
| Linear Scan (re-traversing FS on every run) | 150.3 ms | 242.8 ms | 100% (raw verbose text) | ❌ Find-only |
| L1–L3 Address Crystal ( | 6.7 ms (⚡ 22× faster) | 2.1 ms (⚡ 115× faster) | -95% (16-byte anchors) | ✅ Native Piece-Table |

👉 Read the full architectural whitepaper: BENCHMARKS.md
Run the head-to-head battle or the automated 5-level stress suite:
python3 benches/battle_rg.py /path/to/codebase
python3 benches/stress_5levels.py🛠️ CLI Subcommands
1. poler harvest — High-Speed Project & Disk Harvester
Extracts relevant snippets, full files, or exact 16-byte anchors across multiple directories:
# Markdown output with sections around matches
poler harvest /path/to/project "database connection" --format markdown
# JSONL stream of exact byte anchors for agents / editors
poler harvest /path/to/project "fn main" --format address
# Corpus mode (pure text stripped of headers for model ingestion)
poler harvest /path/to/docs "architecture" --format corpus -o corpus.txt2. poler grep — Parallel Project Grep
Fast parallel search respecting .gitignore:
# Literal search with 2 lines of context
poler grep "GrepConfig" src/ -C 2
# Case-insensitive regex search
poler grep "(pub\s+fn\s+\w+)" src/ --regex -i
# JSON output for machine parsing
poler grep "TODO" . --json3. poler view — Instant File & Document Viewer
Reads any file size without memory bloat, automatically extracting text from .docx, .epub, .pdf:
# View lines 1 to 50 of huge files or logs
poler view huge_server_log.txt --lines 1..50
# Read text from Word document directly in terminal
poler view specification.docx4. poler patch — In-Place Surgical Text Replacement & Dry-Run
Atomic zero-copy search-and-replace using Piece-Table across plain text, logs, and containers (.docx, .epub, .odt, .zip, .tar):
# Surgical atomic replacement in source file
poler patch src/config.rs "debug: false" "debug: true"
# Preview changes via Unified Diff without modifying disk (Dry-Run)
poler patch src/config.rs "debug: false" "debug: true" --dry-run
# Structured JSON output for AI agents (no stderr parsing needed)
poler patch src/config.rs "debug: false" "debug: true" --json
# Direct surgical patching inside archives and Office documents (.docx, .epub, .zip)
poler patch book.docx "Chapter 1" "Prologue"
poler patch archive.zip::nested/doc.txt "old_token" "new_token" --dry-runDifferentiated Exit Codes for AI Agents
Exit Code | Symbol | Meaning & Recommended Action |
|
| Replacement applied or dry-run unified diff generated successfully. |
|
| Archive rebuild error, I/O error, or binary data encountered. |
|
| Missing arguments or invalid command-line invocation syntax. |
|
|
|
|
| Needle occurs multiple times (lines reported) — expand context. |
|
|
|
5. poler edit — Headless JSON-RPC Editor Server
Starts the stdio JSON-RPC interface for editors, IDEs, and AI automation (supports both "cmd" and canonical JSON-RPC 2.0 "method" fields interchangeably):
# Inspect complete 71-command JSON schema
poler edit --schema
# One-shot command execution (supports both "cmd" and "method")
poler edit --exec '{"cmd":"stats","path":"Cargo.toml"}'
poler edit --exec '{"id":1,"method":"stats","path":"Cargo.toml"}'6. poler mcp — Model Context Protocol Server
Exposes 39 agentic tools over standard input/output:
poler mcp7. poler schema — Complete Self-Documenting Manifest
Outputs machine-readable documentation of all CLI subcommands and capabilities:
poler schema🔌 AI Agent Integration (MCP Configuration)
To configure poler in Claude Desktop (claude_desktop_config.json) or Cursor / Antigravity:
{
"mcpServers": {
"poler": {
"command": "poler",
"args": ["mcp"]
}
}
}This exposes poler_harvest, poler_grep, poler_read_span, poler_replace_match, poler_piece_diff, poler_apply_batch, poler_vfs_open, and 32 other surgical operations.
📦 Backward Compatibility (Multicall)
poler detects its invocation name. You can create symlinks:
ln -s ~/.local/bin/poler ~/.local/bin/poler-harvest
ln -s ~/.local/bin/poler ~/.local/bin/poler-edit-coreWhen run as
poler-harvest, it accepts the originalpoler-harvestCLI options.When run as
poler-edit-core, it accepts the original JSON-RPC stdio and--execoptions.
🔒 Agent API & Contract Freeze (v0.98.x → v1.0 Guarantee)
To provide rock-solid predictability for AI agents, LLM pipelines, and IDE integrations building on poler, the core contract is formally frozen and guaranteed backward-compatible until v1.0.0:
Process Exit Codes (0–5):
0(SUCCESS),1(GENERAL_ERROR),2(USAGE_ERROR),3(NOT_FOUND),4(AMBIGUOUS_MATCH),5(SYNTAX_BROKENwith atomic rollback).
Machine-Readable JSON Contract (
--json):Output structure (
ok,error_code,error,path,diff,bytes,dry_run) and semantic error codes (match_not_found,ambiguous_match,trit_syntax_broken,file_not_found,entry_not_found).
JSON-RPC Protocol Invariant (
poler edit):Dual-dispatch: canonical JSON-RPC 2.0
"method"and"cmd"are permanent interchangeable aliases.
Zero-Disk-IO Dry-Run Guarantee (
--dry-run,--diff):Files and container archives (
.zip,.docx,.epub,.odt,.tar) remain bit-for-bit identical on disk during dry-run executions.
🧪 Testing & Verification
All 185 Rust unit and integration tests, plus full live regression test suites, pass 100% cleanly:
# 1. Native Rust unit & integration test suite (184 unit + 1 integration)
cargo test
# 2. Live container CRC-32 & VFS integrity test suite (10/10)
python3 tests/test_patch_crc.py
# 3. Live ergonomics, dry-run, JSON & exit codes 0-5 test suite (15/15)
python3 tests/test_ergonomics.py💖 Sponsorship & Direct Donations
If poler saves you time, compute resources, and thousands of API context tokens:
USDT (TRC-20):
THLxXNLxxoYA5rgyinypexiaD3Nb9iXo7a
(TRON Network, verify on Tronscan)Binance Pay ID:
892674734(User: User-770b3 — zero-fee instant transfer worldwide)GitHub Sponsors: github.com/sponsors/Kotokvit
📬 Contact & Enterprise B2B Licensing
For commercial licensing (closed-source embedding, custom engine pipelines, high-throughput cluster indexing), consulting, or security inquiries:
Architect & Author: Vitalij Kotok (Kotokvit)
Email: vitalijkotok18@gmail.com
GitHub: https://github.com/Kotokvit
Phone: +380 93 798 1708
⚖️ Лицензия и условия использования / License
Проект распространяется под лицензией POLER Custom Source-Available & Modification Disclosure License Version 1.0 (см. полный текст LICENSE и практическое руководство TERMS.md).
🔍 Открытый исходный код (Source-Available): Полная свобода изучения, аудита безопасности, локальной компиляции, бенчмаркинга и персонального использования.
🛡️ Защита от закрытых форков (Anti-Silent-Forking): Включение ядра или модификаций в сторонние коммерческие продукты и платформы требует обязательного уведомления правообладателя (
vitalijkotok18@gmail.comили через Issue в репозитории) в течение 14 дней с момента первого релиза/деплоя.💎 Бесплатно для сообщества: Личное использование, независимые исследования и интеграции внутри открытых инструментов — абсолютно бесплатны. Роялти 5% действует исключительно при валовой выручке коммерческого продукта свыше $25 000 в квартал (с безопасной гаванью до $10 000).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
Your personal library, readable by AI agents: durable snapshots, hybrid search, 46 MCP tools.
An agent-first office suite Claude & ChatGPT read and write over one MCP URL.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Related MCP Servers
- AlicenseAqualityDmaintenanceA universal, local-first MCP hub that indexes personal files (documents, code, etc.) and provides private semantic search via hybrid dense+BM25 retrieval, enabling agents like Claude Desktop to query your data without sending it to the cloud.176MIT
- AlicenseNot gradedqualityDmaintenanceEnables intelligent file search with Git-like staging and indexing, offering semantic and hybrid search for documents, and integrates with Claude Desktop via MCP.5MIT
- AlicenseNot gradedqualityDmaintenanceCross-tool AI memory engine providing 25 MCP tools for semantic memory, session guard, trace auditing, and proactive IDE interception, all locally without API keys.6 npm3AGPL 3.0
- AlicenseAqualityBmaintenanceSemantic codebase search + persistent working memory for AI code editors. Local, zero-config, MCP. No API key.23104 PyPI2MIT