You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,29 @@ AI tool ← MCP server (get_build_errors) ← store.Drain() ← per
56
56
-**Host field**: `LogMessage.Host` is set via cached `os.Hostname()` at capture startup. Used for multi-source origin labeling. GreptimeDB uses `COALESCE(host, '')` for backward compat with pre-existing rows.
57
57
-**File store IPC**: `pending.jsonl` → atomic rename to `pending.jsonl.draining` → read → delete. Leftover lines written back to prevent data loss.
devtap captures build/dev output from a separate terminal and delivers it here via MCP.
63
+
64
+
**You MUST check devtap in these situations:**
65
+
- At the start of each new task or conversation turn
66
+
- Before writing or editing any code
67
+
- After being told that a build, test, or dev server has new output
68
+
69
+
**Use this call order:**
70
+
1. Call "get_build_status" once at the start of the turn.
71
+
2. Call "get_build_errors" when status reports pending messages, when the user says new output arrived, or before the first code edit in the turn.
72
+
73
+
**Call limit per turn:** call "get_build_errors" at most once per turn unless new output is reported.
74
+
75
+
**Multi-source mode:** when devtap drains from multiple sources, tags are prefixed with "host/label |" (for example, "[devtap: myhost/local | make]"). "host" is the machine name, "label" identifies the source. Show these prefixes as-is. If output includes source warnings (for example, source unreachable), show those warnings verbatim and continue with output from reachable sources.
76
+
77
+
**Output format:** when "get_build_errors" returns content:
78
+
If build succeeded, acknowledge briefly (do not repeat the output).
79
+
If build failed, present the error output verbatim in a fenced code block.
80
+
Then add one line: "Next action: <whatyouwilldo>".
81
+
<!-- devtap:end -->` block to project instruction files. Idempotent via marker detection.
60
82
-**Session encoding**: `session.EncodeDir("/foo/bar")` → `"-foo-bar"`, shared across adapters.
61
83
-**Capture modes**: `runner.go` (batch, flush every 50 lines) vs `longrun.go` (debounce timer, for dev servers).
62
84
-**Scanner buffers**: 64KB initial / 1MB max (`internal/capture/errors.go`). On scanner error (line >1MB), pipe is drained to discard to prevent child process deadlock.
Copy file name to clipboardExpand all lines: skills/devtap-get-build-errors/SKILL.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
name: devtap-get-build-errors
3
-
description: Fetch pending devtap build/dev output for the current turn using get_build_status and get_build_errors. Use when the user asks to check build errors, latest build logs, or "/get_build_errors"-style actions.
3
+
description: Fetch devtap output for the current turn. Default to concise summaries and print raw logs only on explicit request.
4
4
metadata:
5
5
short-description: Fetch devtap output
6
6
---
@@ -16,14 +16,18 @@ Use this skill when the user asks for build errors, latest build output, or an e
16
16
- status reports pending output
17
17
- user explicitly asks to fetch/check logs now
18
18
- user says new build/test/dev output arrived
19
-
3. If build succeeded, acknowledge briefly (do not repeat the output).
20
-
4. If build failed, present the error output verbatim in a fenced code block.
21
-
5. Keep source warnings verbatim (for example, unreachable source warnings).
22
-
6. After the output, add one line: `Next action: <what you will do>`.
19
+
3. If build succeeded, acknowledge briefly (do not repeat output).
20
+
4. If build failed, provide a concise summary by default:
21
+
- source label(s)
22
+
- final failure signal (for example exit code or test summary)
23
+
- most actionable failing case/file/error line(s)
24
+
5. Show raw output verbatim only when the user explicitly asks for full/raw/original logs.
25
+
6. Keep source warnings verbatim (for example, unreachable source warnings).
26
+
7. After the output (or summary), add one line: `Next action: <what you will do>`.
23
27
24
28
## Rules
25
29
26
30
- Do not fabricate or reinterpret error content.
27
31
- Do not call `get_build_errors` repeatedly in the same turn unless new output is reported.
0 commit comments