Skip to content

Add WriteFileTool for saving conversation content#28

Merged
IreneXY merged 1 commit intomainfrom
032902
Apr 4, 2026
Merged

Add WriteFileTool for saving conversation content#28
IreneXY merged 1 commit intomainfrom
032902

Conversation

@IreneXY
Copy link
Copy Markdown
Member

@IreneXY IreneXY commented Mar 30, 2026

Summary

  • Add WriteFileTool in skewr_cli (CLI-specific, validates pluggable tool design):
    • LLM can save conversation summaries, notes, or any text to .md files
    • LLM decides file name and content
    • Auto-creates parent directories
    • Returns concise File saved: <path> message to guide LLM response
  • Register WriteFileTool alongside WeatherTool in CLI entry point

Test plan

  • dart analyze passes
  • dart format --set-exit-if-changed . passes
  • dart test — skewr_cli: 15 tests passed (5 new WriteFileTool tests)
  • Manual test: CLI saves conversation summary to file

🤖 Generated with Claude Code

Co-Authored-By: Claude Code noreply@anthropic.com

@IreneXY IreneXY changed the title Add WriteFileTool and fix stdin UTF-8 crash Add WriteFileTool for saving conversation content Apr 4, 2026
@IreneXY IreneXY merged commit 4eae993 into main Apr 4, 2026
1 check passed
@IreneXY IreneXY deleted the 032902 branch April 4, 2026 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants