fabro/crates/agent/src
Bryan Helmkamp 915cdd2a1f Build system prompt once in initialize() instead of per-input
Moves build_system_prompt() from run_single_input() to initialize(),
storing the result as a Session field. This makes the prompt's
static-ness explicit and guarantees Anthropic cache breakpoint 1
always hits. Internal methods (build_request, check_context_usage,
compact_context, estimate_token_count) no longer take a system_prompt
parameter.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 19:40:48 -05:00
..
profiles Implement web_search tool using Brave Search API 2026-02-27 19:36:38 -05:00
cli.rs Consolidate redact and terminal crates into util 2026-02-27 18:44:19 -05:00
config.rs Add skills system for reusable prompt templates 2026-02-25 11:32:07 -05:00
docker_env.rs Add execution environment and setup command observability events 2026-02-26 22:09:41 -05:00
error.rs Rename unified-llm crate to llm 2026-02-23 09:22:14 -05:00
event.rs Add LLM conversation events to PipelineEvent for progress.ndjson observability 2026-02-24 14:08:22 -05:00
execution_env.rs Add execution environment and setup command observability events 2026-02-26 22:09:41 -05:00
history.rs Simplify LLM crate: constructors, shared HTTP/SSE infra, Deref delegation 2026-02-27 19:12:33 -05:00
lib.rs Add execution environment and setup command observability events 2026-02-26 22:09:41 -05:00
local_env.rs Add execution environment and setup command observability events 2026-02-26 22:09:41 -05:00
loop_detection.rs Revert clippy config to defaults, remove all pedantic/nursery/cargo lint suppressions 2026-02-24 09:42:28 -05:00
main.rs Merge agent-cli crate into agent as cli module 2026-02-23 11:14:25 -05:00
project_docs.rs Rename coding-agent-loop crate to agent 2026-02-23 09:17:48 -05:00
provider_profile.rs Add skills system for reusable prompt templates 2026-02-25 11:32:07 -05:00
read_before_write_env.rs Add read-before-write guardrail for ExecutionEnvironment 2026-02-25 10:24:58 -05:00
session.rs Build system prompt once in initialize() instead of per-input 2026-02-27 19:40:48 -05:00
skills.rs Switch skills to directory-per-skill format (skills/<name>/SKILL.md) 2026-02-25 13:42:53 -05:00
subagent.rs Wire subagent tools into production session creation 2026-02-27 18:23:09 -05:00
test_support.rs Fix pre-existing lint warnings 2026-02-27 12:09:48 -05:00
tool_registry.rs Replace abort_flag with CancellationToken for abort-aware process cancellation 2026-02-23 18:10:10 -05:00
tools.rs Implement web_search tool using Brave Search API 2026-02-27 19:36:38 -05:00
truncation.rs Revert clippy config to defaults, remove all pedantic/nursery/cargo lint suppressions 2026-02-24 09:42:28 -05:00
types.rs Add missing data to agent events and cost tracking in pipeline logs 2026-02-25 17:17:13 -05:00