iii-engine-config
Skill này làm gì
Giải thích cách cấu hình engine iii, qua một tệp dự án được quản lý hoặc một tệp cấu hình chạy trực tiếp. Dành cho lập trình viên tự chạy engine iii và cần thiết lập đúng cổng và tùy chọn.
Khi nào nên dùng
- ✓Khi bạn cần đổi cổng hoặc địa chỉ lắng nghe của engine.
- ✓Khi bạn muốn thiết lập quy tắc truy cập hoặc cài đặt luồng cho engine.
- ✓Khi bạn chưa chắc nên dùng chế độ cấu hình được quản lý hay chế độ trực tiếp.
Liên kết skill
https://github.com/iii-hq/iii/blob/main/skills/iii-engine-config/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
“Thiết lập engine iii của tôi ở cổng 49134 với một kho cấu hình và một listener luồng ở cổng 3112.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill giải thích hai chế độ cấu hình và cảnh báo không nên trộn lẫn. Ở chế độ được quản lý, các thiết lập engine nằm trong một phần của tệp dự án, và Compose phải được khởi động lại sau khi phần đó thay đổi.
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.
Engine Config
iii has two engine configuration modes. Do not mix them.
Managed Compose engine
The presence of engine: means that Compose owns the engine process. Engine worker values are
direct mappings; there is no nested config: field.
namespace: orders
engine:
url: ws://127.0.0.1:49134
registration_namespace_grace_ms: 5000
workers:
configuration:
adapter:
name: fs
config:
directory: ./config
iii-worker-manager:
host: 127.0.0.1
port: 49134
iii-http-functions: {}
iii-stream:
host: 127.0.0.1
port: 3112
iii-sandbox:
auto_install: true
containers: {}
Start it with:
iii compose --namespace orders-daemon --up --file worker-compose.yaml
engine.url defaults to ws://127.0.0.1:49134 and uses Compose's ${VAR:-default} expansion.
engine.workers stays opaque until the engine reads the generated YAML, so its values use
${VAR:default} and retain numeric types. Compose materializes an owner-only config under
<project-dir>/.iii/compose/<daemon-namespace>/ and removes it after clean shutdown. With
III_COMPOSE_STATE_DIR, it uses <state-root>/<project-slug>/<daemon-namespace>/. Changing engine:
requires restarting Compose. Do not combine a managed file with explicit --engine.
Allowed engine worker base names are:
configurationiii-worker-manageriii-http-functionsiii-streamiii-sandbox
Use #instance for another instance of an allowed worker. iii-engine-functions,
iii-telemetry, and iii-observability are injected automatically and must not be declared.
HTTP, cron, queue, state, pubsub, bridge, application, and custom workers belong under
containers:. Add registry packages with:
iii trigger -n orders-daemon compose::add worker=state
Observers
Since 0.25 the engine reads an optional top-level observers: section (iii-observe explains the
model). Every key is optional; these are the defaults:
observers:
local_dispatch: true # let SDKs run a worker's own functions in-process
max_per_connection: 1024 # observers one connection may own (LIMIT_EXCEEDED)
max_per_function: 4096 # observers one function may have (LIMIT_EXCEEDED)
max_observe_depth: 8 # deeper activations are dropped (LOOP_GUARD)
observer_grace_ms: 30000 # suspended observers of a disconnected worker wait this long
disposed_retention_ms: 3600000 # a worker back after the grace period is told they were disposed
owner_ack_timeout_ms: 30000 # an unacknowledged add fails with OWNER_TIMEOUT
activation_timeout_ms: 30000 # an unanswered activation frees its slot and counts as TIMEOUT
default_max_in_flight: 64 # max_in_flight of an observer that sets none
max_queue_per_observer: 1024 # queued activations beyond max_in_flight (then OVERFLOW)
- In
config.yamlit sits next toworkers:. In a managed Compose file it goes underengine.observersand is passed through as written. - Unknown keys and zero counts or depth are rejected at load; zero timeouts only warn. Changes need an engine restart.
observers.local_dispatch: falseturns off in-process calls for every worker.- Inspect live observers with
engine::observers::list({ function_id?, namespace?, worker? })andengine::observers::get({ id })(results are filtered to functions the caller may invoke).engine::observers::dispose({ id })is allowed for the observing worker and unrestricted callers. - Metrics:
iii.observer.activations.total{function_id,delivery},iii.observer.dropped.total{function_id,reason},iii.observers{state},iii.observer.reports.total{function_id},iii.observer.activation.failures.total{function_id,reason}; locally dispatched calls are counted iniii.invocations.totalwithdispatch="local".
RBAC with rbac-proxy
Keep the engine port internal and put the rbac-proxy worker in front of it when
untrusted workers, browsers, or agents need to connect:
iii trigger -n orders-daemon compose::add worker=rbac-proxy
rbac-proxy opens its own WebSocket port, speaks the worker protocol verbatim, and at the boundary
authenticates each connection (rbac.auth_function_id), gates every invocation and trigger binding
(rbac.expose_functions, plus allowed_functions / forbidden_functions from the auth result),
namespaces a session's registrations (`function_registration_pref
Câu hỏi thường gặp
Tôi có thể trộn hai chế độ cấu hình không?
Không. Skill cảnh báo điều này, vì mỗi chế độ quản lý thiết lập engine theo cách riêng.
Cổng engine mặc định là gì?
Cổng engine mặc định là 49134.
Tôi có cần khởi động lại sau khi thay đổi không?
Có. Thay đổi phần engine ở chế độ được quản lý yêu cầu khởi động lại Compose.
Chi tiết
Mô tả gốc của tác giả
Configure a managed iii engine through worker-compose.yaml or a directly supervised engine through config.yaml. Use for engine ports, RBAC via the rbac-proxy worker, observer limits, streams, sandboxes, and configuration storage.
repo: iii-hq/iii
Độ phổ biến
- Sao GitHub
- 19k
- Vị trí xếp hạng
- #10493
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
iii-sandbox
19kGiúp agent của bạn chạy mã không đáng tin hoặc do AI tạo ra một cách an toàn trong một máy ảo cô lập tạm thời, rồi hủy khi xong việc.
configuration
19kCho phép agent của bạn thiết lập một registry chung gồm các giá trị cấu hình được đặt tên, kiểm tra theo schema, để các worker có thể đọc và phản ứng với thay đổi.
iii
19kDạy agent của bạn cách các worker iii hoạt động, để nó có thể thêm một khả năng bằng cách kiểm tra trước những gì đã có, rồi xây một worker.
iii-observability
19kGiúp agent của bạn thêm tracing, log có cấu trúc, metric và cảnh báo vào engine iii, dùng OpenTelemetry để bạn thấy hệ thống đang làm gì.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.