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
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: AGENTS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,7 @@ We regularly merge upstream changes from opencode. To minimize merge conflicts a
153
153
2.**Minimize changes to shared files** - When you must modify files that exist in upstream opencode, keep changes as small and isolated as possible.
154
154
155
155
3.**Use `kilocode_change` markers** - When modifying shared code, mark your changes with `kilocode_change` comments so they can be easily identified during merges.
156
+
Do not use these markers in files within directories with kilo in the name
156
157
157
158
4.**Avoid restructuring upstream code** - Don't refactor or reorganize code that comes from opencode unless absolutely necessary.
@@ -307,15 +307,15 @@ Both have type guards (`isApiProviderError()`, `isConsecutiveMistakeError()`) an
307
307
## 7. Implementation Recommendations for New Extension
308
308
309
309
1.**Use `kilo-telemetry` via CLI proxy** — all PostHog communication goes through the CLI's `POST /telemetry/capture` endpoint. The extension does not include `posthog-node` or `posthog-js` directly.
310
-
2.**Singleton service pattern** — single `TelemetryService` instance, multiple pluggable clients
310
+
2.**Singleton pattern** — single `TelemetryProxy` instance that sends to CLI + logs to console, no pluggable clients
311
311
3.**Properties provider pattern** — `KiloProvider` implements `TelemetryPropertiesProvider` to inject VS Code context into every event
312
-
4.**Typed events** — all event names in an enum, with typed capture methods on the service
313
-
5.**Event subscription/filtering** — clients can include/exclude specific events
0 commit comments