claude-code - 💡(How to fix) Fix [FEATURE] Context File Preloading and Custom Agent Configuration [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54645Fetched 2026-04-30 06:39:59
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Code Example

{
  "name": "project-assistant",
  "prompt": "You are familiar with this project's architecture and coding standards",
  "resources": [
    "file://README.md",
    "file://docs/**/*.md",
    "file://**/*.config.js"
  ]
}
RAW_BUFFERClick to expand / collapse

[FEATURE] Context File Preloading and Custom Agent Configuration

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request

Feature Request

Add support for context file preloading and custom agent configurations, similar to the comprehensive system proposed for GitHub Copilot CLI.

Problem

Currently, Claude Code requires manual context provision for each session. Users working on complex projects must repeatedly provide the same contextual information (project structure, coding standards, documentation) in every new conversation.

Proposed Solution

Implement a configuration system that allows users to:

  • Define custom agents with pre-loaded context from specified files and patterns
  • Set agent-specific prompts and behavior
  • Automatically load project documentation, configuration files, and relevant code
  • Create project-specific and global agent configurations

Reference Implementation

See the detailed specification and use cases in GitHub Copilot CLI Issue #62, which provides a comprehensive design for this exact functionality.

Benefits

  • Eliminates repetitive context setup
  • Enables domain-specific assistance (AWS, Kubernetes, etc.)
  • Improves onboarding for new team members
  • Supports organizational knowledge sharing

Example Use Case

{
  "name": "project-assistant",
  "prompt": "You are familiar with this project's architecture and coding standards",
  "resources": [
    "file://README.md",
    "file://docs/**/*.md",
    "file://**/*.config.js"
  ]
}

This would position Claude Code competitively with other AI coding assistants implementing similar context management features.

extent analysis

TL;DR

Implement a configuration system to support context file preloading and custom agent configurations.

Guidance

  • Review the reference implementation in GitHub Copilot CLI Issue #62 to understand the proposed design and use cases.
  • Define the requirements for custom agent configurations, including pre-loaded context from specified files and patterns.
  • Determine the format for agent-specific prompts and behavior, such as JSON configuration files.
  • Consider the benefits of implementing this feature, including eliminating repetitive context setup and enabling domain-specific assistance.

Example

{
  "name": "project-assistant",
  "prompt": "You are familiar with this project's architecture and coding standards",
  "resources": [
    "file://README.md",
    "file://docs/**/*.md",
    "file://**/*.config.js"
  ]
}

This example configuration file demonstrates how to define a custom agent with pre-loaded context from specified files and patterns.

Notes

The implementation details of the configuration system are not provided, and the reference implementation in GitHub Copilot CLI Issue #62 should be reviewed for more information.

Recommendation

Apply workaround by implementing a basic configuration system to support context file preloading and custom agent configurations, and then refine it based on the reference implementation and user feedback.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Context File Preloading and Custom Agent Configuration [1 participants]