Skip to content

Commit 440c16c

Browse files
authored
chore(repo): add agentcrumbs.dev support (#3206)
1 parent d4d8d9f commit 440c16c

File tree

5 files changed

+78
-3
lines changed

5 files changed

+78
-3
lines changed

CLAUDE.md

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,15 @@ Test files go next to source files (e.g., `MyService.ts` -> `MyService.test.ts`)
3636
```typescript
3737
import { redisTest, postgresTest, containerTest } from "@internal/testcontainers";
3838

39-
redisTest("should use redis", async ({ redisOptions }) => { /* ... */ });
40-
postgresTest("should use postgres", async ({ prisma }) => { /* ... */ });
41-
containerTest("should use both", async ({ prisma, redisOptions }) => { /* ... */ });
39+
redisTest("should use redis", async ({ redisOptions }) => {
40+
/* ... */
41+
});
42+
postgresTest("should use postgres", async ({ prisma }) => {
43+
/* ... */
44+
});
45+
containerTest("should use both", async ({ prisma, redisOptions }) => {
46+
/* ... */
47+
});
4248
```
4349

4450
## Changesets and Server Changes
@@ -160,3 +166,59 @@ mcp__trigger__list_runs(projectRef: "proj_rrkpdguyagvsoktglnod", environment: "d
160166
```
161167

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

apps/webapp/remix.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module.exports = {
1212
/^@internal\//, // Bundle all internal packages
1313
/^@trigger\.dev\//, // Bundle all trigger packages
1414
"marked",
15+
"agentcrumbs",
1516
"axios",
1617
"p-limit",
1718
"p-map",

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.5.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)