Bubble Lab is an open-core workflow engine that runs and coordinates automated tasks across tools, APIs, and other systems. It powers Bubble Lab’s Slack-based AI operator platform and can also be hosted and extended independently by teams, organizations, and developers. The catalogue entries provide rules, skills, and instructions for working with the engine.
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.
git clone --depth 1 https://github.com/bubblelabai/BubbleLabWrote 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/rules/bubblelabai/bubblelab/bundling)<a href="https://agentmods.dev/rules/bubblelabai/bubblelab/bundling"><img src="https://agentmods.dev/badge/rules/bubblelabai/bubblelab/bundling/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/bubblelabai/bubblelab/bundling"><img src="https://agentmods.dev/badge/rules/bubblelabai/bubblelab/bundling.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.01505 | $0.01505 |
| Opus 5.5 | $0.00602 | $0.00602 |
| Sonnet 5.5 | $0.00301 | $0.00301 |
| Haiku 4.5 | $0.00151 | $0.00151 |
Grade A, and why
bundling 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 1mo 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 — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Type Bundling for Monaco Editor
Overview
The project uses a custom type bundling system to provide full TypeScript IntelliSense support in the Monaco editor for @bubblelab/bubble-core and its dependencies. This is necessary because Monaco cannot directly resolve workspace packages or external dependencies.
Architecture
Key Files
-
Bundler Script:
packages/bubble-core/scripts/bubble-bundler.ts- Processes TypeScript declaration files (
.d.ts) - Inlines all dependencies into a single self-contained bundle
- Runs as part of the build process:
tsc && tsx scripts/bubble-bundler.ts
- Processes TypeScript declaration files (
-
Bundle Output:
packages/bubble-core/dist/bubble-bundle.d.ts- Self-contained TypeScript declarations
- Includes Zod type stubs for type inference
- Contains inlined types from
@bubblelab/shared-schemas - All bubble-core types and classes
-
Monaco Integration:
apps/bubble-studio/public/bubble-types.txt- Copy of the bundle served to the Monaco editor
- Loaded in
apps/bubble-studio/src/components/MonacoEditor.tsx
Bundling Process
-
Compile TypeScript
tsc # Generates .d.ts files in dist/ -
Bundle Types
- Start from
packages/bubble-core/dist/index.d.ts - Recursively process all imports:
- Relative imports (
./types/bubble.js) → inline the file content - External imports (
@bubblelab/shared-schemas) → bundle separately then inline - Zod imports → remove (custom stubs provided)
- Relative imports (
- Start from
-
Shared Schemas Handling
@bubblelab/shared-schemasis bundled separately viabundleSharedSchemas()- Prevents cache key collisions (both packages have
index.d.ts) - Uses absolute file paths as cache keys to avoid conflicts
- Inlined content includes all shared types like:
BubbleOperationResultBubbleResult<T>BubbleTriggerEventRegistry- API schemas, credential types, etc.
-
Bundle Structure
// Header comment // Zod type stubs (for z.infer, z.ZodObject, etc.) declare namespace z { ... } // Inlined shared-schemas types export interface BubbleOperationResult { ... } export interface BubbleResult<T> { ... } // Bubble-core types and classes export class BubbleFlow { ... } export class ServiceBubble { ... }
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.
- 1mo ago First seen · 213 lines · 1,505 tokens per session scan A e79c26481f02
bundling is a cursor rule published in the GitHub repository bubblelabai/BubbleLab (1,098 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 1,505 tokens to every session, about $0.0060 per session on Opus 5.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-08-30.
Other cursor rules, from other repositories
typescript-conventions
TypeScript coding conventions and style guidelines.
caliber-conventions
Caliber project conventions for TypeScript CLI development.
typescript-strict-typing
Enforce strict TypeScript typing without any types.
hatch3r-typescript-patterns
TypeScript and JavaScript typing mechanics — satisfies over as, discriminated unions, branded types, strict utility types, barrel exports, and import ordering.
typescript
TypeScript style rules, scoped to .ts files.
typescript
// Bad const data: any = JSON.parse(content).