Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

oktk

bởi satnamra

DevOps & Cloud
800Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

LLM Token Optimizer - Reduce AI API costs by 60-90%.

Mô tả

Kỹ năng này làm gì

oktk sits between CLI command execution and the LLM context window, compressing verbose outputs from tools like git, docker, and kubectl into compact summaries. It intercepts command output, applies command-specific filters, and returns only the information the model needs. An AI learning mode handles commands that lack built-in filter rules.

Manually truncating CLI output before sending it to an LLM requires extra effort; oktk applies command-specific compression rules automatically, with a fallback to raw output if a filter fails.

Khi nào nên dùng

  • Cutting API costs when repeatedly checking git status during a coding session
  • Reviewing Docker container logs with an AI without flooding its context window
  • Getting kubectl pod status summaries during cluster troubleshooting
  • Running npm tests through an AI assistant without sending the full output
  • Filtering curl responses to status codes and key headers during API debugging

Quy trình ví dụ

ĐẦU VÀO

User asks: What's the current state of my git repo?

AGENT
  1. 1

    Runs git status in the project directory

  2. 2

    Pipes output through the oktk git status filter

  3. 3

    oktk extracts branch name, ahead/behind count, and file change counts

  4. 4

    Returns an 80-token compressed summary instead of the 800-token raw output

ĐẦU RA

📍 main ↑ Ahead 3 commits ✏️ Modified: 6 ❓ Untracked: 3

Cài đặt

clawhub install satnamra/oktk

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết