cli-contexts
Skill này làm gì
Skill này chỉ cách quản lý cài đặt ngữ cảnh cho hội thoại AI bằng dòng lệnh. Skill dành cho lập trình viên muốn điều chỉnh lượng ngữ cảnh mà model nhận được và cách các phiên được giữ lại.
Khi nào nên dùng
- ✓Khi người dùng muốn thay đổi lượng ngữ cảnh mà một hội thoại AI giữ lại.
- ✓Khi người dùng muốn kiểm tra những pipeline ngữ cảnh nào đang hoạt động.
- ✓Khi người dùng muốn xem số liệu phân tích về kỹ thuật ngữ cảnh.
Liên kết skill
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-contexts/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Cho tôi xem các cài đặt ngữ cảnh đang hoạt động và chúng cắt bớt hội thoại nhiều đến đâu.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill liệt kê các lệnh để xem và đặt tùy chọn ngữ cảnh, chẳng hạn ngân sách token và tỷ lệ dự trữ, quản lý bộ lọc, và xem số liệu phân tích trong khoảng thời gian đã chọn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Overview
Manage context engineering configurations, RTK filter sets, and conversation sessions from the CLI. Apply context-relay settings and inspect active context pipelines.
Quick install
npm install -g omniroute # or: npx omniroute
omniroute --version
Subcommands
context-eng
Example:
omniroute context-eng
context-eng analytics
Flags:
--period <p>
Example:
omniroute context-eng analytics
context-eng caveman
Example:
omniroute context-eng caveman
context-eng config
Example:
omniroute context-eng config
context-eng show
Example:
omniroute context-eng show
context-eng set
Flags:
--aggressiveness <n>--max-shrink-pct <n>--preserve-tags <list>
Example:
omniroute context-eng set
context-eng rtk
Example:
omniroute context-eng rtk
context-eng config
Example:
omniroute context-eng config
context-eng show
Example:
omniroute context-eng show
context-eng set
Flags:
--token-budget <n>--reserve-pct <n>
Example:
omniroute context-eng set
context-eng filters
Example:
omniroute context-eng filters
context-eng list
Example:
omniroute context-eng list
context-eng add
Flags:
--pattern <p>--priority <n>--action <a>
Example:
omniroute context-eng add
context-eng remove <id>
Flags:
--yes
Example:
omniroute context-eng remove <id>
context-eng test
Flags:
--file <path>
Example:
omniroute context-eng test
context-eng raw-output <id>
Example:
omniroute context-eng raw-output <id>
context-eng combos
Example:
omniroute context-eng combos
context-eng list
Example:
omniroute context-eng list
context-eng get <id>
Example:
omniroute context-eng get <id>
context-eng assignments <id>
Example:
omniroute context-eng assignments <id>
contexts
Example:
omniroute contexts
contexts list
List all contexts
Example:
omniroute contexts list
contexts add <name>
Add a new context
Flags:
--url <u>--api-key <k>--api-key-stdin--access-token <t>--access-token-stdin--scope <s>--description <d>
Example:
omniroute contexts add <name>
contexts use <name>
Switch active context
Example:
omniroute contexts use <name>
contexts current
Show the active context (server, auth, scope)
Flags:
--name-only
Example:
omniroute contexts current
contexts show <name>
Show context details
Example:
omniroute contexts show <name>
contexts remove <name>
Remove a context
Flags:
--yes
Example:
omniroute contexts remove <name>
contexts rename <old> <new>
Rename a context
Example:
omniroute contexts rename <old> <new>
contexts export
Export contexts to JSON
Flags:
--out <path>--no-secrets--include-secrets
Example:
omniroute contexts export
contexts import <file>
Import contexts from a JSON file
Flags:
--merge
Example:
omniroute contexts import <file>
contexts migrate
Move legacy plaintext context credentials to the OS keychain
Flags:
--yes
Example:
omniroute contexts migrate
sessions
Example:
omniroute sessions
sessions list
Flags:
--user <u>--kind <k>--active--limit <n>
Example:
omniroute sessions list
sessions show <sessionId>
Example:
omniroute sessions show <sessionId>
sessions expire <sessionId>
Flags:
--yes
Example:
omniroute sessions expire <sessionId>
sessions expire-all
Flags:
--user <u>--yes
Example:
omniroute sessions expire-all
sessions current
Example:
omniroute sessions current
Câu hỏi thường gặp
Ngân sách token là gì?
Đó là giới hạn số token ngữ cảnh mà thiết lập cho phép, và lệnh set có thể thay đổi giới hạn này.
Tôi có xem được số liệu phân tích không?
Có. Lệnh analytics nhận tùy chọn period.
Tôi có thể xem cài đặt mà không thay đổi chúng không?
Có. Lệnh show và config hiển thị các cài đặt hiện tại.
Chi tiết
Mô tả gốc của tác giả
Manage context engineering configurations, RTK filter sets, and conversation sessions from the CLI. Apply context-relay settings and inspect active context pipelines.
Độ phổ biến
- Sao GitHub
- 84k
- Vị trí xếp hạng
- #1401
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
cli-a2a
84kChạy công cụ dòng lệnh OmniRoute cho các tác vụ giữa các agent, giúp bạn gửi công việc, xem lịch sử tác vụ và kiểm thử skill.
cli-backup-sync
84kChạy sao lưu dữ liệu OmniRoute từ dòng lệnh, gồm bản chụp, đồng bộ đám mây, lịch sao lưu và khôi phục từ file lưu trữ.
cli-batches
84kGửi các tác vụ AI hàng loạt từ dòng lệnh, theo dõi tiến độ và lưu kết quả hoặc lỗi, kể cả cho các pipeline CI.
cli-chat
84kGửi yêu cầu trò chuyện đến các model AI từ dòng lệnh, với câu trả lời theo luồng, system prompt và phiên tương tác.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.