You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,6 +157,7 @@ If no new rule is detected -> do not update the file.
157
157
- Never add fake fallback calls/mocks in production paths; unsupported runtime cases must fail explicitly with actionable errors.
158
158
- No magic literals: extract constants/enums/config values.
159
159
- In SDK production code, do not inline string literals in implementation logic; promote them to named constants (paths, env vars, command names, switch/comparison tokens) for reviewability and consistency.
160
+
- Outside constant declarations themselves, do not use inline string literals in C# code; every implementation/test string value must be routed through a named constant for consistency during review and refactoring.
160
161
- Do not inline filesystem/path segment string literals in implementation logic; define named constants and reuse them.
161
162
- Never override or silently mutate explicit user-provided Claude Code CLI settings (for example `web_search=disabled`); pass through user intent exactly.
162
163
- Protocol and CLI string tokens are mandatory constants: never inline literals in parsing, mapping, or switch branches.
@@ -165,6 +166,7 @@ If no new rule is detected -> do not update the file.
165
166
- Keep public API and naming aligned with package/namespace `ManagedCode.ClaudeCodeSharpSDK`.
166
167
- Solution/workspace file naming must use `ManagedCode.ClaudeCodeSharpSDK` prefix for consistency with package identity.
167
168
- Keep package/version metadata centralized in `Directory.Build.props`; avoid duplicating version structure or release metadata blocks in individual `.csproj` files unless a project-specific override is required.
169
+
- Do not bump package/release version for PRs that only change tests or submodule-backed test/reference material and do not touch SDK production projects (`ClaudeCodeSharpSDK*` runtime code); merge/commit such changes without creating a new release version.
168
170
- Never hardcode guessed Claude/Anthropic model names in tests, docs, or defaults; verify supported models and active default via Claude Code CLI first.
169
171
- Before setting or changing any `Model` value, read available models and current default from the local `claude` CLI in the same environment/account and only then update code/tests/docs.
170
172
- Model identifiers in code/tests must come from centralized constants or a shared resolver helper; do not inline model string literals repeatedly.
0 commit comments