Skip to main content

Module context

Module context 

Source
Expand description

Context building for task execution.

Assembles all contextual information needed for the agent prompt:

  • Task-specific context files
  • Parent task context (for subtasks)
  • Project instructions (CLAUDE.md, AGENTS.md, README.md)
  • Skills documentation
  • Repository file tree
  • Git diff (for retries)
  • Issue comments

Structs§

TaskContext
All assembled context for a task execution.

Functions§

build_full_context
Build the full task context.
build_git_diff
Build git diff from base branch (only for retries).
build_git_log
Build git log from base branch to HEAD. Shows commit history for the feature branch.
build_memory_context
Build memory context from previous attempts. Returns formatted memory context string and the raw memory entries.
build_parent_context
Build parent task context for subtasks.
build_project_instructions
Build project instructions from CLAUDE.md, AGENTS.md, README.md.
build_repo_tree
Build repository file tree (git ls-files, capped at 200 lines).
build_skills_docs
Build skills documentation for selected skills.
fetch_issue_comments
Fetch issue comments for agent context.
load_pr_review_context
Load PR review context from store.
load_task_context
Load task-specific context from context file.