mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-19 14:44:44 +01:00
fix: preserve review inputs and classify native eval evidence
This commit is contained in:
1 parent
1e2875c2a7
commit
bd2e6762a7
39 files changed
+1712
-44
No files matched your search
@@ -47,6 +47,16 @@ export function claudeCodeArgs(options: Pick<ClaudeCodeOptions, 'access' | 'resu
|
||||
'--settings', '{"disableAllHooks":true}',
|
||||
'--permission-mode', 'default',
|
||||
];
|
||||
if (options.access === 'none') {
|
||||
// The CLI's default coding prompt can otherwise elicit simulated tool
|
||||
// transcripts even with an empty tool list. State the actual capability
|
||||
// separately from the caller's unmodified prompt; missing context stays missing.
|
||||
args.push('--append-system-prompt',
|
||||
'No tools are available in this invocation. Analyze only the supplied prompt and review material. '
|
||||
+ 'Do not attempt or simulate tool calls, command output, repository inspection, or file changes. '
|
||||
+ 'Return your findings and the conclusion requested by the caller directly. '
|
||||
+ 'If essential context is missing, identify it explicitly instead of inventing observations.');
|
||||
}
|
||||
if (options.access === 'read-only') args.push('--allowedTools', 'Read,Grep,Glob');
|
||||
if (options.resume) args.push('--resume', options.resume);
|
||||
return args;
|
||||
|
||||
Reference in new issue
Block a user