I made a claude code plugin for seshka, so communication now works both ways. When you close a session, all leftover processes, dev servers etc. get nuked instantly.
Published my first JetBrains plugin: K8s ConfigMap Navigator.
Click a ConfigMap key and jump to the code that reads it, even when Spring turns MY_APP_TIMEOUT into https://t.co/MAqQqlWRBw.timeout.
Spring, Quarkus, Node, Python, Go and more.
https://t.co/9g6rENb1DQ
#k8s
baro for Hermes.
Give Hermes a big coding job, baro splits it into parts and runs agents on them, three at a time. You watch the board. You get a pull request.
Built for the Hermes Agent Plugin Hackathon, @NousResearch
Our second @mozaik_runtime hackathon is a wrap! 🚀
Huge thanks to everyone who built multi-agent systems with us. Your creativity and determination were incredible!
Judges have 7 days to review projects and announce the winners. Tough choices ahead!
https://t.co/ZoWdx6iEbC
Next showcase from the latest JigJoy hack - BringUp: vibecoding for PCB hardware
You describe what kind of device you want, and a Mozaik multi-agent system designs the board, the case and the firmware, ready to order and 3D-print. Change your mind, and all three update together.
ok let's start showing the projects from the first hackathon in free Serbia
grout - a software factory with concurrent agents
no, they, can't make a conflict or a collision, because they are built on mozaik
OpsRoom, my solo Build with @mozaik_runtime project: a multi-agent war room, agents investigating in parallel, humans approving every action. JigJoy thanked me with 12 months of https://t.co/QVXHkDsj87 Plus.
Next hackathon Oct 30-31, free. Apply: https://t.co/TOUN2STmqO
Day 4/30 Inference Engineering
Thread Indexing In CUDA
A CUDA kernel runs for every thread and executes the same kernel code. Now we can read each thread's ID using threadIdx.x variable (which is a built-in variable in CUDA). But the problem is that when we launch a kernel with multiple blocks, the thread index isn't unique anymore.
Let's see an example:
kernel<<<numBlocks, threadsPerBlock>>>(args);
Let's assume
numBlocks = 2, threadsPerBlock = 2
So essentially we have 2 blocks, and each block has 2 threads (total 4)
If we look at their thread index for each block, then
(block, thread) -> thread index
Block 0, Thread 0 -> 0
Block 0, Thread 1 -> 1
Block 1, Thread 0 -> 0 (start to repeat)
Block 1, Thread 1 -> 1
When a new block starts, the thread ID for that block starts from 0. To have a unique ID for all the threads, we need the concept of global indexing.
Global Indexing is a technique where we assign each thread a unique index, which is used to access that thread's data.
Calculating Global Index
First, we need to know that a GPU kernel can be multi-dimensional (up to 3 dimensions). We have 1D kernels, 2D kernels, and 3D kernels. Each of them has its own set of formulas to calculate the global index, though the main concept remains the same (you'll see below).
Global Index for 1D Kernel
- In a 1D kernel, we access the grid and block dimensions via gridDim.x and blockDim.x, and a thread's position via blockIdx.x and threadIdx.x, since it's just 1D that's why we don't need to think about accessing other dimensions (i.e., y dim, z dim)
- Now, we need to know 3 specific values. Those are the block dimensions for the x-axis, the block index for the x-axis, and the thread index for the x-axis
Block Dimension for x-axis: Total number of threads along one block (for a 1D kernel, this can be thought of as the total width of a block). blockDim.x will return the value of the total number of threads in the x dimension for a block.
Block Index for x-axis: The position of a block along the x-axis inside the entire grid. blockIdx.x This will return the block index for a particular block.
Thread Index for x-axis: The position of a thread within its block. threadIdx.x will return this index.
Global Index = blockDim.x*blockIdx.x+threadIdx.x
See the example below
We have a 1D kernel.
- Where we have total blocks = 3
- total threads per block = 4
- We need to know the global index for the thread whose index (threadIdx.x) inside its block = 1, and whose block's index (blockIdx.x) = 2
Now,
blockDim.x = 4 (block width)
blockIdx.x = 2 (block index for that thread)
threadIdx.x = 1 (thread index inside its block)
Global Index = 4*2+1 = 9
(See the illustration below for visual understanding)
Global Index for 2D Kernel
In a 1D kernel, we get the global index using only the x-axis, cause there is no other axis.
But a 2D kernel has 2 dimensions. x-axis and the y-axis.
In CUDA, the x-axis represents columns, and the y-axis represents rows
We need to find the global column and global row values to find the global index inside a 2D kernel.
The formula is like the one above, but now we access different axes for different dimensions.
Global Col Index = blockDim.x * blockIdx.x + threadIdx.x
Global Row Index = blockDim.y * blockIdx.y + threadIdx.y
Global Index = Global (Row, Col)
This isn't enough for a 2D Kernel. We got the global index (global row and global column), but to access a specific thread's memory, we need to flatten the 2d index into a 1d index. This is known as a linear index.
The formula for the linear index is
linear_index = row * width + col
Now, we already know the row and column values, which we found from the global row value and global column value.
For a 2D kernel, the width value is
width = gridDim.x * blockDim.x
To get the linear index, we first skip over all the rows above our thread's row. Every row's width is the total width of the grid, and we need to travel through them. That's why we find the total width. For a 2D kernel, total width is the multiplication of total threads inside a block along the x-axis (blockDim.x) and total blocks inside the grid along the x-axis (gridDim.x)
See the illustration below illustaration (scene 4) for visual understanding.
That's it! That's how we assign unique values to threads, and then that value is used across different threads to access one another's data.
Task for you (if you already read it so far :3 ) to find the formula for a 3D kernel global index and linear index.
Let's recap:
- We need to know the global index of a thread to make a distinction
- We can have upto 3D kernel (1D, 2D, 3D Kernel)
- The formula for calculating the global index will vary based on the dimension of the kernel
- For 2D and 3D kernels, getting the global index is not enough; we also need to know the linear index to actually access the data.
https://t.co/Vh8NIjgdOb
With Mozaik, we make loop engineering simpler through the Specification Pattern.
Developers can define their own rules and combine them with AND, OR, and NOT to control loop execution - including blocking tool calls or inference when conditions aren’t met.
Previous hackahton has 210 participants building multi-agent systems, from 82 countries. so we decided to put gas on this.
We are building community of AI engineers. Join Under the Hood, our community at JigJoy.
Share how you use AI, learn from fellow builders, and join our hackathons - with meetups coming soon.
https://t.co/DlO0UKHthz
Due to demand from our community, we have decided to organize another @mozaik_runtime hackathon at the end of October.
$1000 in cash prizes, and also perks and free stuff from our sponsors, which will be announced in the following weeks.
This time it's a hybrid event, both online and on site at STP Novi Sad
Sign up link in comment 👇
Interested in how Claude Code or Codex works under the hood?
We built a small AI coding-agent harness with @mozaik_runtime, using just a few classes to make the core mechanics easy to understand.
https://t.co/in5EO6y6c8
GLOBAL BUILD is live 🌍🔥
GLM-5.3-Flash, FREE in ZCode. 10 hours a day. Sep 3 – 18.
Who gets it
👑 Coding Plan members — free every day, all 15 days. Our VIPs go first.
🥚 New users — 100M free tokens on sign-up. One-time, valid until the window closes
When it opens
🇺🇸 8 AM PT · 11 AM ET
🇬🇧 4 PM London
🇨🇳 11 PM Beijing
How to claim
1️⃣ Open ZCode → tap the card in the bottom-left corner 👀
2️⃣ Not there? Restart the app 😏
https://t.co/9y0HPmcBxz