Skip to content

feat(opencode): Nested custom tool files#15158

Open
dbpolito wants to merge 2 commits intoanomalyco:devfrom
dbpolito:opencode_nested_custom_tools
Open

feat(opencode): Nested custom tool files#15158
dbpolito wants to merge 2 commits intoanomalyco:devfrom
dbpolito:opencode_nested_custom_tools

Conversation

@dbpolito
Copy link
Contributor

Issue for this PR

Closes #15155

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Allow custom tools to be organized in subdirectories under .opencode/tools/. Tools in folders are automatically prefixed with the folder name (e.g., .opencode/tools/github/pr.ts becomes github_pr, and index.ts in a folder uses the folder name only).

This enables better organization of related tools without name collisions.

How did you verify your code works?

Added test coverage

Screenshots / recordings

image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions
Copy link
Contributor

Hey! Your PR title Opencode nested custom tools doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions github-actions bot added needs:title contributor needs:compliance This means the issue will auto-close after 2 hours. labels Feb 26, 2026
@dbpolito dbpolito changed the title Opencode nested custom tools feat(opencode): Nested custom tool files Feb 26, 2026
@github-actions github-actions bot removed needs:compliance This means the issue will auto-close after 2 hours. needs:title labels Feb 26, 2026
@github-actions
Copy link
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Support custom tools in subdirectories with folder prefix naming

1 participant