Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/tweakoz/orkid/orkcore-threadingnpx skills add tweakoz/orkid --skill orkcore-threadinggit clone --depth 1 https://github.com/tweakoz/orkidWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/tweakoz/orkid/orkcore-threading)<a href="https://agentmods.dev/skills/tweakoz/orkid/orkcore-threading"><img src="https://agentmods.dev/badge/skills/tweakoz/orkid/orkcore-threading.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00056 | $0.00873 |
| Opus 5 | $0.00028 | $0.00436 |
| Sonnet 5 | $0.00011 | $0.00175 |
| Haiku 4.5 | $0.00006 | $0.00087 |
Grade A, and why
orkcore-threading scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Orkid Core Threading & Concurrency Reference
When answering questions about threading or concurrency in orkid, consult the source files listed below. All paths are relative to the orkid repo root.
Key Files
| Component | Header | Implementation |
|---|---|---|
| Operation Queue (OPQ) | ork.core/inc/ork/kernel/opq.h |
ork.core/src/kernel/opq.cpp |
| Thread | ork.core/inc/ork/kernel/thread.h |
ork.core/src/kernel/thread.cpp |
| Mutex / LockedResource | ork.core/inc/ork/kernel/mutex.h |
(header-only) |
| Concurrent Queues | ork.core/inc/ork/kernel/concurrent_queue.h |
(header-only templates) |
| Ring Buffer (MPMC) | ork.core/inc/ork/kernel/ringbuffer.hpp |
(header-only template) |
| Thread Pool | ork.core/inc/ork/kernel/thread_pool.h |
ork.core/src/kernel/thread_pool.cpp |
| Future | ork.core/inc/ork/kernel/future.hpp |
ork.core/src/kernel/future.cpp |
| Task Graph | ork.core/inc/ork/kernel/taskgraph.h |
ork.core/src/kernel/taskgraph.cpp |
| Semaphore | ork.core/inc/ork/kernel/semaphore.h |
ork.core/src/kernel/semaphore.cpp |
| Atomic | ork.core/inc/ork/kernel/atomic.h |
(header-only wrapper) |
Architecture Overview
Operation Queue (OPQ) - Primary Concurrency Mechanism
OperationsQueue— dynamic thread pool with enqueue/drain/sync- Global queues:
opq::concurrentQueue(),opq::mainSerialQueue(),opq::updateSerialQueue(),opq::ioQueue() ConcurrencyGroup— subdivide OPQ with max-inflight limits;MakeSerial()for serial executionCompletionGroup— batch operations andjoin()to wait for all- Performance profiles:
LOW_LATENCY(5us),BALANCED(25us),IO(2500us)
LockedResource - Thread-Safe Data Wrapper
- RAII wrapper with
LockForRead(),LockForWrite(),UnLock() atomicOp(lambda)— execute lambda under lockatomicCopy(),atomicExchange()— convenience methods
Concurrent Queues
SPSCQueue<T,N>— lock-free single-producer single-consumer, fixed capacityMpMcBoundedQueue<T,N>— multi-producer multi-consumer viaMpMcRingBuf(Vyukov algorithm)- Both support blocking (
push/pop) and non-blocking (try_push/try_pop)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 63 lines · 56 tokens per session scan A be69f86d2aff
orkcore-threading is a skill published in the GitHub repository tweakoz/orkid (35 stars, last pushed 22d ago), licensed MIT. It adds 56 tokens to every session and 873 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.
Other skills, from other repositories
host-pattern
Use when adding a new domain to Nuclear's plugin system, or implementing a host. Covers the host pattern (how player functionality is exposed to plugins), the host interface and API class structure, how hosts are implemented in the player, error handling conventions, and what files to create and modify. Trigger…
creating-components
Use when creating new UI components in packages/ui. Covers component structure, tests, stories, and what to avoid.
writing-docs
Use when writing or editing documentation in packages/docs. Covers Gitbook markdown syntax, special blocks, page structure, and the SUMMARY.md table of contents. Trigger phrases include "write docs", "add documentation", "docs page", "gitbook", "user manual".
writing-plugins
Use when writing, scaffolding, or modifying Nuclear plugins. Covers plugin structure, manifest, entry point, provider types, available APIs, and publishing. Trigger phrases include "create a plugin", "write a plugin", "plugin scaffold", "streaming provider", "metadata provider".
analyzing-linux-elf-malware
Analyze malicious Linux ELF binaries — botnets, cryptominers, ransomware, and rootkits targeting Linux servers, containers, and cloud infrastructure — through static analysis, dynamic tracing, and reverse engineering of x8664 and ARM samples. Use when investigating Linux malware, triaging a suspicious ELF binary…
analyzing-linux-kernel-rootkits
Detect kernel-level rootkits in Linux memory dumps using Volatility3 linux plugins (checksyscall, lsmod, hiddenmodules), rkhunter system scanning, and /proc vs /sys discrepancy analysis to identify hooked syscalls, hidden kernel modules, and tampered system structures.