Commit 18ce420
authored
feat(code): add commit and pr attribution to system prompt (#1432)
## Problem
we explicitly instruct the (cloud) agent to not include any attribution lines -- presumably to avoid the default claude code stuff
however, this means there's also no attribution back to posthog code
<!-- Who is this for and what problem does it solve? -->
<!-- Closes #ISSUE_ID -->
## Changes
- cloud: replaces the "no attribution" prompting with instructions to add commit trailers (see #1431 ) and PR body footers
- local: adds new commit+PR attribution instructions, which hopefully will override whatever is injected by claude code
<!-- What did you change and why? -->
<!-- If there are frontend changes, include screenshots. -->
## How did you test this?
i haven't yet 🙈
<!-- Describe what you tested -- manual steps, automated tests, or both. -->
<!-- If you're an agent, only list tests you actually ran. -->1 parent 0b92782 commit 18ce420
3 files changed
Lines changed: 66 additions & 8 deletions
File tree
- apps/code/src/main/services/agent
- packages/agent/src/server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| 421 | + | |
421 | 422 | | |
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
426 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
427 | 456 | | |
428 | 457 | | |
429 | 458 | | |
| |||
632 | 661 | | |
633 | 662 | | |
634 | 663 | | |
| 664 | + | |
635 | 665 | | |
636 | 666 | | |
637 | 667 | | |
| |||
669 | 699 | | |
670 | 700 | | |
671 | 701 | | |
| 702 | + | |
672 | 703 | | |
673 | 704 | | |
674 | 705 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
368 | 370 | | |
369 | 371 | | |
370 | 372 | | |
371 | 373 | | |
372 | 374 | | |
373 | | - | |
| 375 | + | |
374 | 376 | | |
375 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
376 | 381 | | |
377 | 382 | | |
378 | 383 | | |
379 | 384 | | |
380 | 385 | | |
381 | 386 | | |
382 | 387 | | |
383 | | - | |
| 388 | + | |
384 | 389 | | |
385 | 390 | | |
386 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1062 | 1062 | | |
1063 | 1063 | | |
1064 | 1064 | | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
1065 | 1085 | | |
1066 | 1086 | | |
1067 | 1087 | | |
| |||
1075 | 1095 | | |
1076 | 1096 | | |
1077 | 1097 | | |
1078 | | - | |
1079 | | - | |
| 1098 | + | |
1080 | 1099 | | |
1081 | 1100 | | |
1082 | 1101 | | |
| |||
1105 | 1124 | | |
1106 | 1125 | | |
1107 | 1126 | | |
1108 | | - | |
| 1127 | + | |
1109 | 1128 | | |
1110 | 1129 | | |
1111 | | - | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
1112 | 1135 | | |
1113 | 1136 | | |
1114 | 1137 | | |
1115 | | - | |
1116 | | - | |
| 1138 | + | |
1117 | 1139 | | |
1118 | 1140 | | |
1119 | 1141 | | |
| |||
0 commit comments