Commit Graph

2 Commits

  • Allow extensions to modify system prompt in before_agent_start
    - Add systemPrompt to BeforeAgentStartEvent so extensions can see current prompt
    - Change systemPromptAppend to systemPrompt in BeforeAgentStartEventResult for full replacement
    - Extensions can now chain modifications (each sees the result of previous)
    - Update ssh.ts to replace local cwd with remote cwd in system prompt
    - Update pirate.ts, claude-rules.ts, preset.ts to use new API
    
    fixes #575
  • feat(coding-agent): add pluggable operations for remote tool execution
    Adds optional operations parameter to create*Tool functions enabling
    delegation to remote systems (SSH, containers, etc.):
    
    - ReadOperations: readFile, access, detectImageMimeType
    - WriteOperations: writeFile, mkdir
    - EditOperations: readFile, writeFile, access
    - BashOperations: exec (with streaming, signal, timeout)
    
    Add ssh.ts example demonstrating --ssh flag for remote execution.
    Built-in renderers used automatically for overrides without custom renderers.
    
    fixes #564