Skip to main content

Module builtin

Module builtin 

Source
Expand description

Built-in agent definitions and prompts.

This module exposes the built-in agent catalog plus system-prompt builders used by sessions, Ralph, and swarm execution.

§Examples

let prompt = codetether::agent::builtin::build_system_prompt(std::path::Path::new("."));

Constants§

BUILD_SYSTEM_PROMPT
Raw build-agent system prompt template.
EXPLORE_SYSTEM_PROMPT
Raw explore-agent system prompt template.
PLAN_SYSTEM_PROMPT
Raw plan-agent system prompt template.

Functions§

build_agent
Returns the default full-access build agent profile.
build_plan_system_prompt
Builds the plan-agent prompt for a working directory.
build_system_prompt
Builds the build-agent prompt for a working directory.
explore_agent
Returns the lightweight explore agent profile.
load_agents_md
Loads the closest AGENTS.md at or above start_dir, stopping at the git root.
load_all_agents_md
Loads all AGENTS.md files between start_dir and the git root.
plan_agent
Returns the read-only planning agent profile.