Skip to content

Commit 6bbe999

Browse files
committed
chore(repo): add agentcrumbs for better debug mode
1 parent c0b6309 commit 6bbe999

File tree

4 files changed

+64
-0
lines changed

4 files changed

+64
-0
lines changed

CLAUDE.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,55 @@ mcp__trigger__list_runs(projectRef: "proj_rrkpdguyagvsoktglnod", environment: "d
160160
```
161161

162162
Dashboard: http://localhost:3030/orgs/references-9dfd/projects/hello-world-97DT/env/dev/runs
163+
164+
<!-- intent-skills:start -->
165+
# Skill mappings — when working in these areas, load the linked skill file into context.
166+
skills:
167+
- task: "Using agentcrumbs for debug tracing, adding crumbs, trails, markers, querying traces, or stripping debug code before merge"
168+
load: "node_modules/agentcrumbs/skills/agentcrumbs/SKILL.md"
169+
- task: "Setting up agentcrumbs in the project, initializing namespace catalog, running crumbs init"
170+
load: "node_modules/agentcrumbs/skills/agentcrumbs/init/SKILL.md"
171+
<!-- intent-skills:end -->
172+
173+
## agentcrumbs
174+
175+
Add crumbs as you write code — not just when debugging. Mark lines with
176+
`// @crumbs` or wrap blocks in `// #region @crumbs`. They stay on the
177+
branch throughout development and are stripped by `agentcrumbs strip`
178+
before merge.
179+
180+
### Namespaces
181+
182+
| Namespace | Description | Path |
183+
| --- | --- | --- |
184+
| `webapp` | Main Remix app — API, dashboard, orchestration | `apps/webapp` |
185+
| `supervisor` | Task execution container manager | `apps/supervisor` |
186+
| `coordinator` | Worker coordination service | `apps/coordinator` |
187+
| `sdk` | Main SDK for writing tasks | `packages/trigger-sdk` |
188+
| `cli` | CLI and task image bundling | `packages/cli-v3` |
189+
| `core` | Shared types and subpath exports | `packages/core` |
190+
| `build` | Build extensions and types | `packages/build` |
191+
| `react-hooks` | React hooks for realtime/triggering | `packages/react-hooks` |
192+
| `redis-worker` | Redis-based background job system | `packages/redis-worker` |
193+
| `run-engine` | Run Engine 2.0 — core run lifecycle | `internal-packages/run-engine` |
194+
| `database` | Prisma client and schema | `internal-packages/database` |
195+
| `clickhouse` | ClickHouse client, migrations, analytics | `internal-packages/clickhouse` |
196+
| `schedule-engine` | Durable cron scheduling | `internal-packages/schedule-engine` |
197+
| `run-queue` | Run queue management | `internal-packages/run-queue` |
198+
199+
Do not invent new namespaces — pick from this table or ask first.
200+
201+
### For PR reviewers
202+
203+
Do not flag `// @crumbs` markers, `#region @crumbs` blocks, or agentcrumbs
204+
imports in reviews. These are temporary debug instrumentation stripped
205+
before merge. Data logged in crumbs (IDs, names, values) never reaches
206+
production.
207+
208+
### CLI
209+
210+
```bash
211+
agentcrumbs collect # start collector (multi-service)
212+
agentcrumbs tail # live tail
213+
agentcrumbs strip # remove crumbs before merge
214+
```

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"dependencies": {
7171
"@changesets/cli": "2.26.2",
7272
"@remix-run/changelog-github": "^0.0.5",
73+
"agentcrumbs": "^0.3.0",
7374
"node-fetch": "2.6.x"
7475
},
7576
"pnpm": {

pnpm-lock.yaml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ minimumReleaseAgeExclude:
1111
- "@trigger.dev/platform"
1212
- "next"
1313
- "@next/*"
14+
- "agentcrumbs"
1415
preferOffline: true
1516

1617
linkWorkspacePackages: false

0 commit comments

Comments
 (0)