Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Use **pnpm**: `pnpm install`, `pnpm dev`, `pnpm test`, `pnpm typecheck`, `pnpm s
| Design and failures | `policies/interface-design.md`, `policies/correctness-complexity.md`, `policies/error-handling.md` |
| Frontend components | `policies/frontend-components.md`, `packages/junior-dashboard/src/client/components/README.md` |
| Agent steering | `policies/agent-steering.md` |
| System prompt shape | `policies/system-prompt.md` |
| Provider boundaries | `policies/provider-boundaries.md` |
| Comments and telemetry | `policies/code-comments.md`, `policies/observability.md`, `TELEMETRY.md` |
| Chat architecture | `packages/junior/src/chat/README.md` |
Expand Down
5 changes: 5 additions & 0 deletions packages/junior-plugin-api/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ export interface PluginHooks {
conversationSidebar?(
ctx: ConversationSidebarHookContext,
): Promise<ConversationSidebarResult> | ConversationSidebarResult;
/**
* Return static guidance for the system prompt. Return the same text for one
* deployment and platform, so the system prompt stays cacheable. Put text
* that changes per request in `userPrompt`. See `policies/system-prompt.md`.
*/
systemPrompt?(
ctx: SystemPromptContext,
): Promise<PromptMessage[]> | PromptMessage[];
Expand Down
Loading
Loading