lowfat

Из публичных источников

lowfat — сокращайте вывод команд. Убирает лишний шум, экономит токены.

Машинный перевод · Показать оригинал

lowfat - slim your command output. strips noise, saves tokens.

AI-инструментКатегория: AI-инструментыOpen sourceданные проверены 16 окт. 2026 г.

Обзор

  • agentic-coding-tool
  • cli
  • cost-reduction
  • developer-tools
  • llm
  • open-source
  • rust
  • shell-script
  • token-optimization
  • token-saving
  • token-savings

Установка

Команды только показываются, маркетплейс их не выполняет. Сверяйтесь с официальной документацией.
  • Файлы официального релизаИз публичных источниковиз последнего официального релиза
    github.com/zdk/lowfat/releases/tag/v0.9.0 ↗
  • Сборка из исходниковИз публичных источниковиз метаданных каталога

    Сборка из исходников: проверенного рецепта сборки нет — следуйте инструкциям репозитория.

    github.com/zdk/lowfat ↗

Совместимость

«Неизвестно» значит, что доказательств не найдено, а не что продукт несовместим.
ПлатформаСтатусАрхитектураДоказательствоУверенность
WindowsНеизвестно———
macOSСовместимоx86_64официальная сборка в релизе v0.9.0: lowfat-x86_64-apple-darwin.tar.gz0.70
Совместимоarm64официальная сборка в релизе v0.9.0: lowfat-aarch64-apple-darwin.tar.gz0.70
LinuxСовместимоarm64официальная сборка в релизе v0.9.0: lowfat-aarch64-unknown-linux-gnu.tar.gz0.70
Совместимоx86_64официальная сборка в релизе v0.9.0: lowfat-x86_64-unknown-linux-gnu.tar.gz0.70
Web browserНеизвестно———
Server / self-hostedНеизвестно———
Container (OCI)Неизвестно———

Релизы

проверено 30 окт. 2026 г.
v0.9.0Последний9 окт. 2026 г.Официальный источник ↗

Файлы версии 0.9.0

Маркетплейс не хранит эти файлы: загрузка идёт из официального источника. Мы их не сканировали.
ФайлПлатформаРазмерSHA-256Скачать из официального источника
lowfat-aarch64-apple-darwin.tar.gzmacos · arm64 · tarball2,4 MB96d5d6a7abca…Официальный источник ↗
lowfat-aarch64-unknown-linux-gnu.tar.gzlinux · arm64 · tarball2,6 MB44d259b76705…Официальный источник ↗
lowfat-x86_64-apple-darwin.tar.gzmacos · x86_64 · tarball2,5 MB61c7d37326b4…Официальный источник ↗
lowfat-x86_64-unknown-linux-gnu.tar.gzlinux · x86_64 · tarball2,7 MBb5a80de9a7b7…Официальный источник ↗

История релизов

Профиль качества

алгоритм quality-v1.0 · оценено 16 окт. 2026 г.
Оценка качества89
Оценка риска0
Уверенность 1.00
Оценка качества и оценка риска — разные показатели. Высокое качество не гарантирует безопасность.

Составляющие оценки

Поддержка · 2020
last activity 7 days ago
Документация · 1515
README 10799 chars, description present
Готовность к использованию · 1515
install instructions: yes; releases: yes
Метаданные · 108
3/4 of description, homepage, license, topics
Релизы · 1010
10 release(s), latest 7 days ago
Точность категории · 105
classifier confidence 0.5
Популярность · 107
578 stars (log-dampened, 10k = max)
Ясность лицензии · 55
SPDX Apache-2.0
Сообщество · 55
issues enabled, 17 forks

Лицензия

Apache-2.0
Лицензия известнапо данным хостинга репозитория

Это статус политики каталога, а не юридическое заключение.

Источники

github.com/zdk/lowfatОсновной★ 578 звёздактивность 9 окт. 2026 г.Основной репозиторий · Уверенность 1.00

Отзывы

Войдите, чтобы написать отзыв

Отзывов пока нет.

Альтернативы

oh-my-piПохожий
⌥ Агент для программирования с встроенной IDE. Разработан Stencil Labs.MIT · AI-инструменты
opensrcПохожий
Получение исходного кода npm-пакетов для предоставления AI-агентам для программирования более глубокого контекстаApache-2.0 · AI-инструменты
zeroПохожий
Агент для программирования, который подчиняется вам: ваша модель, ваша машина, ваши правила.MIT · AI-инструменты
critПохожий
Просмотр планов, диффов и запущенных приложений AI-агентов для программирования в браузере. Работает локально, совместим с любым агентом.MIT · AI-инструменты
patentПохожий
Поиск предшествующих разработок для ваших идей в коде — не выпускал ли кто-то уже такой инструмент разработчика?Apache-2.0 · AI-инструменты
LAPПохожий
Ваши агенты угадывают API. Дайте им настоящую спецификацию Agent-Native. Более 1500 готовых к использованию навыков для API. Компилируйте любую спецификацию API в компактный формат, нативный для агентов. В 10 раз меньше. OpenAPI, GraphQL, AsyncAPI, Protobuf, Postman.Apache-2.0 · AI-инструменты

README

Из zdk/lowfat · лицензия Apache-2.0 · загружено 30 окт. 2026 г.

lowfat is a lightweight CLI tool that reduces AI token costs by filtering CLI output and file content before it reaches your agent.

Core focus

  • Lightweight — Small core single binary, extensible via plugins.
  • Local-first — No telemetry; you should own your data.
  • Composable — UNIX-style pipes, mix built-ins and your own custom filters.
  • User-owned — lowfat history shows what you ran most and use it as token saving tuning per your usecase.

Before / after

git status at the full level — same signal, less noise.

Before — raw git status:

On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   crates/lowfat-cli/src/commands/plugin.rs
	modified:   crates/lowfat-cli/src/main.rs

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	plugins/git/git-compact/samples/

no changes added to commit (use "git add" and/or "git commit -a")

After — lowfat git status:

On branch main
Changes not staged for commit:
	modified:   crates/lowfat-cli/src/commands/plugin.rs
	modified:   crates/lowfat-cli/src/main.rs
Untracked files:
	plugins/git/git-compact/samples/

Reduction of raw command output, measured on the bundled samples (crates/lowfat-plugin/embedded/*/samples/). Reproduce with cat <sample> | lowfat filter <plugin>/filter.lf --sub=<sub> --level=<level>:

commandlitefullultra
git diff-16%-38%-96%
git log-53%-80%-91%
git status-62%-62%-74%
docker ps-38%-38%-85%
docker images-48%-58%-86%
ls -la-2%-75%-87%

These percentages are the reduction of a single command's output, not your end-to-end agent token usage. savings depend on how much of your context is command output and how lossy a level you pick — higher levels drop more, so verify your agent still has what it needs. treat the table as a ceiling on the output slice, not a promise on the total.

Install

cargo install lowfat
# or
brew install zdk/tools/lowfat

Pre-built binaries on GitHub Releases.

Setup

Pick one of:

Claude Code hook — add to .claude/settings.json:

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [{ "type": "command", "command": "lowfat hook" }]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Read",
        "hooks": [{ "type": "command", "command": "lowfat post-read" }]
      }
    ]
  }
}

PreToolUse rewrites Bash commands through lowfat filters. PostToolUse compresses file content after Read — strips comments, collapses function bodies, summarizes lock files.

The filtering pattern Anthropic recommends, but via lowfat.

Shell integration — auto-activates inside agent environments (CLAUDECODE=1, CODEX_ENV), or set LOWFAT_ENABLE=1 to force it on any shell:

echo 'eval "$(lowfat shell-init zsh)"' >> ~/.zshrc   # or ~/.bashrc

OpenCode plugin — one command, no config editing:

lowfat opencode install   # v1.x → plugins/lowfat.ts, v2.x → plugins/lowfat-v2/index.js

Installs the plugin matching your OpenCode version (detected via opencode --version); the v2 variant is required because 2.0.x changed the plugin API and the v1 shape loads but silently does nothing there. Restart OpenCode; commands are rewritten transparently before they run. Uninstall with lowfat opencode uninstall (removes whichever variant(s) are present).

Direct usage — prefix any command:

lowfat git status
lowfat docker ps
lowfat ls -la

Pi agent — in ~/.pi/agent/settings.json:

{ "shellCommandPrefix": "eval \"$(lowfat shell-init zsh)\"; " }

Usage highlights

# See what's configured and how loud each filter is being
lowfat info                       # status badge + active filters
lowfat info git                   # pipeline for `git`
lowfat info --config              # full resolved config

# See what lowfat has saved you
lowfat stats                      # lifetime token savings
lowfat stats --audit              # recent plugin executions
lowfat history                    # rank commands by potential savings

# Dial the aggressiveness
lowfat level ultra                # max compression
LOWFAT_LEVEL=lite lowfat git log  # one-off override

# Write a plugin
lowfat plugin new terraform       # scaffold ~/.lowfat/plugins/terraform/
lowfat plugin doctor              # check plugins (and pre-install any Python deps)

# Test a plugin against a sample without installing it
cat samples/git-diff-full.txt | lowfat filter --explain ./filter.lf --sub=diff --level=ultra

File content compression (post-read)

When Claude reads files, lowfat post-read compresses the content before it enters the context:

Content typeWhat it does
Source code (Rust, Python, Go, Elixir, JS/TS, Java, Ruby, C/C++, Shell)Strip comments, normalize blanks; at ultra: collapse function bodies to signatures
MarkdownStrip badges, HTML comments; truncate code blocks and tables
HTML / Vue / SvelteStrip <style>, <script>, class attributes; at ultra: text extraction only
JSON / JSONCTruncate large arrays, collapse deep nesting
Lock files (Cargo.lock, package-lock.json, yarn.lock, ...)Replace with summary: package count + top deps
UnknownHead + tail with line count

Compression level follows LOWFAT_LEVEL (lite/full/ultra). Files with <10% savings pass through unchanged.

Learn more

  • docs/ARCHITECTURE.md — high-level diagram: CLI, Runner, Plugins, Builtins
  • docs/CONFIG.md — .lowfat file, env vars, pipeline DSL, built-in processors, the history ranking
  • docs/PLUGINS.md — lf-filter (the .lf plugin DSL), named rules, the JSON output guarantee, shell escape hatches, PEP 723 + uv, AI agent prompt

Alternatives

vs rtk

rtk is the closest tool but differ in philosophy: rtk is batteries-included; lowfat is a minimal core you extend yourself.

lowfatrtk
Built-in commands6 curated (git, docker, grep, find, ls, tree)100+ across many ecosystems
Custom filters.lf DSL + shell + Python (PEP 723/uv)TOML DSL
Levelslite / full / ultra-l aggressive, --ultra-compact
File-content filteringpost-read hook (code, markdown, HTML, data, lock files)rtk read / smart (signatures, summaries)
Agent integrationsClaude Code, OpenCode, shell, Pi14 tools (Claude Code, Copilot, Gemini, Codex, …)
TelemetryNone — local-onlyOpt-in, off by default (anonymous aggregate)
Savings analyticslowfat stats / history (local)rtk gain / discover (local)

Token savings, head-to-head

Same commands, same repo, same cwd, run through both tools. Output tokens counted with tiktoken (cl100k_base); savings are vs the raw command output:

commandraw tokenslowfat fulllowfat ultrartk
git status81-91%-91%-79%
git diff1241-15%-97%-9%
git log3350-93%-97%-56%
ls -la153-77%-89%-86%
find535-0%-58%-66%

Honest read: lowfat compresses git harder; rtk edges out find; ls is close. find only engages at lowfat's ultra level. rtk's --ultra-compact gave near-identical numbers to its default here, so the default is shown. This is a single small run on one repo — directional, not a benchmark; measure on your own workload before trusting any of it.

License

Apache-2.0

AI notice

Multiple AI tools were used for this project

Star History

Открыть репозиторий ↗