Home

anomalyco/opencode

Status:Indexed
Analyzed 4d ago40K+ starsTypeScript

The open source coding agent.

Back to Pull Requests
#6852Open
Simple Review

feat: add ctx.log() for custom tools

by elithrarJan 4, 2026
View on GitHub

Summary

This pull request adds a `ctx.log()` function for custom tools in OpenCode. This allows custom tools to log messages to OpenCode's internal log files instead of potentially leaking output to stdout, improving debugging and preventing unintended console output.

Changes

+55 additions-2 deletions

Impact Areas

Custom ToolsLoggingDeveloper ExperienceDocumentation