claude-agent 0.2.25

Rust SDK for building AI agents with Anthropic's Claude - Direct API, no CLI dependency
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! System prompts based on Claude Code CLI.
//!
//! Structure:
//! - `identity`: CLI identity (required for CLI OAuth authentication)
//! - `base`: Core behavioral guidelines (always included)
//! - `coding`: Software engineering instructions (when keep-coding-instructions=true)
//! - `environment`: Runtime environment block (always included)

pub mod base;
pub mod coding;
pub mod environment;
pub mod identity;

pub use base::{BASE_SYSTEM_PROMPT, MCP_INSTRUCTIONS, TOOL_USAGE_POLICY};
pub use coding::{CODING_INSTRUCTIONS, PR_PROTOCOL, coding_instructions, git_commit_protocol};
pub use environment::environment_block;
pub use identity::CLI_IDENTITY;