Skip to content

feat(claudecode): add support for custom system prompt configuration#534

Open
hushicai wants to merge 1 commit intochenhg5:mainfrom
hushicai:feature/custom-system-prompt
Open

feat(claudecode): add support for custom system prompt configuration#534
hushicai wants to merge 1 commit intochenhg5:mainfrom
hushicai:feature/custom-system-prompt

Conversation

@hushicai
Copy link
Copy Markdown
Contributor

@hushicai hushicai commented Apr 10, 2026

This PR adds support for customizing the system prompt when using the Claude Code agent.

Changes:

  • Add system_prompt field to ClaudeCode agent configuration
  • Pass --system-prompt to Claude CLI when custom prompt is provided
  • Continue to append cc-connect functionality prompts via --append-system-prompt
  • Update config.example.toml with system_prompt option documentation

This allows users to customize the base system prompt for various agent roles.

- Add system_prompt field to ClaudeCode agent configuration
- Pass --system-prompt to Claude CLI when custom prompt is provided
- Continue to append cc-connect functionality prompts via --append-system-prompt
- Update config.example.toml with system_prompt option documentation

This allows users to customize the base system prompt while preserving
cc-connect's essential functionality awareness.
Copy link
Copy Markdown
Owner

@chenhg5 chenhg5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Custom system prompt via system_prompt config option — passes --system-prompt to Claude CLI, cc-connect system prompt still appended. Clean implementation.

PR: #534

@chenhg5
Copy link
Copy Markdown
Owner

chenhg5 commented Apr 14, 2026

@hushicai Please fix the conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants