惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
WordPress大学
WordPress大学
Help Net Security
Help Net Security
Jina AI
Jina AI
Security Latest
Security Latest
Y
Y Combinator Blog
Project Zero
Project Zero
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
Know Your Adversary
Know Your Adversary
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
NISL@THU
NISL@THU
Cisco Talos Blog
Cisco Talos Blog
博客园 - 司徒正美
MyScale Blog
MyScale Blog
Cyberwarzone
Cyberwarzone
D
Docker
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
C
CERT Recently Published Vulnerability Notes
B
Blog
L
LangChain Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
SecWiki News
SecWiki News
The Hacker News
The Hacker News
C
Check Point Blog
L
Lohrmann on Cybersecurity
V2EX - 技术
V2EX - 技术
S
Securelist
T
Threat Research - Cisco Blogs
Stack Overflow Blog
Stack Overflow Blog
TaoSecurity Blog
TaoSecurity Blog
云风的 BLOG
云风的 BLOG
Latest news
Latest news
人人都是产品经理
人人都是产品经理
L
LINUX DO - 最新话题
Application and Cybersecurity Blog
Application and Cybersecurity Blog
The Register - Security
The Register - Security
Webroot Blog
Webroot Blog
Simon Willison's Weblog
Simon Willison's Weblog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Security Blog
Microsoft Security Blog
AWS News Blog
AWS News Blog
C
Cybersecurity and Infrastructure Security Agency CISA
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
小众软件
小众软件
T
Tailwind CSS Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
宝玉的分享
宝玉的分享
O
OpenAI News

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
GitHub - Goodruns14/emit: CLI tool for generating and managing analytics event catalogs
Goodruns · 2026-05-14 · via Hacker News: Show HN

Two commands. Your event catalog in git generated from code.

emit-demo.mp4

Whether your code calls track(), publishes to SNS, or sends a Kafka message, emit reads the call site and writes a structured catalog you review in PRs.

   ┌──────────────────┐                  ┌──────────────────┐
   │  Your codebase   │      scan        │  Emit scanner    │
   │  event sites     │ ───────────────▶ │  + LLM extract   │
   └──────────────────┘                  └────────┬─────────┘
                                                  ▼
                                       ┌──────────────────┐ read+write  ┌──────────────┐
                                       │ emit.catalog.yml │ ◀─────────▶ │  MCP server  │
                                       │   (lives in git) │             └──────────────┘
                                       └────────┬─────────┘
                                                │  push
              ┌─────────────────────────────────┼─────────────────────────────────┐
              ▼                                 ▼                                 ▼
       Warehouse / lakehouse           Product analytics                    custom adapter
       (Snowflake comments, ...)       (Mixpanel, ...)                      (any HTTP API)

What you get back

A snippet from emit.catalog.yml:

purchase_completed:
  description: "Fires when a customer successfully completes checkout."
  fires_when: "After payment authorization succeeds and the order row is committed."
  confidence: high
  source_file: src/checkout/complete.ts:142
  properties:
    bill_amount:
      type: number
      description: "Final charged amount in cents. Negative values indicate a refund."
      confidence: high
    currency:
      type: string
      description: "ISO 4217 currency code, lowercased."
      confidence: high
    coupon_code:
      type: string
      description: "Coupon applied at checkout. Null when no coupon was used."
      confidence: medium

Every entry is grounded in a real call site. Re-runs are cached by SHA-256 of the surrounding code.

Prerequisites

  • Node.js >= 18.0.0
  • One LLM provider, any of:
    • Claude Code CLI installed (no API key needed)
    • ANTHROPIC_API_KEY environment variable
    • OPENAI_API_KEY environment variable

Install

npm install -g emit-catalog

Then verify:

emit --help

Quickstart

1. Initialize

emit init

Interactive setup wizard. Enter your event names (CSV/JSON or in line), emit auto detects your LLM provider, and then kicks off your first scan.

Creates emit.config.yml.

2. Scan

emit scan

Scans your repo for event tracking calls, uses an LLM to extract metadata (descriptions, trigger conditions, properties), and writes emit.catalog.yml.

Common flags: --event <name>, --events <names>, --dry-run, --confirm, --fresh, --resolve-missing, --format json. See the Flags section for the full reference.

Caching is on by default. Emit caches LLM extractions by SHA-256 of the surrounding code context. Re-running a scan after no source changes is free and instant — only events whose code actually moved are re-extracted. Pass --fresh to force a full re-extraction.

emit.catalog.yml is meant to be committed alongside your code and reviewed in PRs — same lifecycle as a schema migration. The whole point is that the catalog and the instrumentation can never silently drift apart. (See the sample output above for what one entry looks like.)

Confidence levels

Every event and every property in the catalog is scored on the same three-level scale. The two scores are independent — an event may be high while one of its properties is medium, or vice versa.

Level Event Property
high Track/fire call is visible AND its trigger context is clear Property appears in the call site with a clear value, type, or literal
medium Only a type/interface declaration is visible (fire site inferred), or the trigger context is ambiguous Name is visible but value, type, or origin isn't — passed as a typed parameter, set in a wrapper not shown, or assembled dynamically
low Can't confirm the event fires from the code shown Can't tell whether this is an event property or an unrelated local variable

Low and not-found events are the highest-priority for review — they're the ones that genuinely block. Medium is acceptable on its own: the LLM is saying "I have a justified read but couldn't fully verify." Medium events don't gate review_required and won't block you.

You can still push Medium to High if you want. Emit doesn't insist Medium events stay Medium — it just doesn't pressure you to chase them. The typical lever for pushing Medium → High is surfacing more context: for the wrapper-helper case ("set in a wrapper not shown"), backend_patterns.context_files (see Configuration) points emit at the helper file and usually moves the affected events from medium to high. The choice is yours.

Today only the event-level score gates review_required and the high/medium/low breakdown — per-property scores are stored and surfaced via MCP for inspection but don't roll up into aggregates.

Commands

Command Purpose
emit init Interactive setup wizard, creates emit.config.yml
emit scan Scan repo and extract event metadata into emit.catalog.yml
emit import <file> Import event names from a CSV or JSON file
emit push Push catalog to destinations (Mixpanel, Snowflake built-ins; type: custom for everything else)
emit fix Apply the config fix suggested by the last scan diagnosis
emit suggest Propose new events/properties to instrument from a plain-text ask (delegates implementation to Claude Code)
emit destination <add|list|test|remove> Manage push destinations (scaffold custom adapters, list, test, remove)
emit status Show catalog health report
emit revert Restore an event definition from git history
emit mcp Start a local MCP server exposing the catalog to AI agents

Run emit <command> --help for a quick reminder inline.

Flags

emit init

Flag Description
-y, --yes Non-interactive mode — requires at least one of --config-file, --llm-provider, --events, or --skip-events
--config-file <path> Validate and copy a pre-written emit.config.yml. Conflicts with --llm-provider, --events, and --skip-events
--llm-provider <name> LLM provider: claude-code | anthropic | openai | openai-compatible
--events <csv> Comma-separated event names to seed manual_events
--skip-events Create the config with no events seeded
--force Overwrite an existing emit.config.yml without confirming

emit scan

Flag Description
--dry-run Preview output without writing the catalog file
--confirm Prompt whether to save after showing results
--fresh Force full re-extraction, ignoring cached results
--yes Non-interactive: auto-save without prompting (useful for CI)
--event <name> Scan a single specific event
--events <names> Scan multiple events (comma-separated)
--top-n <number> Override config top_n — number of events to scan
--resolve-missing [events] Use the LLM to locate renamed or missing events. Pass comma-separated names to target specific ones, or omit to target all not-found events
--provider <name> Override LLM provider for this run: claude-code | anthropic | openai | openai-compatible
--model <name> Override LLM model for this run (e.g. claude-opus-4-6, gpt-4o)
--format <format> Output format: text (default) or json

emit fix

Flag Description
--yes Run headlessly (no interactive session); auto-run rescan after the fix
--force Skip the pre-flight check that rejects fixes which would hide already-cataloged events

emit suggest

Flag Description
--ask <text> The ask in plain text (e.g. "measure where users drop off during signup"). Required with --yes. File paths embedded in the text are auto-detected and loaded as feature context.
-y, --yes Headless mode — launches Claude Code via -p --permission-mode acceptEdits, skips all prompts, auto-runs emit scan --fresh --yes after. Requires --ask.
--debug-context Print the deterministic LLM context bundle (catalog summary, exemplars, naming style) as JSON and exit. Requires --ask. No LLM call.
--debug-prompt Print the full agent brief that would be handed to Claude Code, and exit. Requires --ask. No LLM call.

emit import <file>

Flag Description
--column <name> Column header containing event names (for multi-column CSVs)
--dry-run Show what would be imported without writing
--replace Replace existing manual_events instead of merging

emit push

Flag Description
--destination <name> Push to a single destination only (match by type or custom name field)
--dry-run Preview what would be pushed without making API calls
--event <name> Push a single specific event only
--verbose Dump every HTTP request/response (for debugging custom adapters)
--format <format> Output format: text (default) or json

emit status

Flag Description
--event <name> Show full flag details for a specific event
--format <format> Output format: text (default) or json

emit revert

Flag Description
--event <name> (required) Event name to restore
--commit <sha> Commit SHA to restore from (prompted if omitted)
-y, --yes Skip the confirmation prompt; --commit is required in non-interactive mode
--expect-description <substr> Safety guard: refuse the revert unless the historical description contains this substring (case-insensitive)

emit mcp

Flag Description
--catalog <path> Explicit path to emit.catalog.yml; overrides the path resolved from emit.config.yml

emit destination add [name]

Flag Description
--auth <style> Auth style: custom-header | bearer | basic | none
--env-var <name> Env var holding the credential
--header-name <name> HTTP header name (required when --auth=custom-header)
--docs-url <url> API docs URL — rendered as a TODO comment in the scaffolded adapter
-y, --yes Non-interactive: error instead of prompting for missing info

emit destination list

Flag Description
--format <format> Output format: text (default) or json

emit destination test <name>

Flag Description
--event <name> Override the catalog event used for the test (defaults to the first event in the catalog)

Agentic / headless use

Every command runs without a TTY. This is what lets Claude (or any agent, or CI) drive emit end-to-end. The contract: pass --yes and supply every decision as a flag — emit will never prompt.

# init — pick one of these three shapes
emit init --yes --llm-provider anthropic --events signup,purchase    # inline events
emit init --yes --llm-provider anthropic --skip-events               # no events seeded
emit init --yes --config-file ./emit.config.yml --force              # validate + copy an existing YAML
# Rules: --yes is required. --config-file conflicts with --llm-provider/--events/--skip-events.
# Valid --llm-provider: claude-code | anthropic | openai | openai-compatible

# scan — auto-answers any diagnostic prompts
emit scan --yes
emit scan --yes --events foo,bar --fresh --format json

# fix — apply the config fix the last scan suggested
emit fix --yes

# suggest — headless requires --ask; leaves changes uncommitted for review
emit suggest --yes --ask "instrument where users drop off during signup"
# Claude Code edits source files and writes .emit/suggestions/<branch-slug>.md
# Run `git diff` to review; emit never commits.

# import — fully flag-driven
emit import events.csv --column event_name --replace

# push — fully flag-driven
emit push --destination mixpanel --dry-run

# status — never prompts
emit status --format json

# revert — --commit is REQUIRED in non-interactive mode
emit revert --event signup_completed --commit <sha> --yes
# Optional AI-safety guard: refuse the revert unless the historical description matches.
# Useful when an agent is reverting on a user's behalf.
emit revert --event signup_completed --commit <sha> --yes \
  --expect-description "user finished signup"

# destination — add requires --yes AND an explicit --auth (no silent default)
emit destination add Statsig --yes --auth custom-header --header-name X-API-Key
emit destination list --format json
emit destination test Mixpanel
emit destination remove Statsig

# mcp — always non-interactive
emit mcp --catalog ./emit.catalog.yml

If you're wiring emit into an agent loop, the typical sequence is init --yesscan --yes → (optional) fix --yesscan --yesstatus --format json to read back catalog health as structured JSON.

MCP Server

Emit ships a local Model Context Protocol server that exposes your event catalog to any MCP-compatible AI agent or tool (Claude Desktop, Cursor, etc.).

emit mcp                        # reads catalog path from emit.config.yml
emit mcp --catalog ./emit.catalog.yml   # explicit path

The server communicates over stdio. Add it to your Claude Desktop config:

{
  "mcpServers": {
    "emit-catalog": {
      "command": "emit",
      "args": ["mcp"],
      "cwd": "/path/to/your-repo"
    }
  }
}

Tools exposed

Tool Description
get_event_description Full metadata for an event including description, when it fires, confidence, properties, and source file
get_property_description Metadata for a specific property on an event including edge cases, null rate, cardinality, and sample values
get_property_across_events Look up a property across every event that uses it with canonical definition plus per-event context
list_events List all events, optionally filtered by confidence level or review status
list_properties List all properties with how many events use each one
list_not_found Events that couldn't be located in source code, useful for catalog maintenance
search_events Full-text search across event names, descriptions, and fires_when text
get_events_by_source_file Find all events that fire from a given source file (supports partial path matching)
get_catalog_health Summary of total events, confidence breakdown, and events needing review
update_event_description Update an event's description and fires_when, writes to emit.catalog.yml
update_property_description Update a property's description, writes to emit.catalog.yml

Example agent interaction:

Agent: "analyze refund patterns in our data"
→ calls get_event_description("purchase_completed")
→ sees: bill_amount edge case: "Negative value indicates refund"
→ constructs accurate Snowflake query
→ returns trustworthy analysis

Configuration

Emit looks for config via cosmiconfig:

  • emit.config.yml / emit.config.yaml
  • emit.config.js / emit.config.cjs
  • "emit" key in package.json

Minimal config

repo:
  paths:
    - ./
  sdk: custom

output:
  file: emit.catalog.yml
  confidence_threshold: low

llm:
  provider: claude-code    # or: anthropic, openai, openai-compatible
  model: claude-sonnet-4-6
  max_tokens: 1000

manual_events:
  - purchase_completed
  - signup_started

Note: track_pattern is optional. When you provide manual_events, the scanner's broad search finds call sites without needing an explicit pattern. Add track_pattern only if you want to constrain matches to a specific SDK call (e.g. "analytics.track(").

Excluding directories

By default, emit excludes node_modules, dist, build, cypress, __tests__, coverage, and other common noise directories. To exclude additional project-specific paths:

repo:
  paths:
    - ./
  sdk: custom
  exclude_paths:
    - "e2e/"
    - "scripts/seed-data/"

Discriminator properties

"God events" — one event name where a single property carries all the semantic meaning (e.g. button_click with button_id = signup_cta, add_to_cart, nav_pricing, etc.) — get expanded into one cataloged sub-event per discriminator value, so each behaves like a first-class event for downstream search, MCP, and pushes.

# Shorthand: emit will discover values from your warehouse / source.
discriminator_properties:
  button_click: button_id

# Longform: pin the values explicitly.
discriminator_properties:
  graphql_api:
    property: api.apiName
    values: [AddDashboard, UpdateExplore, DeleteWidget]

The catalog ends up with the parent event plus one parent.value sub-event per value:

button_click:
  description: "User clicked a button"
  ...

# ── Sub-events of button_click (discriminator: button_id) ──
button_click.signup_cta:
  parent_event: button_click
  discriminator_value: signup_cta
  description: "User clicked the signup CTA on the landing page"
  ...

Partial scans respect the relationship: --event button_click re-scans the parent and all its sub-events, while --event button_click.signup_cta re-scans just that one.

Producer mode (pub/sub)

For event-driven codebases, set mode: producer and emit will catalog publish call sites directly from source, without needing a manual_events list. The scanner discovers each publish, the LLM extracts semantics, and topic names become the catalog keys.

Supported SDKs in this release: Kafka, RabbitMQ, SNS, SQS. More brokers will be added based on real-world demand — file an issue if you need one prioritized.

mode: producer
repo:
  paths: [./]
  sdk: kafka              # or rabbitmq, sns, sqs
  # sdk: [kafka, rabbitmq] # multi-SDK services
llm:
  provider: claude-code
  model: claude-sonnet-4-6

Runtime-resolved topics. When the topic name comes from process.env, a config service, or string concatenation, emit can't determine it statically. The catalog uses a <discovered:file:line> placeholder and surfaces a fix suggestion. Resolve with topic_aliases:

topic_aliases:
  index_24: order_placed        # "publish at file:24" → catalog name

Or just run emit fix and Claude Code will pick a sensible name for you. The fix loop has a pre-flight safety check that reverts if the proposal would lose any already-cataloged event.

Filtering noise. AMQP reply queues and infrastructure exchanges can be filtered with rpc_exchanges:

rpc_exchanges:
  - reply.*
  - amq.*

mode: producer is opt-in. Existing analytics-mode setups are unaffected — leave mode unset and emit behaves exactly as before.

Push destinations

Two built-ins are tested against real APIs: Mixpanel and Snowflake (per-event or multi-event table layouts). Everything else uses type: custom — you write a small adapter file (~100 lines) that implements the DestinationAdapter interface. See docs/DESTINATIONS.md for the authoring guide + Mixpanel reference implementation.

destinations:
  - type: mixpanel
    project_id: "4005814"

  - type: snowflake
    schema_type: per_event
    schema: ANALYTICS
    cdp_preset: segment

  - type: custom
    module: ./emit.destinations/statsig.mjs
    name: Statsig
    options:
      api_key_env: STATSIG_API_KEY

Moving off a removed built-in? If you previously had type: segment | amplitude | rudderstack, see the migration recipe in docs/DESTINATIONS.md — the old adapter code is recoverable from git history and ports to a custom adapter in a few minutes.

Environment Variables

Copy .env.example to .env and fill in the values you need:

Variable Required for
ANTHROPIC_API_KEY Anthropic API provider
OPENAI_API_KEY OpenAI provider
MIXPANEL_SERVICE_ACCOUNT_USER / MIXPANEL_SERVICE_ACCOUNT_SECRET Mixpanel push destination
SNOWFLAKE_ACCOUNT / _USERNAME / _PASSWORD / _DATABASE / _SCHEMA Snowflake push destination

Environment variables can be referenced in emit.config.yml with ${VAR_NAME} syntax.

Hitting a wall?

Emit is open source. If your codebase has a pattern emit doesn't handle yet, the right path is usually:

  1. File an issue describing the pattern. Most "edge cases" we hear become config knobs in a future release — backend_patterns.context_files came from a user who needed it for a Java audit-event wrapper, and now any wrapper-helper case is configurable without touching source.
  2. Read the scanner source. src/core/scanner/ and src/core/extractor/ are small and well-commented. If you need to extend something locally to unblock yourself, fine, but please open a PR so the next user with the same pattern doesn't have to do the same work.

emit.config.yml is the contract. Source modification is the contribution path, not a workaround — forking and silently diverging will leave you stranded on upgrades. We'd rather hear about your case. See CONTRIBUTING.md for how to set up a dev environment, run the test suite, and open a PR.