MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / instructions

Method instructions

crates/opencode-session/src/system.rs:17–19  ·  view source on GitHub ↗

Returns the codex/instructions prompt (used as base instructions). TS: `SystemPrompt.instructions()` → `PROMPT_CODEX.trim()`

()

Source from the content-addressed store, hash-verified

15 /// Returns the codex/instructions prompt (used as base instructions).
16 /// TS: `SystemPrompt.instructions()` → `PROMPT_CODEX.trim()`
17 pub fn instructions() -> &'static str {
18 PROMPT_CODEX.trim()
19 }
20
21 /// Wrap arbitrary text in a `<system-reminder>` block so it is treated as
22 /// injected runtime context, not user-authored content.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected