loudmouth-ai 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +148 -77
- package/dist/build-info.json +3 -3
- package/extensions/package.json +6 -0
- package/package.json +1 -1
- package/skills/autopilot/SKILL.md +179 -0
- package/skills/goals/SKILL.md +189 -0
- package/skills/wordpress/SKILL.md +232 -0
- package/extensions/bluebubbles/clawdbot.plugin.json +0 -11
- package/extensions/bluebubbles/index.ts +0 -20
- package/extensions/bluebubbles/package.json +0 -33
- package/extensions/bluebubbles/src/accounts.ts +0 -80
- package/extensions/bluebubbles/src/actions.test.ts +0 -651
- package/extensions/bluebubbles/src/actions.ts +0 -403
- package/extensions/bluebubbles/src/attachments.test.ts +0 -346
- package/extensions/bluebubbles/src/attachments.ts +0 -282
- package/extensions/bluebubbles/src/channel.ts +0 -399
- package/extensions/bluebubbles/src/chat.test.ts +0 -462
- package/extensions/bluebubbles/src/chat.ts +0 -354
- package/extensions/bluebubbles/src/config-schema.ts +0 -51
- package/extensions/bluebubbles/src/media-send.ts +0 -168
- package/extensions/bluebubbles/src/monitor.test.ts +0 -2140
- package/extensions/bluebubbles/src/monitor.ts +0 -2101
- package/extensions/bluebubbles/src/onboarding.ts +0 -340
- package/extensions/bluebubbles/src/probe.ts +0 -127
- package/extensions/bluebubbles/src/reactions.test.ts +0 -393
- package/extensions/bluebubbles/src/reactions.ts +0 -183
- package/extensions/bluebubbles/src/runtime.ts +0 -14
- package/extensions/bluebubbles/src/send.test.ts +0 -809
- package/extensions/bluebubbles/src/send.ts +0 -418
- package/extensions/bluebubbles/src/targets.test.ts +0 -184
- package/extensions/bluebubbles/src/targets.ts +0 -323
- package/extensions/bluebubbles/src/types.ts +0 -127
- package/extensions/copilot-proxy/README.md +0 -24
- package/extensions/copilot-proxy/clawdbot.plugin.json +0 -11
- package/extensions/copilot-proxy/index.ts +0 -142
- package/extensions/copilot-proxy/package.json +0 -11
- package/extensions/google-antigravity-auth/README.md +0 -24
- package/extensions/google-antigravity-auth/clawdbot.plugin.json +0 -11
- package/extensions/google-antigravity-auth/index.ts +0 -437
- package/extensions/google-antigravity-auth/package.json +0 -11
- package/extensions/google-gemini-cli-auth/README.md +0 -35
- package/extensions/google-gemini-cli-auth/clawdbot.plugin.json +0 -11
- package/extensions/google-gemini-cli-auth/index.ts +0 -91
- package/extensions/google-gemini-cli-auth/oauth.test.ts +0 -228
- package/extensions/google-gemini-cli-auth/oauth.ts +0 -580
- package/extensions/google-gemini-cli-auth/package.json +0 -11
- package/extensions/googlechat/clawdbot.plugin.json +0 -11
- package/extensions/googlechat/index.ts +0 -20
- package/extensions/googlechat/package.json +0 -39
- package/extensions/googlechat/src/accounts.ts +0 -133
- package/extensions/googlechat/src/actions.ts +0 -162
- package/extensions/googlechat/src/api.test.ts +0 -62
- package/extensions/googlechat/src/api.ts +0 -259
- package/extensions/googlechat/src/auth.ts +0 -113
- package/extensions/googlechat/src/channel.ts +0 -580
- package/extensions/googlechat/src/monitor.test.ts +0 -27
- package/extensions/googlechat/src/monitor.ts +0 -900
- package/extensions/googlechat/src/onboarding.ts +0 -278
- package/extensions/googlechat/src/runtime.ts +0 -14
- package/extensions/googlechat/src/targets.test.ts +0 -35
- package/extensions/googlechat/src/targets.ts +0 -55
- package/extensions/googlechat/src/types.config.ts +0 -3
- package/extensions/googlechat/src/types.ts +0 -73
- package/extensions/imessage/clawdbot.plugin.json +0 -11
- package/extensions/imessage/index.ts +0 -18
- package/extensions/imessage/package.json +0 -11
- package/extensions/imessage/src/channel.ts +0 -294
- package/extensions/imessage/src/runtime.ts +0 -14
- package/extensions/line/clawdbot.plugin.json +0 -11
- package/extensions/line/index.ts +0 -20
- package/extensions/line/package.json +0 -29
- package/extensions/line/src/card-command.ts +0 -338
- package/extensions/line/src/channel.logout.test.ts +0 -96
- package/extensions/line/src/channel.sendPayload.test.ts +0 -308
- package/extensions/line/src/channel.ts +0 -773
- package/extensions/line/src/runtime.ts +0 -14
- package/extensions/matrix/CHANGELOG.md +0 -54
- package/extensions/matrix/clawdbot.plugin.json +0 -11
- package/extensions/matrix/index.ts +0 -18
- package/extensions/matrix/package.json +0 -36
- package/extensions/matrix/src/actions.ts +0 -185
- package/extensions/matrix/src/channel.directory.test.ts +0 -56
- package/extensions/matrix/src/channel.ts +0 -417
- package/extensions/matrix/src/config-schema.ts +0 -62
- package/extensions/matrix/src/directory-live.ts +0 -175
- package/extensions/matrix/src/group-mentions.ts +0 -61
- package/extensions/matrix/src/matrix/accounts.test.ts +0 -83
- package/extensions/matrix/src/matrix/accounts.ts +0 -63
- package/extensions/matrix/src/matrix/actions/client.ts +0 -53
- package/extensions/matrix/src/matrix/actions/messages.ts +0 -120
- package/extensions/matrix/src/matrix/actions/pins.ts +0 -70
- package/extensions/matrix/src/matrix/actions/reactions.ts +0 -84
- package/extensions/matrix/src/matrix/actions/room.ts +0 -88
- package/extensions/matrix/src/matrix/actions/summary.ts +0 -77
- package/extensions/matrix/src/matrix/actions/types.ts +0 -84
- package/extensions/matrix/src/matrix/actions.ts +0 -15
- package/extensions/matrix/src/matrix/active-client.ts +0 -11
- package/extensions/matrix/src/matrix/client/config.ts +0 -165
- package/extensions/matrix/src/matrix/client/create-client.ts +0 -127
- package/extensions/matrix/src/matrix/client/logging.ts +0 -35
- package/extensions/matrix/src/matrix/client/runtime.ts +0 -4
- package/extensions/matrix/src/matrix/client/shared.ts +0 -169
- package/extensions/matrix/src/matrix/client/storage.ts +0 -131
- package/extensions/matrix/src/matrix/client/types.ts +0 -34
- package/extensions/matrix/src/matrix/client.test.ts +0 -57
- package/extensions/matrix/src/matrix/client.ts +0 -9
- package/extensions/matrix/src/matrix/credentials.ts +0 -103
- package/extensions/matrix/src/matrix/deps.ts +0 -57
- package/extensions/matrix/src/matrix/format.test.ts +0 -34
- package/extensions/matrix/src/matrix/format.ts +0 -22
- package/extensions/matrix/src/matrix/index.ts +0 -11
- package/extensions/matrix/src/matrix/monitor/allowlist.ts +0 -58
- package/extensions/matrix/src/matrix/monitor/auto-join.ts +0 -68
- package/extensions/matrix/src/matrix/monitor/direct.ts +0 -105
- package/extensions/matrix/src/matrix/monitor/events.ts +0 -103
- package/extensions/matrix/src/matrix/monitor/handler.ts +0 -645
- package/extensions/matrix/src/matrix/monitor/index.ts +0 -279
- package/extensions/matrix/src/matrix/monitor/location.ts +0 -83
- package/extensions/matrix/src/matrix/monitor/media.test.ts +0 -103
- package/extensions/matrix/src/matrix/monitor/media.ts +0 -113
- package/extensions/matrix/src/matrix/monitor/mentions.ts +0 -31
- package/extensions/matrix/src/matrix/monitor/replies.ts +0 -96
- package/extensions/matrix/src/matrix/monitor/room-info.ts +0 -58
- package/extensions/matrix/src/matrix/monitor/rooms.ts +0 -43
- package/extensions/matrix/src/matrix/monitor/threads.ts +0 -64
- package/extensions/matrix/src/matrix/monitor/types.ts +0 -39
- package/extensions/matrix/src/matrix/poll-types.test.ts +0 -22
- package/extensions/matrix/src/matrix/poll-types.ts +0 -157
- package/extensions/matrix/src/matrix/probe.ts +0 -70
- package/extensions/matrix/src/matrix/send/client.ts +0 -63
- package/extensions/matrix/src/matrix/send/formatting.ts +0 -92
- package/extensions/matrix/src/matrix/send/media.ts +0 -220
- package/extensions/matrix/src/matrix/send/targets.test.ts +0 -102
- package/extensions/matrix/src/matrix/send/targets.ts +0 -144
- package/extensions/matrix/src/matrix/send/types.ts +0 -109
- package/extensions/matrix/src/matrix/send.test.ts +0 -172
- package/extensions/matrix/src/matrix/send.ts +0 -255
- package/extensions/matrix/src/onboarding.ts +0 -432
- package/extensions/matrix/src/outbound.ts +0 -53
- package/extensions/matrix/src/resolve-targets.ts +0 -89
- package/extensions/matrix/src/runtime.ts +0 -14
- package/extensions/matrix/src/tool-actions.ts +0 -160
- package/extensions/matrix/src/types.ts +0 -95
- package/extensions/mattermost/clawdbot.plugin.json +0 -11
- package/extensions/mattermost/index.ts +0 -18
- package/extensions/mattermost/package.json +0 -25
- package/extensions/mattermost/src/channel.test.ts +0 -43
- package/extensions/mattermost/src/channel.ts +0 -339
- package/extensions/mattermost/src/config-schema.ts +0 -56
- package/extensions/mattermost/src/group-mentions.ts +0 -14
- package/extensions/mattermost/src/mattermost/accounts.ts +0 -115
- package/extensions/mattermost/src/mattermost/client.ts +0 -208
- package/extensions/mattermost/src/mattermost/index.ts +0 -9
- package/extensions/mattermost/src/mattermost/monitor-helpers.ts +0 -150
- package/extensions/mattermost/src/mattermost/monitor.ts +0 -921
- package/extensions/mattermost/src/mattermost/probe.ts +0 -70
- package/extensions/mattermost/src/mattermost/send.ts +0 -217
- package/extensions/mattermost/src/normalize.ts +0 -38
- package/extensions/mattermost/src/onboarding-helpers.ts +0 -42
- package/extensions/mattermost/src/onboarding.ts +0 -187
- package/extensions/mattermost/src/runtime.ts +0 -14
- package/extensions/mattermost/src/types.ts +0 -50
- package/extensions/msteams/CHANGELOG.md +0 -51
- package/extensions/msteams/clawdbot.plugin.json +0 -11
- package/extensions/msteams/index.ts +0 -18
- package/extensions/msteams/package.json +0 -36
- package/extensions/msteams/src/attachments/download.ts +0 -206
- package/extensions/msteams/src/attachments/graph.ts +0 -319
- package/extensions/msteams/src/attachments/html.ts +0 -76
- package/extensions/msteams/src/attachments/payload.ts +0 -22
- package/extensions/msteams/src/attachments/shared.ts +0 -235
- package/extensions/msteams/src/attachments/types.ts +0 -37
- package/extensions/msteams/src/attachments.test.ts +0 -424
- package/extensions/msteams/src/attachments.ts +0 -18
- package/extensions/msteams/src/channel.directory.test.ts +0 -46
- package/extensions/msteams/src/channel.ts +0 -436
- package/extensions/msteams/src/conversation-store-fs.test.ts +0 -88
- package/extensions/msteams/src/conversation-store-fs.ts +0 -155
- package/extensions/msteams/src/conversation-store-memory.ts +0 -45
- package/extensions/msteams/src/conversation-store.ts +0 -41
- package/extensions/msteams/src/directory-live.ts +0 -179
- package/extensions/msteams/src/errors.test.ts +0 -46
- package/extensions/msteams/src/errors.ts +0 -158
- package/extensions/msteams/src/file-consent-helpers.test.ts +0 -234
- package/extensions/msteams/src/file-consent-helpers.ts +0 -73
- package/extensions/msteams/src/file-consent.ts +0 -122
- package/extensions/msteams/src/graph-chat.ts +0 -52
- package/extensions/msteams/src/graph-upload.ts +0 -445
- package/extensions/msteams/src/inbound.test.ts +0 -67
- package/extensions/msteams/src/inbound.ts +0 -38
- package/extensions/msteams/src/index.ts +0 -4
- package/extensions/msteams/src/media-helpers.test.ts +0 -186
- package/extensions/msteams/src/media-helpers.ts +0 -77
- package/extensions/msteams/src/messenger.test.ts +0 -245
- package/extensions/msteams/src/messenger.ts +0 -460
- package/extensions/msteams/src/monitor-handler/inbound-media.ts +0 -123
- package/extensions/msteams/src/monitor-handler/message-handler.ts +0 -629
- package/extensions/msteams/src/monitor-handler.ts +0 -166
- package/extensions/msteams/src/monitor-types.ts +0 -5
- package/extensions/msteams/src/monitor.ts +0 -290
- package/extensions/msteams/src/onboarding.ts +0 -432
- package/extensions/msteams/src/outbound.ts +0 -47
- package/extensions/msteams/src/pending-uploads.ts +0 -87
- package/extensions/msteams/src/policy.test.ts +0 -210
- package/extensions/msteams/src/policy.ts +0 -202
- package/extensions/msteams/src/polls-store-memory.ts +0 -30
- package/extensions/msteams/src/polls-store.test.ts +0 -40
- package/extensions/msteams/src/polls.test.ts +0 -72
- package/extensions/msteams/src/polls.ts +0 -299
- package/extensions/msteams/src/probe.test.ts +0 -57
- package/extensions/msteams/src/probe.ts +0 -99
- package/extensions/msteams/src/reply-dispatcher.ts +0 -128
- package/extensions/msteams/src/resolve-allowlist.ts +0 -277
- package/extensions/msteams/src/runtime.ts +0 -14
- package/extensions/msteams/src/sdk-types.ts +0 -19
- package/extensions/msteams/src/sdk.ts +0 -33
- package/extensions/msteams/src/send-context.ts +0 -156
- package/extensions/msteams/src/send.ts +0 -489
- package/extensions/msteams/src/sent-message-cache.test.ts +0 -16
- package/extensions/msteams/src/sent-message-cache.ts +0 -41
- package/extensions/msteams/src/storage.ts +0 -22
- package/extensions/msteams/src/store-fs.ts +0 -80
- package/extensions/msteams/src/token.ts +0 -19
- package/extensions/nextcloud-talk/clawdbot.plugin.json +0 -11
- package/extensions/nextcloud-talk/index.ts +0 -18
- package/extensions/nextcloud-talk/package.json +0 -30
- package/extensions/nextcloud-talk/src/accounts.ts +0 -154
- package/extensions/nextcloud-talk/src/channel.ts +0 -404
- package/extensions/nextcloud-talk/src/config-schema.ts +0 -78
- package/extensions/nextcloud-talk/src/format.ts +0 -79
- package/extensions/nextcloud-talk/src/inbound.ts +0 -336
- package/extensions/nextcloud-talk/src/monitor.ts +0 -246
- package/extensions/nextcloud-talk/src/normalize.ts +0 -31
- package/extensions/nextcloud-talk/src/onboarding.ts +0 -341
- package/extensions/nextcloud-talk/src/policy.ts +0 -175
- package/extensions/nextcloud-talk/src/room-info.ts +0 -111
- package/extensions/nextcloud-talk/src/runtime.ts +0 -14
- package/extensions/nextcloud-talk/src/send.ts +0 -206
- package/extensions/nextcloud-talk/src/signature.ts +0 -67
- package/extensions/nextcloud-talk/src/types.ts +0 -179
- package/extensions/nostr/CHANGELOG.md +0 -46
- package/extensions/nostr/README.md +0 -136
- package/extensions/nostr/clawdbot.plugin.json +0 -11
- package/extensions/nostr/index.ts +0 -69
- package/extensions/nostr/package.json +0 -31
- package/extensions/nostr/src/channel.test.ts +0 -141
- package/extensions/nostr/src/channel.ts +0 -342
- package/extensions/nostr/src/config-schema.ts +0 -90
- package/extensions/nostr/src/metrics.ts +0 -464
- package/extensions/nostr/src/nostr-bus.fuzz.test.ts +0 -544
- package/extensions/nostr/src/nostr-bus.integration.test.ts +0 -452
- package/extensions/nostr/src/nostr-bus.test.ts +0 -199
- package/extensions/nostr/src/nostr-bus.ts +0 -741
- package/extensions/nostr/src/nostr-profile-http.test.ts +0 -378
- package/extensions/nostr/src/nostr-profile-http.ts +0 -500
- package/extensions/nostr/src/nostr-profile-import.test.ts +0 -120
- package/extensions/nostr/src/nostr-profile-import.ts +0 -259
- package/extensions/nostr/src/nostr-profile.fuzz.test.ts +0 -479
- package/extensions/nostr/src/nostr-profile.test.ts +0 -410
- package/extensions/nostr/src/nostr-profile.ts +0 -242
- package/extensions/nostr/src/nostr-state-store.test.ts +0 -128
- package/extensions/nostr/src/nostr-state-store.ts +0 -226
- package/extensions/nostr/src/runtime.ts +0 -14
- package/extensions/nostr/src/seen-tracker.ts +0 -271
- package/extensions/nostr/src/types.test.ts +0 -161
- package/extensions/nostr/src/types.ts +0 -99
- package/extensions/nostr/test/setup.ts +0 -5
- package/extensions/open-prose/README.md +0 -25
- package/extensions/open-prose/clawdbot.plugin.json +0 -11
- package/extensions/open-prose/index.ts +0 -5
- package/extensions/open-prose/package.json +0 -11
- package/extensions/open-prose/skills/prose/LICENSE +0 -21
- package/extensions/open-prose/skills/prose/SKILL.md +0 -318
- package/extensions/open-prose/skills/prose/alt-borges.md +0 -141
- package/extensions/open-prose/skills/prose/alts/arabian-nights.md +0 -358
- package/extensions/open-prose/skills/prose/alts/borges.md +0 -360
- package/extensions/open-prose/skills/prose/alts/folk.md +0 -322
- package/extensions/open-prose/skills/prose/alts/homer.md +0 -346
- package/extensions/open-prose/skills/prose/alts/kafka.md +0 -373
- package/extensions/open-prose/skills/prose/compiler.md +0 -2967
- package/extensions/open-prose/skills/prose/examples/01-hello-world.prose +0 -4
- package/extensions/open-prose/skills/prose/examples/02-research-and-summarize.prose +0 -6
- package/extensions/open-prose/skills/prose/examples/03-code-review.prose +0 -17
- package/extensions/open-prose/skills/prose/examples/04-write-and-refine.prose +0 -14
- package/extensions/open-prose/skills/prose/examples/05-debug-issue.prose +0 -20
- package/extensions/open-prose/skills/prose/examples/06-explain-codebase.prose +0 -17
- package/extensions/open-prose/skills/prose/examples/07-refactor.prose +0 -20
- package/extensions/open-prose/skills/prose/examples/08-blog-post.prose +0 -20
- package/extensions/open-prose/skills/prose/examples/09-research-with-agents.prose +0 -25
- package/extensions/open-prose/skills/prose/examples/10-code-review-agents.prose +0 -32
- package/extensions/open-prose/skills/prose/examples/11-skills-and-imports.prose +0 -27
- package/extensions/open-prose/skills/prose/examples/12-secure-agent-permissions.prose +0 -43
- package/extensions/open-prose/skills/prose/examples/13-variables-and-context.prose +0 -51
- package/extensions/open-prose/skills/prose/examples/14-composition-blocks.prose +0 -48
- package/extensions/open-prose/skills/prose/examples/15-inline-sequences.prose +0 -23
- package/extensions/open-prose/skills/prose/examples/16-parallel-reviews.prose +0 -19
- package/extensions/open-prose/skills/prose/examples/17-parallel-research.prose +0 -19
- package/extensions/open-prose/skills/prose/examples/18-mixed-parallel-sequential.prose +0 -36
- package/extensions/open-prose/skills/prose/examples/19-advanced-parallel.prose +0 -71
- package/extensions/open-prose/skills/prose/examples/20-fixed-loops.prose +0 -20
- package/extensions/open-prose/skills/prose/examples/21-pipeline-operations.prose +0 -35
- package/extensions/open-prose/skills/prose/examples/22-error-handling.prose +0 -51
- package/extensions/open-prose/skills/prose/examples/23-retry-with-backoff.prose +0 -63
- package/extensions/open-prose/skills/prose/examples/24-choice-blocks.prose +0 -86
- package/extensions/open-prose/skills/prose/examples/25-conditionals.prose +0 -114
- package/extensions/open-prose/skills/prose/examples/26-parameterized-blocks.prose +0 -100
- package/extensions/open-prose/skills/prose/examples/27-string-interpolation.prose +0 -105
- package/extensions/open-prose/skills/prose/examples/28-automated-pr-review.prose +0 -37
- package/extensions/open-prose/skills/prose/examples/28-gas-town.prose +0 -1572
- package/extensions/open-prose/skills/prose/examples/29-captains-chair.prose +0 -218
- package/extensions/open-prose/skills/prose/examples/30-captains-chair-simple.prose +0 -42
- package/extensions/open-prose/skills/prose/examples/31-captains-chair-with-memory.prose +0 -145
- package/extensions/open-prose/skills/prose/examples/33-pr-review-autofix.prose +0 -168
- package/extensions/open-prose/skills/prose/examples/34-content-pipeline.prose +0 -204
- package/extensions/open-prose/skills/prose/examples/35-feature-factory.prose +0 -296
- package/extensions/open-prose/skills/prose/examples/36-bug-hunter.prose +0 -237
- package/extensions/open-prose/skills/prose/examples/37-the-forge.prose +0 -1474
- package/extensions/open-prose/skills/prose/examples/38-skill-scan.prose +0 -455
- package/extensions/open-prose/skills/prose/examples/39-architect-by-simulation.prose +0 -277
- package/extensions/open-prose/skills/prose/examples/40-rlm-self-refine.prose +0 -32
- package/extensions/open-prose/skills/prose/examples/41-rlm-divide-conquer.prose +0 -38
- package/extensions/open-prose/skills/prose/examples/42-rlm-filter-recurse.prose +0 -46
- package/extensions/open-prose/skills/prose/examples/43-rlm-pairwise.prose +0 -50
- package/extensions/open-prose/skills/prose/examples/44-run-endpoint-ux-test.prose +0 -261
- package/extensions/open-prose/skills/prose/examples/45-plugin-release.prose +0 -159
- package/extensions/open-prose/skills/prose/examples/45-run-endpoint-ux-test-with-remediation.prose +0 -637
- package/extensions/open-prose/skills/prose/examples/46-run-endpoint-ux-test-fast.prose +0 -148
- package/extensions/open-prose/skills/prose/examples/46-workflow-crystallizer.prose +0 -225
- package/extensions/open-prose/skills/prose/examples/47-language-self-improvement.prose +0 -356
- package/extensions/open-prose/skills/prose/examples/48-habit-miner.prose +0 -445
- package/extensions/open-prose/skills/prose/examples/49-prose-run-retrospective.prose +0 -210
- package/extensions/open-prose/skills/prose/examples/README.md +0 -391
- package/extensions/open-prose/skills/prose/examples/roadmap/README.md +0 -22
- package/extensions/open-prose/skills/prose/examples/roadmap/iterative-refinement.prose +0 -20
- package/extensions/open-prose/skills/prose/examples/roadmap/parallel-review.prose +0 -18
- package/extensions/open-prose/skills/prose/examples/roadmap/simple-pipeline.prose +0 -17
- package/extensions/open-prose/skills/prose/examples/roadmap/syntax/open-prose-syntax.prose +0 -223
- package/extensions/open-prose/skills/prose/guidance/antipatterns.md +0 -951
- package/extensions/open-prose/skills/prose/guidance/patterns.md +0 -700
- package/extensions/open-prose/skills/prose/guidance/system-prompt.md +0 -180
- package/extensions/open-prose/skills/prose/help.md +0 -143
- package/extensions/open-prose/skills/prose/lib/README.md +0 -105
- package/extensions/open-prose/skills/prose/lib/calibrator.prose +0 -215
- package/extensions/open-prose/skills/prose/lib/cost-analyzer.prose +0 -174
- package/extensions/open-prose/skills/prose/lib/error-forensics.prose +0 -250
- package/extensions/open-prose/skills/prose/lib/inspector.prose +0 -196
- package/extensions/open-prose/skills/prose/lib/profiler.prose +0 -460
- package/extensions/open-prose/skills/prose/lib/program-improver.prose +0 -275
- package/extensions/open-prose/skills/prose/lib/project-memory.prose +0 -118
- package/extensions/open-prose/skills/prose/lib/user-memory.prose +0 -93
- package/extensions/open-prose/skills/prose/lib/vm-improver.prose +0 -243
- package/extensions/open-prose/skills/prose/primitives/session.md +0 -587
- package/extensions/open-prose/skills/prose/prose.md +0 -1235
- package/extensions/open-prose/skills/prose/state/filesystem.md +0 -478
- package/extensions/open-prose/skills/prose/state/in-context.md +0 -380
- package/extensions/open-prose/skills/prose/state/postgres.md +0 -875
- package/extensions/open-prose/skills/prose/state/sqlite.md +0 -572
- package/extensions/qwen-portal-auth/README.md +0 -24
- package/extensions/qwen-portal-auth/clawdbot.plugin.json +0 -11
- package/extensions/qwen-portal-auth/index.ts +0 -127
- package/extensions/qwen-portal-auth/oauth.ts +0 -190
- package/extensions/signal/clawdbot.plugin.json +0 -11
- package/extensions/signal/index.ts +0 -18
- package/extensions/signal/package.json +0 -11
- package/extensions/signal/src/channel.ts +0 -312
- package/extensions/signal/src/runtime.ts +0 -14
- package/extensions/telegram/clawdbot.plugin.json +0 -11
- package/extensions/telegram/index.ts +0 -18
- package/extensions/telegram/package.json +0 -11
- package/extensions/telegram/src/channel.ts +0 -478
- package/extensions/telegram/src/runtime.ts +0 -14
- package/extensions/tlon/README.md +0 -5
- package/extensions/tlon/clawdbot.plugin.json +0 -11
- package/extensions/tlon/index.ts +0 -18
- package/extensions/tlon/package.json +0 -30
- package/extensions/tlon/src/channel.ts +0 -379
- package/extensions/tlon/src/config-schema.test.ts +0 -32
- package/extensions/tlon/src/config-schema.ts +0 -43
- package/extensions/tlon/src/monitor/discovery.ts +0 -71
- package/extensions/tlon/src/monitor/history.ts +0 -87
- package/extensions/tlon/src/monitor/index.ts +0 -501
- package/extensions/tlon/src/monitor/processed-messages.test.ts +0 -24
- package/extensions/tlon/src/monitor/processed-messages.ts +0 -38
- package/extensions/tlon/src/monitor/utils.ts +0 -83
- package/extensions/tlon/src/onboarding.ts +0 -213
- package/extensions/tlon/src/runtime.ts +0 -14
- package/extensions/tlon/src/targets.ts +0 -79
- package/extensions/tlon/src/types.ts +0 -85
- package/extensions/tlon/src/urbit/auth.ts +0 -18
- package/extensions/tlon/src/urbit/http-api.ts +0 -36
- package/extensions/tlon/src/urbit/send.test.ts +0 -38
- package/extensions/tlon/src/urbit/send.ts +0 -127
- package/extensions/tlon/src/urbit/sse-client.test.ts +0 -41
- package/extensions/tlon/src/urbit/sse-client.ts +0 -367
- package/extensions/twitch/CHANGELOG.md +0 -21
- package/extensions/twitch/README.md +0 -89
- package/extensions/twitch/clawdbot.plugin.json +0 -9
- package/extensions/twitch/index.ts +0 -20
- package/extensions/twitch/package.json +0 -20
- package/extensions/twitch/src/access-control.test.ts +0 -489
- package/extensions/twitch/src/access-control.ts +0 -154
- package/extensions/twitch/src/actions.ts +0 -173
- package/extensions/twitch/src/client-manager-registry.ts +0 -115
- package/extensions/twitch/src/config-schema.ts +0 -82
- package/extensions/twitch/src/config.test.ts +0 -88
- package/extensions/twitch/src/config.ts +0 -116
- package/extensions/twitch/src/monitor.ts +0 -257
- package/extensions/twitch/src/onboarding.test.ts +0 -311
- package/extensions/twitch/src/onboarding.ts +0 -411
- package/extensions/twitch/src/outbound.test.ts +0 -373
- package/extensions/twitch/src/outbound.ts +0 -186
- package/extensions/twitch/src/plugin.test.ts +0 -39
- package/extensions/twitch/src/plugin.ts +0 -274
- package/extensions/twitch/src/probe.test.ts +0 -198
- package/extensions/twitch/src/probe.ts +0 -118
- package/extensions/twitch/src/resolver.ts +0 -137
- package/extensions/twitch/src/runtime.ts +0 -14
- package/extensions/twitch/src/send.test.ts +0 -289
- package/extensions/twitch/src/send.ts +0 -136
- package/extensions/twitch/src/status.test.ts +0 -270
- package/extensions/twitch/src/status.ts +0 -176
- package/extensions/twitch/src/token.test.ts +0 -171
- package/extensions/twitch/src/token.ts +0 -87
- package/extensions/twitch/src/twitch-client.test.ts +0 -574
- package/extensions/twitch/src/twitch-client.ts +0 -277
- package/extensions/twitch/src/types.ts +0 -141
- package/extensions/twitch/src/utils/markdown.ts +0 -92
- package/extensions/twitch/src/utils/twitch.ts +0 -78
- package/extensions/twitch/test/setup.ts +0 -7
- package/extensions/voice-call/CHANGELOG.md +0 -72
- package/extensions/voice-call/README.md +0 -134
- package/extensions/voice-call/clawdbot.plugin.json +0 -601
- package/extensions/voice-call/index.ts +0 -497
- package/extensions/voice-call/package.json +0 -16
- package/extensions/voice-call/src/cli.ts +0 -300
- package/extensions/voice-call/src/config.test.ts +0 -204
- package/extensions/voice-call/src/config.ts +0 -493
- package/extensions/voice-call/src/core-bridge.ts +0 -196
- package/extensions/voice-call/src/manager/context.ts +0 -21
- package/extensions/voice-call/src/manager/events.ts +0 -177
- package/extensions/voice-call/src/manager/lookup.ts +0 -33
- package/extensions/voice-call/src/manager/outbound.ts +0 -248
- package/extensions/voice-call/src/manager/state.ts +0 -50
- package/extensions/voice-call/src/manager/store.ts +0 -88
- package/extensions/voice-call/src/manager/timers.ts +0 -86
- package/extensions/voice-call/src/manager/twiml.ts +0 -9
- package/extensions/voice-call/src/manager.test.ts +0 -108
- package/extensions/voice-call/src/manager.ts +0 -876
- package/extensions/voice-call/src/media-stream.test.ts +0 -97
- package/extensions/voice-call/src/media-stream.ts +0 -393
- package/extensions/voice-call/src/providers/base.ts +0 -67
- package/extensions/voice-call/src/providers/index.ts +0 -10
- package/extensions/voice-call/src/providers/mock.ts +0 -168
- package/extensions/voice-call/src/providers/plivo.test.ts +0 -28
- package/extensions/voice-call/src/providers/plivo.ts +0 -504
- package/extensions/voice-call/src/providers/stt-openai-realtime.ts +0 -311
- package/extensions/voice-call/src/providers/telnyx.ts +0 -364
- package/extensions/voice-call/src/providers/tts-openai.ts +0 -264
- package/extensions/voice-call/src/providers/twilio/api.ts +0 -45
- package/extensions/voice-call/src/providers/twilio/webhook.ts +0 -29
- package/extensions/voice-call/src/providers/twilio.test.ts +0 -64
- package/extensions/voice-call/src/providers/twilio.ts +0 -595
- package/extensions/voice-call/src/response-generator.ts +0 -171
- package/extensions/voice-call/src/runtime.ts +0 -205
- package/extensions/voice-call/src/telephony-audio.ts +0 -88
- package/extensions/voice-call/src/telephony-tts.ts +0 -95
- package/extensions/voice-call/src/tunnel.ts +0 -331
- package/extensions/voice-call/src/types.ts +0 -272
- package/extensions/voice-call/src/utils.ts +0 -12
- package/extensions/voice-call/src/voice-mapping.ts +0 -65
- package/extensions/voice-call/src/webhook-security.test.ts +0 -233
- package/extensions/voice-call/src/webhook-security.ts +0 -446
- package/extensions/voice-call/src/webhook.ts +0 -490
- package/extensions/whatsapp/clawdbot.plugin.json +0 -11
- package/extensions/whatsapp/index.ts +0 -18
- package/extensions/whatsapp/package.json +0 -11
- package/extensions/whatsapp/src/channel.ts +0 -500
- package/extensions/whatsapp/src/runtime.ts +0 -14
- package/extensions/zalo/CHANGELOG.md +0 -55
- package/extensions/zalo/README.md +0 -50
- package/extensions/zalo/clawdbot.plugin.json +0 -11
- package/extensions/zalo/index.ts +0 -20
- package/extensions/zalo/package.json +0 -33
- package/extensions/zalo/src/accounts.ts +0 -71
- package/extensions/zalo/src/actions.ts +0 -62
- package/extensions/zalo/src/api.ts +0 -206
- package/extensions/zalo/src/channel.directory.test.ts +0 -35
- package/extensions/zalo/src/channel.ts +0 -394
- package/extensions/zalo/src/config-schema.ts +0 -24
- package/extensions/zalo/src/monitor.ts +0 -760
- package/extensions/zalo/src/monitor.webhook.test.ts +0 -70
- package/extensions/zalo/src/onboarding.ts +0 -405
- package/extensions/zalo/src/probe.ts +0 -46
- package/extensions/zalo/src/proxy.ts +0 -18
- package/extensions/zalo/src/runtime.ts +0 -14
- package/extensions/zalo/src/send.ts +0 -117
- package/extensions/zalo/src/status-issues.ts +0 -50
- package/extensions/zalo/src/token.ts +0 -55
- package/extensions/zalo/src/types.ts +0 -42
- package/extensions/zalouser/CHANGELOG.md +0 -33
- package/extensions/zalouser/README.md +0 -221
- package/extensions/zalouser/clawdbot.plugin.json +0 -11
- package/extensions/zalouser/index.ts +0 -32
- package/extensions/zalouser/package.json +0 -33
- package/extensions/zalouser/src/accounts.ts +0 -117
- package/extensions/zalouser/src/channel.test.ts +0 -17
- package/extensions/zalouser/src/channel.ts +0 -641
- package/extensions/zalouser/src/config-schema.ts +0 -27
- package/extensions/zalouser/src/monitor.ts +0 -574
- package/extensions/zalouser/src/onboarding.ts +0 -488
- package/extensions/zalouser/src/probe.ts +0 -28
- package/extensions/zalouser/src/runtime.ts +0 -14
- package/extensions/zalouser/src/send.ts +0 -150
- package/extensions/zalouser/src/status-issues.test.ts +0 -58
- package/extensions/zalouser/src/status-issues.ts +0 -81
- package/extensions/zalouser/src/tool.ts +0 -156
- package/extensions/zalouser/src/types.ts +0 -102
- package/extensions/zalouser/src/zca.ts +0 -208
- package/skills/1password/SKILL.md +0 -53
- package/skills/1password/references/cli-examples.md +0 -29
- package/skills/1password/references/get-started.md +0 -17
- package/skills/apple-notes/SKILL.md +0 -50
- package/skills/apple-reminders/SKILL.md +0 -67
- package/skills/bear-notes/SKILL.md +0 -79
- package/skills/bird/SKILL.md +0 -197
- package/skills/blogwatcher/SKILL.md +0 -46
- package/skills/blucli/SKILL.md +0 -27
- package/skills/bluebubbles/SKILL.md +0 -39
- package/skills/camsnap/SKILL.md +0 -25
- package/skills/canvas/SKILL.md +0 -189
- package/skills/clawdhub/SKILL.md +0 -53
- package/skills/coding-agent/SKILL.md +0 -278
- package/skills/discord/SKILL.md +0 -475
- package/skills/eightctl/SKILL.md +0 -29
- package/skills/food-order/SKILL.md +0 -41
- package/skills/gemini/SKILL.md +0 -23
- package/skills/gifgrep/SKILL.md +0 -47
- package/skills/github/SKILL.md +0 -48
- package/skills/gog/SKILL.md +0 -92
- package/skills/goplaces/SKILL.md +0 -30
- package/skills/himalaya/SKILL.md +0 -217
- package/skills/himalaya/references/configuration.md +0 -174
- package/skills/himalaya/references/message-composition.md +0 -182
- package/skills/imsg/SKILL.md +0 -25
- package/skills/local-places/SERVER_README.md +0 -101
- package/skills/local-places/SKILL.md +0 -91
- package/skills/local-places/pyproject.toml +0 -27
- package/skills/local-places/src/local_places/__init__.py +0 -2
- package/skills/local-places/src/local_places/google_places.py +0 -314
- package/skills/local-places/src/local_places/main.py +0 -65
- package/skills/local-places/src/local_places/schemas.py +0 -107
- package/skills/mcporter/SKILL.md +0 -38
- package/skills/model-usage/SKILL.md +0 -45
- package/skills/model-usage/references/codexbar-cli.md +0 -28
- package/skills/model-usage/scripts/model_usage.py +0 -310
- package/skills/nano-banana-pro/SKILL.md +0 -30
- package/skills/nano-banana-pro/scripts/generate_image.py +0 -169
- package/skills/nano-pdf/SKILL.md +0 -20
- package/skills/notion/SKILL.md +0 -156
- package/skills/obsidian/SKILL.md +0 -55
- package/skills/openai-image-gen/SKILL.md +0 -71
- package/skills/openai-image-gen/scripts/gen.py +0 -240
- package/skills/openai-whisper/SKILL.md +0 -19
- package/skills/openai-whisper-api/SKILL.md +0 -43
- package/skills/openai-whisper-api/scripts/transcribe.sh +0 -85
- package/skills/openhue/SKILL.md +0 -30
- package/skills/oracle/SKILL.md +0 -105
- package/skills/ordercli/SKILL.md +0 -47
- package/skills/peekaboo/SKILL.md +0 -153
- package/skills/sag/SKILL.md +0 -62
- package/skills/session-logs/SKILL.md +0 -105
- package/skills/sherpa-onnx-tts/SKILL.md +0 -49
- package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +0 -178
- package/skills/skill-creator/SKILL.md +0 -371
- package/skills/skill-creator/license.txt +0 -202
- package/skills/skill-creator/scripts/init_skill.py +0 -378
- package/skills/skill-creator/scripts/package_skill.py +0 -111
- package/skills/skill-creator/scripts/quick_validate.py +0 -101
- package/skills/slack/SKILL.md +0 -144
- package/skills/songsee/SKILL.md +0 -29
- package/skills/sonoscli/SKILL.md +0 -26
- package/skills/spotify-player/SKILL.md +0 -34
- package/skills/summarize/SKILL.md +0 -67
- package/skills/things-mac/SKILL.md +0 -61
- package/skills/tmux/SKILL.md +0 -121
- package/skills/tmux/scripts/find-sessions.sh +0 -112
- package/skills/tmux/scripts/wait-for-text.sh +0 -83
- package/skills/trello/SKILL.md +0 -84
- package/skills/video-frames/SKILL.md +0 -29
- package/skills/video-frames/scripts/frame.sh +0 -81
- package/skills/voice-call/SKILL.md +0 -35
- package/skills/wacli/SKILL.md +0 -42
- package/skills/weather/SKILL.md +0 -49
|
@@ -1,587 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
role: session-context-management
|
|
3
|
-
summary: |
|
|
4
|
-
Guidelines for subagents on context handling, state management, and memory compaction.
|
|
5
|
-
This file is loaded into all subagent sessions at start time to ensure consistent
|
|
6
|
-
behavior around state persistence and context flow.
|
|
7
|
-
see-also:
|
|
8
|
-
- ../prose.md: VM execution semantics
|
|
9
|
-
- ../compiler.md: Full language specification
|
|
10
|
-
- ../state/filesystem.md: File-system state management (default)
|
|
11
|
-
- ../state/in-context.md: In-context state management (on request)
|
|
12
|
-
- ../state/sqlite.md: SQLite state management (experimental)
|
|
13
|
-
- ../state/postgres.md: PostgreSQL state management (experimental)
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
# Session Context Management
|
|
17
|
-
|
|
18
|
-
You are a subagent operating within an OpenProse program. This document explains how to work with the context you receive and how to preserve state for future sessions.
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## 1. Understanding Your Context Layers
|
|
23
|
-
|
|
24
|
-
When you start, you receive context from multiple sources. Understand what each represents:
|
|
25
|
-
|
|
26
|
-
### 1.1 Outer Agent State
|
|
27
|
-
|
|
28
|
-
The **outer agent state** is context from the orchestrating VM or parent agent. It tells you:
|
|
29
|
-
|
|
30
|
-
- What program is running
|
|
31
|
-
- Where you are in the execution flow
|
|
32
|
-
- What has happened in prior steps
|
|
33
|
-
|
|
34
|
-
Look for markers like:
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
## Execution Context
|
|
38
|
-
Program: feature-implementation.prose
|
|
39
|
-
Current phase: Implementation
|
|
40
|
-
Prior steps completed: [plan, design]
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
**How to use it:** This orients you. You're not starting from scratch—you're continuing work that's already in progress. Reference prior steps when relevant.
|
|
44
|
-
|
|
45
|
-
### 1.2 Persistent Agent Memory
|
|
46
|
-
|
|
47
|
-
If you are a **persistent agent**, you'll receive a memory file with your prior observations and decisions. This is YOUR accumulated knowledge from previous segments.
|
|
48
|
-
|
|
49
|
-
Look for:
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
## Agent Memory: [your-name]
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
**How to use it:** This is your continuity. You reviewed something yesterday; you remember that review today. Reference your prior decisions. Build on your accumulated understanding. Don't contradict yourself without acknowledging the change.
|
|
56
|
-
|
|
57
|
-
### 1.3 Task Context
|
|
58
|
-
|
|
59
|
-
The **task context** is the specific input for THIS session—the code to review, the plan to evaluate, the feature to implement.
|
|
60
|
-
|
|
61
|
-
Look for:
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
## Task Context
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
or
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
Context provided:
|
|
71
|
-
---
|
|
72
|
-
[specific content]
|
|
73
|
-
---
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
**How to use it:** This is what you're working on RIGHT NOW. Your primary focus. The other context layers inform how you approach this.
|
|
77
|
-
|
|
78
|
-
### 1.4 Layering Order
|
|
79
|
-
|
|
80
|
-
When context feels overwhelming, process in this order:
|
|
81
|
-
|
|
82
|
-
1. **Skim outer state** → Where am I in the bigger picture?
|
|
83
|
-
2. **Read your memory** → What do I already know?
|
|
84
|
-
3. **Focus on task context** → What am I doing right now?
|
|
85
|
-
4. **Synthesize** → How does my prior knowledge inform this task?
|
|
86
|
-
|
|
87
|
-
### 1.5 Execution Scope (Block Invocations)
|
|
88
|
-
|
|
89
|
-
If you're running inside a block invocation, you'll receive execution scope information:
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
Execution scope:
|
|
93
|
-
execution_id: 43
|
|
94
|
-
block: process
|
|
95
|
-
depth: 3
|
|
96
|
-
parent_execution_id: 42
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
**What this tells you:**
|
|
100
|
-
|
|
101
|
-
| Field | Meaning |
|
|
102
|
-
|-------|---------|
|
|
103
|
-
| `execution_id` | Unique ID for this specific block invocation |
|
|
104
|
-
| `block` | Name of the block you're executing within |
|
|
105
|
-
| `depth` | How deep in the call stack (1 = first level) |
|
|
106
|
-
| `parent_execution_id` | The invoking frame's ID (for scope chain) |
|
|
107
|
-
|
|
108
|
-
**How to use it:**
|
|
109
|
-
|
|
110
|
-
1. **Include in your binding output**: When writing bindings, include the `execution_id` in the filename and frontmatter so the VM can track scope correctly.
|
|
111
|
-
|
|
112
|
-
2. **Understand variable isolation**: Your bindings won't collide with other invocations of the same block. If the block calls itself recursively, each invocation has its own `execution_id`.
|
|
113
|
-
|
|
114
|
-
3. **Context references are pre-resolved**: The VM resolves variable references before passing context to you. You don't need to walk the scope chain—the VM already did.
|
|
115
|
-
|
|
116
|
-
**Example:** If a recursive `process` block is at depth 5, there are 5 separate `execution_id` values, each with their own local bindings. Your session only sees the current frame's context.
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
## 2. Working with Persistent State
|
|
121
|
-
|
|
122
|
-
If you're a persistent agent, you maintain state across sessions via a memory file.
|
|
123
|
-
|
|
124
|
-
### Two Distinct Outputs
|
|
125
|
-
|
|
126
|
-
Persistent agents have **two separate outputs** that must not be confused:
|
|
127
|
-
|
|
128
|
-
| Output | What It Is | Where It Goes | Purpose |
|
|
129
|
-
|--------|------------|---------------|---------|
|
|
130
|
-
| **Binding** | The result of THIS task | `bindings/{name}.md` or database | Passed to other sessions via `context:` |
|
|
131
|
-
| **Memory** | Your accumulated knowledge | `agents/{name}/memory.md` or database | Carried forward to YOUR future invocations |
|
|
132
|
-
|
|
133
|
-
**The binding is task-specific.** If you're asked to "review the plan," the binding contains your review.
|
|
134
|
-
|
|
135
|
-
**The memory is agent-specific.** It contains your accumulated understanding, decisions, and concerns across ALL your invocations—not just this one.
|
|
136
|
-
|
|
137
|
-
These are written to **different locations** and serve **different purposes**. Always write both.
|
|
138
|
-
|
|
139
|
-
### 2.1 Reading Your Memory
|
|
140
|
-
|
|
141
|
-
At session start, your memory file is provided. It contains:
|
|
142
|
-
|
|
143
|
-
- **Current Understanding**: Your overall grasp of the project/task
|
|
144
|
-
- **Decisions Made**: What you've decided and why
|
|
145
|
-
- **Open Concerns**: Things you're watching for
|
|
146
|
-
- **Recent Segments**: What happened in recent sessions
|
|
147
|
-
|
|
148
|
-
**Read it carefully.** Your memory is your continuity. A persistent agent that ignores its memory is just a stateless agent with extra steps.
|
|
149
|
-
|
|
150
|
-
### 2.2 Building on Prior Knowledge
|
|
151
|
-
|
|
152
|
-
When you encounter something related to your memory:
|
|
153
|
-
|
|
154
|
-
- Reference it explicitly: "In my previous review, I noted X..."
|
|
155
|
-
- Build on it: "Given that I already approved the plan, I'm now checking implementation alignment..."
|
|
156
|
-
- Update it if wrong: "I previously thought X, but now I see Y..."
|
|
157
|
-
|
|
158
|
-
### 2.3 Maintaining Consistency
|
|
159
|
-
|
|
160
|
-
Your decisions should be consistent across segments unless you explicitly change your position. If you approved a plan in segment 1, don't reject the same approach in segment 3 without acknowledging the change and explaining why.
|
|
161
|
-
|
|
162
|
-
---
|
|
163
|
-
|
|
164
|
-
## 3. Memory Compaction Guidelines
|
|
165
|
-
|
|
166
|
-
At the end of your session, you'll be asked to update your memory file. This is **compaction**—preserving what matters for future sessions.
|
|
167
|
-
|
|
168
|
-
### 3.1 Compaction is NOT Summarization
|
|
169
|
-
|
|
170
|
-
**Wrong approach:** "I reviewed the code and found some issues."
|
|
171
|
-
|
|
172
|
-
This loses all useful information. A summary generalizes; compaction preserves specifics.
|
|
173
|
-
|
|
174
|
-
**Right approach:** "Reviewed auth module (src/auth/login.ts:45-120). Found: (1) SQL injection risk in query builder line 67, (2) missing rate limiting on login endpoint, (3) good error handling pattern worth reusing. Requested fixes for #1 and #2, approved overall structure."
|
|
175
|
-
|
|
176
|
-
### 3.2 What to Preserve
|
|
177
|
-
|
|
178
|
-
Preserve **specific details** that future-you will need:
|
|
179
|
-
|
|
180
|
-
| Preserve | Example |
|
|
181
|
-
| ---------------------------- | -------------------------------------------------------- |
|
|
182
|
-
| **Specific locations** | "src/auth/login.ts:67" not "the auth code" |
|
|
183
|
-
| **Exact findings** | "SQL injection in query builder" not "security issues" |
|
|
184
|
-
| **Decisions with rationale** | "Approved because X" not just "Approved" |
|
|
185
|
-
| **Numbers and thresholds** | "Coverage at 73%, target is 80%" not "coverage is low" |
|
|
186
|
-
| **Names and identifiers** | "User.authenticate() method" not "the login function" |
|
|
187
|
-
| **Open questions** | "Need to verify: does rate limiter apply to OAuth flow?" |
|
|
188
|
-
|
|
189
|
-
### 3.3 What to Drop
|
|
190
|
-
|
|
191
|
-
Drop information that won't help future sessions:
|
|
192
|
-
|
|
193
|
-
| Drop | Why |
|
|
194
|
-
| ---------------- | --------------------------------------------------------------------------- |
|
|
195
|
-
| Reasoning chains | The conclusion matters, not how you got there |
|
|
196
|
-
| False starts | You considered X but chose Y—just record Y and a brief note about why not X |
|
|
197
|
-
| Obvious context | Don't repeat the task prompt back |
|
|
198
|
-
| Verbose quotes | Reference by location, don't copy large blocks |
|
|
199
|
-
|
|
200
|
-
### 3.4 Compaction Structure
|
|
201
|
-
|
|
202
|
-
Update your memory file in this structure:
|
|
203
|
-
|
|
204
|
-
```markdown
|
|
205
|
-
## Current Understanding
|
|
206
|
-
|
|
207
|
-
[What you know about the overall project/task—update, don't replace entirely]
|
|
208
|
-
|
|
209
|
-
## Decisions Made
|
|
210
|
-
|
|
211
|
-
[Append new decisions with dates and rationale]
|
|
212
|
-
|
|
213
|
-
- [date]: [decision] — [why]
|
|
214
|
-
|
|
215
|
-
## Open Concerns
|
|
216
|
-
|
|
217
|
-
[Things to watch for in future sessions—add new, remove resolved]
|
|
218
|
-
|
|
219
|
-
## Segment [N] Summary
|
|
220
|
-
|
|
221
|
-
[What happened THIS session—specific, not general]
|
|
222
|
-
|
|
223
|
-
- Reviewed: [what, where]
|
|
224
|
-
- Found: [specific findings]
|
|
225
|
-
- Decided: [specific decisions]
|
|
226
|
-
- Next: [what should happen next]
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
### 3.5 Compaction Examples
|
|
230
|
-
|
|
231
|
-
**Bad compaction (too general):**
|
|
232
|
-
|
|
233
|
-
```
|
|
234
|
-
## Segment 3 Summary
|
|
235
|
-
Reviewed the implementation. Found some issues. Requested changes.
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
**Good compaction (specific and useful):**
|
|
239
|
-
|
|
240
|
-
```
|
|
241
|
-
## Segment 3 Summary
|
|
242
|
-
- Reviewed: Step 2 implementation (UserService.ts, AuthController.ts)
|
|
243
|
-
- Found:
|
|
244
|
-
- Missing null check in UserService.getById (line 34)
|
|
245
|
-
- AuthController.login not using the approved error format from segment 1
|
|
246
|
-
- Good: Transaction handling follows pattern I recommended
|
|
247
|
-
- Decided: Request fixes for null check and error format before proceeding
|
|
248
|
-
- Next: Re-review after fixes, then approve for step 3
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
### 3.6 The Specificity Test
|
|
252
|
-
|
|
253
|
-
Before finalizing your compaction, ask: "If I read only this summary in a week, could I understand exactly what happened and make consistent follow-up decisions?"
|
|
254
|
-
|
|
255
|
-
If the answer is no, add more specifics.
|
|
256
|
-
|
|
257
|
-
---
|
|
258
|
-
|
|
259
|
-
## 4. Context Size Management
|
|
260
|
-
|
|
261
|
-
### 4.1 When Your Memory Gets Long
|
|
262
|
-
|
|
263
|
-
Over many segments, your memory file grows. When it becomes unwieldy:
|
|
264
|
-
|
|
265
|
-
1. **Preserve recent segments in full** (last 2-3)
|
|
266
|
-
2. **Compress older segments** into key decisions only
|
|
267
|
-
3. **Archive ancient history** as bullet points
|
|
268
|
-
|
|
269
|
-
```markdown
|
|
270
|
-
## Recent Segments (full detail)
|
|
271
|
-
|
|
272
|
-
[Segments 7-9]
|
|
273
|
-
|
|
274
|
-
## Earlier Segments (compressed)
|
|
275
|
-
|
|
276
|
-
- Segment 4-6: Completed initial implementation review, approved with minor fixes
|
|
277
|
-
- Segment 1-3: Established review criteria, approved design doc
|
|
278
|
-
|
|
279
|
-
## Key Historical Decisions
|
|
280
|
-
|
|
281
|
-
- Chose JWT over session tokens (segment 2)
|
|
282
|
-
- Established 80% coverage threshold (segment 1)
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
### 4.2 When Task Context is Large
|
|
286
|
-
|
|
287
|
-
If you receive very large task context (big code blocks, long documents):
|
|
288
|
-
|
|
289
|
-
1. **Don't try to hold it all** — reference by location
|
|
290
|
-
2. **Note what you examined** — "Reviewed lines 1-200, focused on auth flow"
|
|
291
|
-
3. **Record specific locations** — future sessions can re-examine if needed
|
|
292
|
-
|
|
293
|
-
---
|
|
294
|
-
|
|
295
|
-
## 5. Signaling to the VM
|
|
296
|
-
|
|
297
|
-
The OpenProse VM reads your output to determine next steps. Help it by being clear:
|
|
298
|
-
|
|
299
|
-
### 5.1 Decision Signals
|
|
300
|
-
|
|
301
|
-
When you make a decision that affects control flow, be explicit:
|
|
302
|
-
|
|
303
|
-
```
|
|
304
|
-
DECISION: Proceed with implementation
|
|
305
|
-
RATIONALE: Plan addresses all concerns raised in previous review
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
or
|
|
309
|
-
|
|
310
|
-
```
|
|
311
|
-
DECISION: Request revision
|
|
312
|
-
ISSUES:
|
|
313
|
-
1. [specific issue]
|
|
314
|
-
2. [specific issue]
|
|
315
|
-
REQUIRED CHANGES: [what needs to happen]
|
|
316
|
-
```
|
|
317
|
-
|
|
318
|
-
### 5.2 Concern Signals
|
|
319
|
-
|
|
320
|
-
When you notice something that doesn't block progress but should be tracked:
|
|
321
|
-
|
|
322
|
-
```
|
|
323
|
-
CONCERN: [specific concern]
|
|
324
|
-
SEVERITY: [low/medium/high]
|
|
325
|
-
TRACKING: [what to watch for]
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
### 5.3 Completion Signals
|
|
329
|
-
|
|
330
|
-
When your segment is complete:
|
|
331
|
-
|
|
332
|
-
```
|
|
333
|
-
SEGMENT COMPLETE
|
|
334
|
-
MEMORY UPDATES:
|
|
335
|
-
- [what to add to Current Understanding]
|
|
336
|
-
- [decisions to record]
|
|
337
|
-
- [concerns to track]
|
|
338
|
-
READY FOR: [what should happen next]
|
|
339
|
-
```
|
|
340
|
-
|
|
341
|
-
---
|
|
342
|
-
|
|
343
|
-
## 6. Writing Output Files
|
|
344
|
-
|
|
345
|
-
When using file-based state (see `../state/filesystem.md`), the VM tells you where to write your output. You must write your results directly to the filesystem.
|
|
346
|
-
|
|
347
|
-
### 6.1 Binding Output Files
|
|
348
|
-
|
|
349
|
-
For regular sessions with output capture (`let x = session "..."`), write to the specified binding path:
|
|
350
|
-
|
|
351
|
-
**Path format:** `.prose/runs/{run-id}/bindings/{name}.md`
|
|
352
|
-
|
|
353
|
-
**Path format (inside block invocation):** `.prose/runs/{run-id}/bindings/{name}__{execution_id}.md`
|
|
354
|
-
|
|
355
|
-
**File format:**
|
|
356
|
-
|
|
357
|
-
````markdown
|
|
358
|
-
# {name}
|
|
359
|
-
|
|
360
|
-
kind: {let|const|output|input}
|
|
361
|
-
execution_id: {id} # Include if inside a block invocation (omit for root scope)
|
|
362
|
-
|
|
363
|
-
source:
|
|
364
|
-
|
|
365
|
-
```prose
|
|
366
|
-
{the source code that created this binding}
|
|
367
|
-
```
|
|
368
|
-
````
|
|
369
|
-
|
|
370
|
-
---
|
|
371
|
-
|
|
372
|
-
{Your actual output here}
|
|
373
|
-
|
|
374
|
-
````
|
|
375
|
-
|
|
376
|
-
**Example:**
|
|
377
|
-
|
|
378
|
-
```markdown
|
|
379
|
-
# research
|
|
380
|
-
|
|
381
|
-
kind: let
|
|
382
|
-
|
|
383
|
-
source:
|
|
384
|
-
```prose
|
|
385
|
-
let research = session: researcher
|
|
386
|
-
prompt: "Research AI safety"
|
|
387
|
-
````
|
|
388
|
-
|
|
389
|
-
---
|
|
390
|
-
|
|
391
|
-
AI safety research covers several key areas:
|
|
392
|
-
|
|
393
|
-
1. **Alignment** - Ensuring AI systems pursue intended goals
|
|
394
|
-
2. **Robustness** - Making systems resilient to edge cases
|
|
395
|
-
3. **Interpretability** - Understanding how models make decisions
|
|
396
|
-
|
|
397
|
-
Key papers include Amodei et al. (2016) on concrete problems...
|
|
398
|
-
|
|
399
|
-
````
|
|
400
|
-
|
|
401
|
-
### 6.2 Anonymous Session Output
|
|
402
|
-
|
|
403
|
-
Sessions without explicit capture (`session "..."` without `let x =`) still produce output. These are written with `anon_` prefix:
|
|
404
|
-
|
|
405
|
-
**Path:** `.prose/runs/{run-id}/bindings/anon_001.md`
|
|
406
|
-
|
|
407
|
-
The VM assigns sequential numbers. Write the same format but note the binding came from an anonymous session:
|
|
408
|
-
|
|
409
|
-
```markdown
|
|
410
|
-
# anon_003
|
|
411
|
-
|
|
412
|
-
kind: let
|
|
413
|
-
|
|
414
|
-
source:
|
|
415
|
-
```prose
|
|
416
|
-
session "Analyze the codebase for security issues"
|
|
417
|
-
````
|
|
418
|
-
|
|
419
|
-
---
|
|
420
|
-
|
|
421
|
-
Security analysis found the following issues...
|
|
422
|
-
|
|
423
|
-
````
|
|
424
|
-
|
|
425
|
-
### 6.3 Persistent Agent Memory Output
|
|
426
|
-
|
|
427
|
-
If you are a persistent agent (invoked with `resume:`), you have additional responsibilities:
|
|
428
|
-
|
|
429
|
-
1. **Read your memory file first**
|
|
430
|
-
2. **Process the task using memory + context**
|
|
431
|
-
3. **Update your memory file** with compacted state
|
|
432
|
-
4. **Write a segment file** recording this session
|
|
433
|
-
|
|
434
|
-
**Memory file path:** `.prose/runs/{run-id}/agents/{name}/memory.md` (or `.prose/agents/{name}/` for project-scoped, or `~/.prose/agents/{name}/` for user-scoped)
|
|
435
|
-
|
|
436
|
-
**Segment file path:** `.prose/runs/{run-id}/agents/{name}/{name}-{NNN}.md`
|
|
437
|
-
|
|
438
|
-
**Memory file format:**
|
|
439
|
-
|
|
440
|
-
```markdown
|
|
441
|
-
# Agent Memory: {name}
|
|
442
|
-
|
|
443
|
-
## Current Understanding
|
|
444
|
-
|
|
445
|
-
{Your accumulated knowledge about the project/task}
|
|
446
|
-
|
|
447
|
-
## Decisions Made
|
|
448
|
-
|
|
449
|
-
- {date}: {decision} — {rationale}
|
|
450
|
-
- {date}: {decision} — {rationale}
|
|
451
|
-
|
|
452
|
-
## Open Concerns
|
|
453
|
-
|
|
454
|
-
- {Concern 1}
|
|
455
|
-
- {Concern 2}
|
|
456
|
-
````
|
|
457
|
-
|
|
458
|
-
**Segment file format:**
|
|
459
|
-
|
|
460
|
-
```markdown
|
|
461
|
-
# Segment {NNN}
|
|
462
|
-
|
|
463
|
-
timestamp: {ISO8601}
|
|
464
|
-
prompt: "{the prompt for this session}"
|
|
465
|
-
|
|
466
|
-
## Summary
|
|
467
|
-
|
|
468
|
-
- Reviewed: {what you examined}
|
|
469
|
-
- Found: {specific findings}
|
|
470
|
-
- Decided: {specific decisions}
|
|
471
|
-
- Next: {what should happen next}
|
|
472
|
-
```
|
|
473
|
-
|
|
474
|
-
### 6.4 Output Writing Checklist
|
|
475
|
-
|
|
476
|
-
Before completing your session:
|
|
477
|
-
|
|
478
|
-
- [ ] Write your output to the specified binding path
|
|
479
|
-
- [ ] If persistent agent: update memory.md
|
|
480
|
-
- [ ] If persistent agent: write segment file
|
|
481
|
-
- [ ] Use the exact file format specified
|
|
482
|
-
- [ ] Include the source code snippet for traceability
|
|
483
|
-
|
|
484
|
-
---
|
|
485
|
-
|
|
486
|
-
## 7. Returning to the VM
|
|
487
|
-
|
|
488
|
-
When your session completes, you return a **confirmation message** to the VM—not your full output. The VM tracks pointers, not values.
|
|
489
|
-
|
|
490
|
-
### 7.1 What to Return
|
|
491
|
-
|
|
492
|
-
Your return message should include:
|
|
493
|
-
|
|
494
|
-
```
|
|
495
|
-
Binding written: {name}
|
|
496
|
-
Location: {path or database coordinates}
|
|
497
|
-
Summary: {1-2 sentence summary of what's in the binding}
|
|
498
|
-
```
|
|
499
|
-
|
|
500
|
-
**Example (filesystem state, root scope):**
|
|
501
|
-
```
|
|
502
|
-
Binding written: research
|
|
503
|
-
Location: .prose/runs/20260116-143052-a7b3c9/bindings/research.md
|
|
504
|
-
Summary: Comprehensive AI safety research covering alignment, robustness, and interpretability with 15 key paper citations.
|
|
505
|
-
```
|
|
506
|
-
|
|
507
|
-
**Example (filesystem state, inside block invocation):**
|
|
508
|
-
```
|
|
509
|
-
Binding written: result
|
|
510
|
-
Location: .prose/runs/20260116-143052-a7b3c9/bindings/result__43.md
|
|
511
|
-
Execution ID: 43
|
|
512
|
-
Summary: Processed chunk into 3 sub-parts for recursive processing.
|
|
513
|
-
```
|
|
514
|
-
|
|
515
|
-
**Example (PostgreSQL state):**
|
|
516
|
-
```
|
|
517
|
-
Binding written: research
|
|
518
|
-
Location: openprose.bindings WHERE name='research' AND run_id='20260116-143052-a7b3c9'
|
|
519
|
-
Summary: Comprehensive AI safety research covering alignment, robustness, and interpretability with 15 key paper citations.
|
|
520
|
-
```
|
|
521
|
-
|
|
522
|
-
**Example (PostgreSQL state, inside block invocation):**
|
|
523
|
-
```
|
|
524
|
-
Binding written: result
|
|
525
|
-
Location: openprose.bindings WHERE name='result' AND run_id='20260116-143052-a7b3c9' AND execution_id=43
|
|
526
|
-
Execution ID: 43
|
|
527
|
-
Summary: Processed chunk into 3 sub-parts for recursive processing.
|
|
528
|
-
```
|
|
529
|
-
|
|
530
|
-
### 7.2 Why Pointers, Not Values
|
|
531
|
-
|
|
532
|
-
The VM never holds full binding values in its working memory. This is intentional:
|
|
533
|
-
|
|
534
|
-
1. **Scalability**: Bindings can be arbitrarily large (megabytes, even gigabytes)
|
|
535
|
-
2. **RLM patterns**: Enables "environment as variable" where agents query state programmatically
|
|
536
|
-
3. **Context efficiency**: The VM's context stays lean regardless of intermediate data size
|
|
537
|
-
4. **Concurrent access**: Multiple agents can read/write different bindings simultaneously
|
|
538
|
-
|
|
539
|
-
### 7.3 What NOT to Return
|
|
540
|
-
|
|
541
|
-
Do NOT return your full output in the Task tool response. The VM will ignore it.
|
|
542
|
-
|
|
543
|
-
**Bad:**
|
|
544
|
-
```
|
|
545
|
-
Here's my research:
|
|
546
|
-
|
|
547
|
-
AI safety is a field that studies how to create artificial intelligence systems that are beneficial and avoid harmful outcomes. The field encompasses several key areas...
|
|
548
|
-
[5000 more words]
|
|
549
|
-
```
|
|
550
|
-
|
|
551
|
-
**Good:**
|
|
552
|
-
```
|
|
553
|
-
Binding written: research
|
|
554
|
-
Location: .prose/runs/20260116-143052-a7b3c9/bindings/research.md
|
|
555
|
-
Summary: 5200-word AI safety overview covering alignment, robustness, interpretability, and governance with 15 citations.
|
|
556
|
-
```
|
|
557
|
-
|
|
558
|
-
### 7.4 For Persistent Agents
|
|
559
|
-
|
|
560
|
-
If you're a persistent agent (invoked with `resume:`), also confirm your memory update:
|
|
561
|
-
|
|
562
|
-
```
|
|
563
|
-
Binding written: analysis
|
|
564
|
-
Location: .prose/runs/20260116-143052-a7b3c9/bindings/analysis.md
|
|
565
|
-
Summary: Risk assessment identifying 3 critical and 5 moderate concerns.
|
|
566
|
-
|
|
567
|
-
Memory updated: captain
|
|
568
|
-
Location: .prose/runs/20260116-143052-a7b3c9/agents/captain/memory.md
|
|
569
|
-
Segment: captain-003.md
|
|
570
|
-
```
|
|
571
|
-
|
|
572
|
-
---
|
|
573
|
-
|
|
574
|
-
## Summary
|
|
575
|
-
|
|
576
|
-
As a subagent in an OpenProse program:
|
|
577
|
-
|
|
578
|
-
1. **Understand your context layers** — outer state, memory, task context
|
|
579
|
-
2. **Read context by reference** — access binding files/database directly, load what you need
|
|
580
|
-
3. **Build on your memory** — you have continuity, use it
|
|
581
|
-
4. **Compact, don't summarize** — preserve specifics, drop reasoning chains
|
|
582
|
-
5. **Signal clearly** — help the VM understand your decisions
|
|
583
|
-
6. **Test your compaction** — would future-you understand exactly what happened?
|
|
584
|
-
7. **Write outputs directly** — persist to the binding location you're given
|
|
585
|
-
8. **Return pointers, not values** — the VM tracks locations, not content
|
|
586
|
-
|
|
587
|
-
Your memory is what makes you persistent. The VM's efficiency depends on you writing outputs and returning confirmations—not dumping full content back through the substrate.
|