prompts
code_context_agent.agent.prompts ¶
Agent prompt rendering from Jinja2 templates.
This module renders system prompts and steering fragments from Jinja2 templates in src/code_context_agent/templates/.
get_prompt ¶
Render the unified system prompt.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mode | str | Analysis mode ("standard" or "full"). | 'standard' |
Returns:
| Type | Description |
|---|---|
str | Rendered system prompt string from system.md.j2 |
Source code in src/code_context_agent/agent/prompts.py
get_steering_content ¶
Render a steering prompt fragment by name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name | str | Fragment name (e.g., "size_limits", "conciseness", "anti_patterns", "tool_efficiency", "graph_exploration") | required |
Returns:
| Type | Description |
|---|---|
str | Rendered steering content string |