Title: feat: add systemPromptFile config key for system prompt replacement by rock-solid-sites · Pull Request #57 · lessweb/deepcode-cli · GitHub
Open Graph Title: feat: add systemPromptFile config key for system prompt replacement by rock-solid-sites · Pull Request #57 · lessweb/deepcode-cli
X Title: feat: add systemPromptFile config key for system prompt replacement by rock-solid-sites · Pull Request #57 · lessweb/deepcode-cli
Description: Adds a new optional config key systemPromptFile that, when set, replaces SYSTEM_PROMPT_BASE with the contents of the file at the given path. Tool docs, runtime context, AGENTS.md, and matched skills continue to load additively after the replacement prompt. Motivation: This enables operators to use deepcode-cli with custom behavioral prompts (e.g., for specialized workflows, team conventions, or experimental prompt designs) without modifying source. Tool calling and existing additive layers are preserved. Implementation: New optional systemPromptFile?: string field in DeepcodingSettings and ResolvedDeepcodingSettings Resolution follows the existing precedence: project settings override user settings, env vars override both getSystemPrompt() in src/prompt.ts reads the file and uses its content in place of SYSTEM_PROMPT_BASE; tool docs and runtime context still append after Fail-loud on file read failure (throws with the resolved path and OS error) — silent fallback to default would hide configuration bugs Testing: Typecheck, lint, and bundle all pass Existing test suite passes (except pre-existing platform-specific failures unrelated to this change) Manual verification: with a test file containing "always start responses with TACOS", confirmed the model produces TACOS- prefixed responses and tool calls still work; with a nonexistent path, confirmed the fail-loud error fires Open to feedback on naming, fallback behavior, or whether a CLI flag (--system-prompt-file) should accompany the config key.
Open Graph Description: Adds a new optional config key systemPromptFile that, when set, replaces SYSTEM_PROMPT_BASE with the contents of the file at the given path. Tool docs, runtime context, AGENTS.md, and matched skill...
X Description: Adds a new optional config key systemPromptFile that, when set, replaces SYSTEM_PROMPT_BASE with the contents of the file at the given path. Tool docs, runtime context, AGENTS.md, and matched skill...
Opengraph URL: https://github.com/lessweb/deepcode-cli/pull/57
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:657c8a17-6988-e314-8b79-186143ad4216 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BD7A:366857:27EEF95:36B1975:6A4EF31E |
| html-safe-nonce | 561b55bec2d1208045e48411c3d7eba8b3302895551bcddadbe8f716b11ecab2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDdBOjM2Njg1NzoyN0VFRjk1OjM2QjE5NzU6NkE0RUYzMUUiLCJ2aXNpdG9yX2lkIjoiNDU5MjgwNTQxMjY5NzIwNzU4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 53653eb81d118750bfa10b49fd6ae579d349f94257e6c871c1c7be7781b91ed1 |
| hovercard-subject-tag | pull_request:3679145510 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/57/files |
| twitter:image | https://avatars.githubusercontent.com/u/282379644?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/282379644?s=400&v=4 |
| og:image:alt | Adds a new optional config key systemPromptFile that, when set, replaces SYSTEM_PROMPT_BASE with the contents of the file at the given path. Tool docs, runtime context, AGENTS.md, and matched skill... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git |
| octolytics-dimension-user_id | 118287711 |
| octolytics-dimension-user_login | lessweb |
| octolytics-dimension-repository_id | 1223512305 |
| octolytics-dimension-repository_nwo | lessweb/deepcode-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1223512305 |
| octolytics-dimension-repository_network_root_nwo | lessweb/deepcode-cli |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width