Skip to content

Commit 7561647

Browse files
edenreichclaude
andcommitted
chore: Update Infer CLI configuration
- Add claude_code integration settings - Update storage backend from sqlite to jsonl - Add computer_use tool configuration - Expand agent system prompts with GUI vs terminal tool guidance - Add new keyboard shortcuts for thinking toggle and navigation - Update protected paths and sandbox directories - Add web server configuration options Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b38f763 commit 7561647

File tree

2 files changed

+156
-4
lines changed

2 files changed

+156
-4
lines changed

.infer/.gitignore

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.infer/config.yaml

Lines changed: 154 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ gateway:
1717
- groq/playai-tts
1818
- groq/playai-tts-arabic
1919
vision_enabled: true
20+
claude_code:
21+
enabled: false
22+
cli_path: claude
23+
timeout: 600
24+
max_output_tokens: 32000
25+
thinking_budget: 10000
26+
max_turns: 10
2027
client:
2128
timeout: 200
2229
retry:
@@ -36,14 +43,20 @@ client:
3643
logging:
3744
debug: false
3845
dir: ""
46+
console_output: ""
3947
tools:
4048
enabled: true
4149
sandbox:
4250
directories:
4351
- .
4452
- /tmp
53+
- .infer/tmp
4554
protected_paths:
46-
- .infer/
55+
- .infer/config.yaml
56+
- .infer/*.db
57+
- .infer/shortcuts/
58+
- .infer/agents.yaml
59+
- .infer/mcp.yaml
4760
- .git/
4861
- '*.env'
4962
bash:
@@ -137,7 +150,7 @@ image:
137150
quality: 75
138151
convert_jpeg: true
139152
export:
140-
output_dir: .infer
153+
output_dir: .infer/tmp
141154
summary_model: ""
142155
agent:
143156
model: ""
@@ -164,6 +177,41 @@ agent:
164177
- The system supports up to 5 concurrent tool executions by default
165178
- This reduces back-and-forth communication and significantly improves performance
166179
180+
COMPUTER USE TOOLS:
181+
You have TWO ways to interact with the system:
182+
1. Direct terminal tools (PRIMARY): Bash, Read, Write, Edit, Grep, etc.
183+
2. GUI automation tools (FALLBACK): MouseMove, KeyboardType, MouseClick, GetLatestScreenshot
184+
185+
CRITICAL: ALWAYS prefer direct terminal tools over GUI automation when possible.
186+
187+
When to use DIRECT tools (preferred):
188+
- Reading files: Use Read tool, NOT KeyboardType to open an editor
189+
- Writing files: Use Write/Edit tools, NOT GUI text editor
190+
- Running commands: Use Bash tool, NOT KeyboardType in a terminal window
191+
- Searching code: Use Grep tool, NOT opening files via GUI
192+
- File operations: Use Bash/Read/Write, NOT GUI file manager
193+
194+
When to use GUI tools (only when necessary):
195+
- Interacting with graphical applications that have no CLI equivalent
196+
- Testing UI behavior or visual elements
197+
- Automating tasks that MUST be done through a GUI
198+
- Taking screenshots to inspect visual state
199+
200+
Why prefer direct tools:
201+
- 10-100x faster execution (no GUI rendering delays)
202+
- More reliable (no window focus issues, no timing problems)
203+
- Precise output (structured data, not visual interpretation)
204+
- Parallel execution support (batch multiple operations)
205+
- Lower resource usage (no display server overhead)
206+
207+
Example - WRONG approach:
208+
<tool>MouseMove(x=100, y=200)</tool>
209+
<tool>MouseClick(button="left")</tool>
210+
<tool>KeyboardType(text="cat file.txt")</tool>
211+
212+
Example - CORRECT approach:
213+
<tool>Read(file_path="/path/to/file.txt")</tool>
214+
167215
WORKFLOW:
168216
When asked to implement features or fix issues:
169217
1. Plan with TodoWrite
@@ -244,13 +292,49 @@ agent:
244292
- If accepted, YOU will execute this plan. Make it specific and actionable!
245293
- Call RequestPlanApproval ONLY when your plan is complete and ready
246294
- If you need clarification, ASK - don't guess!
295+
system_prompt_remote: |-
296+
Remote system administration agent. You are operating on a remote machine via SSH.
297+
298+
FOCUS: System operations, service management, monitoring, diagnostics, and infrastructure tasks.
299+
300+
CONTEXT: This is a shared system environment, not a project workspace. Users may be managing servers, containers, services, or general infrastructure.
301+
302+
COMPUTER USE TOOLS:
303+
You have TWO ways to interact with the system:
304+
1. Direct terminal tools (PRIMARY): Bash, Read, Write, Edit, Grep, etc.
305+
2. GUI automation tools (FALLBACK): MouseMove, KeyboardType, MouseClick, GetLatestScreenshot
306+
307+
CRITICAL: ALWAYS prefer direct terminal tools over GUI automation when possible.
308+
309+
When to use DIRECT tools (preferred):
310+
- Reading files: Use Read tool, NOT KeyboardType to open an editor
311+
- Writing files: Use Write/Edit tools, NOT GUI text editor
312+
- Running commands: Use Bash tool, NOT KeyboardType in a terminal window
313+
- Searching code: Use Grep tool, NOT opening files via GUI
314+
- System operations: Use Bash for systemctl, journalctl, docker, etc.
315+
316+
When to use GUI tools (only when necessary):
317+
- Interacting with graphical applications that have no CLI equivalent
318+
- Testing UI behavior or visual elements
319+
- Remote desktop administration tasks that MUST be done through a GUI
320+
321+
Why prefer direct tools:
322+
- 10-100x faster execution (no GUI rendering delays)
323+
- More reliable (no window focus issues, no timing problems)
324+
- Works over SSH without X11 forwarding
325+
- Precise output (structured data, not visual interpretation)
326+
- Lower resource usage (critical for remote systems)
247327
system_reminders:
248328
enabled: true
249329
interval: 4
250330
reminder_text: |-
251331
<system-reminder>
252332
This is a reminder that your todo list is currently empty. DO NOT mention this to the user explicitly because they are already aware. If you are working on tasks that would benefit from a todo list please use the TodoWrite tool to create one. If not, please feel free to ignore. Again do not mention this message to the user.
253333
</system-reminder>
334+
context:
335+
git_context_enabled: true
336+
working_dir_enabled: true
337+
git_context_refresh_turns: 10
254338
verbose_tools: false
255339
max_turns: 50
256340
max_tokens: 8192
@@ -285,7 +369,7 @@ scm:
285369
delete_local_branch: false
286370
storage:
287371
enabled: true
288-
type: sqlite
372+
type: jsonl
289373
sqlite:
290374
path: .infer/conversations.db
291375
postgres:
@@ -300,6 +384,8 @@ storage:
300384
port: 6379
301385
password: ""
302386
db: 0
387+
jsonl:
388+
path: .infer/conversations
303389
conversation:
304390
title_generation:
305391
enabled: true
@@ -352,6 +438,12 @@ chat:
352438
description: toggle raw/rendered markdown
353439
category: display
354440
enabled: true
441+
display_toggle_thinking:
442+
keys:
443+
- ctrl+k
444+
description: expand/collapse thinking blocks
445+
category: display
446+
enabled: true
355447
display_toggle_todo_box:
356448
keys:
357449
- ctrl+t
@@ -382,6 +474,12 @@ chat:
382474
description: cycle agent mode (Standard/Plan/Auto-Accept)
383475
category: mode
384476
enabled: true
477+
navigation_go_back_in_time:
478+
keys:
479+
- esc,esc
480+
description: go back in time to previous message (double ESC)
481+
category: navigation
482+
enabled: true
385483
navigation_page_down:
386484
keys:
387485
- pgdn
@@ -607,3 +705,56 @@ compact:
607705
enabled: true
608706
auto_at: 80
609707
keep_first_messages: 2
708+
web:
709+
enabled: false
710+
port: 3000
711+
host: localhost
712+
session_inactivity_mins: 5
713+
ssh:
714+
enabled: false
715+
use_ssh_config: true
716+
known_hosts_path: ~/.ssh/known_hosts
717+
auto_install: true
718+
install_version: latest
719+
install_dir: ~/.local/bin
720+
servers: []
721+
computer_use:
722+
enabled: false
723+
floating_window:
724+
enabled: true
725+
respawn_on_close: true
726+
position: top-right
727+
always_on_top: true
728+
screenshot:
729+
enabled: true
730+
max_width: 1920
731+
max_height: 1080
732+
target_width: 1024
733+
target_height: 768
734+
format: jpeg
735+
quality: 85
736+
streaming_enabled: true
737+
capture_interval: 3
738+
buffer_size: 5
739+
temp_dir: ""
740+
log_captures: false
741+
show_overlay: true
742+
rate_limit:
743+
enabled: true
744+
max_actions_per_minute: 60
745+
window_seconds: 60
746+
tools:
747+
mouse_move:
748+
enabled: true
749+
mouse_click:
750+
enabled: true
751+
mouse_scroll:
752+
enabled: true
753+
keyboard_type:
754+
enabled: true
755+
max_text_length: 1000
756+
typing_delay_ms: 100
757+
get_focused_app:
758+
enabled: true
759+
activate_app:
760+
enabled: true

0 commit comments

Comments
 (0)