plan_mode_prompt_addendum (agent/plan.rs)

jan · src-tauri/src/core/agent/plan.rs · rust · Apache-2.0
ai, tag:embed-classified

Provides prompt text and constants for read‑only plan mode in an agent, ensuring mutation tools are disabled.

// Source: https://github.com/janhq/jan | License: Apache-2.0 | Copyright 2025 Menlo Research
// Provided via justclaw.it.com; keep this notice with the code.
//! Read-only plan mode. A first-class run mode for safe repository exploration
//! and plan review: the agent may read/search/list/read-file, do web research,
//! and read memory/skills, but every mutation-capable tool (write/edit/bash,
//! memory_write/skill_write, MCP, subagent dispatch) is blocked at the core
//! dispatcher and never advertised to the model. Enforcement is authoritative;
//! the prompt addendum below is only defense in depth.

use serde::{Deserialize, Serialize};

/// Persisted per-session run mode. `Normal` is the default (normal permission
/// gate / auto-approval); `Plan` is read-only by enforcement.
#[derive(

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key