Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/torq_cli/adapters/candidate_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ def __call__(self, prompt: str) -> CandidateProviderCommand:
"--tools",
"",
"--no-session-persistence",
"--permission-mode",
"plan",
"--disable-slash-commands",
"--safe-mode",
"--no-chrome",
Expand Down
2 changes: 0 additions & 2 deletions src/torq_cli/adapters/chat_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ def __call__(
"--tools",
"",
"--no-session-persistence",
"--permission-mode",
"plan",
"--disable-slash-commands",
"--safe-mode",
"--no-chrome",
Expand Down
2 changes: 1 addition & 1 deletion src/torq_cli/adapters/live_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def _claude_compatible(
(
self.claude_binary, "-p", "--output-format", "json", "--model", model,
"--json-schema", json.dumps(schema, separators=(",", ":")),
"--tools", "", "--no-session-persistence", "--permission-mode", "plan",
"--tools", "", "--no-session-persistence",
"--disable-slash-commands", "--setting-sources", "",
"--strict-mcp-config", "--mcp-config", '{"mcpServers":{}}',
),
Expand Down
4 changes: 3 additions & 1 deletion src/torq_cli/application/candidate_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,9 @@ def _prompt(self, plan: Mapping[str, Any], input_bundle: Mapping[str, Any], plan
"Return only one JSON object with no markdown. Tools and filesystem access are unavailable. "
"The contract field must be exactly torq-candidate-output-v1. The exact schema is "
"{contract,plan_hash,input_hash,operations}; each operation is "
"{operation:create|replace,path,base_hash,content}. Produce at least one changed UTF-8 file "
"{operation:create|replace,path,base_hash,content}. For create (a path not present in "
"input.files) base_hash must be JSON null. For replace, base_hash must be the exact "
"content_hash string of that path from input.files. Produce at least one changed UTF-8 file "
"and only paths in allowed_output_paths.\n"
+ canonical_json({"plan_hash": plan_hash, "input_hash": input_hash, "goal": plan["goal"], "allowed_output_paths": plan["output_paths"], "input": input_bundle})
)
Expand Down
Loading