GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(automation): give automation tools their own namespace by rekram1-node · Pull Request #65001 · anomalyco/opencode

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Nov 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Agents couldn't find the automation tools when they needed a schedule. They lived under tools.opencode, weren't shown in the Code Mode catalog, and their description never said "schedule", "cron" or "repeat", so searching for those words missed them. This moves them into their own automation namespace and leads the descriptions with what they're for.

- tools.opencode.automation_create / automation_list / automation_pause / automation_resume / automation_delete
+ tools.automation.create / list / pause / resume / delete
  • The automation namespace gets its own description, so it shows as a top-level entry in the catalog: "Schedule recurring or one-off jobs (cron jobs, timers, reminders). Each one runs a prompt or Code Mode action at a time, every interval, on a cron or when a connected MCP server pushes an event. Useful for reminders, following up on something later, recurring checks and reports, and reacting to outside events." It uses the words people search for and lists what the tools are for.
  • create's description now starts with "Schedule a recurring or one-off job: a prompt or Code Mode action that runs once at a time, every interval, on a cron or on a connected MCP server's push event, until it's done or reaches expires", and notes that a code action runs without a model, for cheap checks.
  • Direct tool names don't change: the namespace prefix keeps them automation_create etc., which is what they already were minus opencode_. The unattended-grant denylist in automation/code.ts and the /automation command text follow the new paths.

Trade-off: Code Mode scripts and automation code that call tools.opencode.automation_* stop resolving. Those calls are agent-written and short-lived, so I didn't add aliases. Stored automations can't call create, pause, resume or delete (they're on the unattended denylist), but a stored code automation that calls tools.opencode.automation_list would stop resolving.

Checked: rebased onto dev; test/tool-automation.test.ts, test/automation.test.ts and test/codemode pass (81), bun typecheck in packages/core and bun run check pass. The tools aren't pinned, so the catalog's inline budget is unchanged.


Added by the opencode bot (AI-generated).

Public API: renames the experimental automation tools: Code Mode tools.opencode.automation_* → tools.automation.*, direct/permission names opencode_automation_* → automation_* (not backwards compatible for scripts or permission rules using the old names)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
opencodejr[bot]
opencodejr Bot reviewed Nov 19, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The move works as described. I printed the Code Mode catalog with automations enabled on the base and on this branch: the new automation namespace shows up with its description and all five tools are pinned. The automation and codemode tests pass (84) and tsc is clean.

Public API: experimental and agent-facing only.

  • Code Mode paths change from tools.opencode.automation_{create,list,pause,resume,delete} to tools.automation.{create,list,pause,resume,delete}.
  • Direct tool names, which are also the permission keys, change from opencode_automation_* to automation_*.
  • This is not backwards compatible: permission rules that name opencode_automation_* stop matching. No HTTP, SDK or config schema changes.

Concerns:

  1. Pinning all five tools costs about 2.2k tokens, which is more than the catalog's whole 2k inline budget. Once automations are on, every other namespace loses its inline listings (inline comment).
  2. The description says stored automations can't call these tools because they're on the denylist, but automation.list isn't on it. A stored code automation that calls tools.opencode.automation_list would stop resolving and fail as an unknown tool after this change. That's probably acceptable while automations are experimental, but it's worth a sentence in the description.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/core/src/tool/plugin/automation.ts Outdated
input: Automation.Request,
output: View,
options: { namespace: "opencode", codemode: true },
options: { namespace: "automation", codemode: { pinned: true } },

@opencodejr opencodejr Bot Nov 19, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pinning all five tools costs more than the whole inline catalog budget. Their listings come to about 8,880 characters (create alone is 4,261), roughly 2,220 tokens, against INLINE_BUDGET = 2_000 in codemode/catalog.ts. summarize() subtracts pinned listings before it selects anything else, so once automations are enabled no unpinned tool in any namespace (MCP servers, the rest of opencode, …) gets an inline listing, and every request carries the extra ~2k tokens.

The namespace description already makes the namespace easy to find. Could you pin only create, or none, and leave list/pause/resume/delete to search?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
opencodejr[bot]
opencodejr Bot reviewed Nov 19, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new commits only rewrite the description text of the automation namespace and of create; I found nothing new to flag in them. The automation and Code Mode tests still pass (84). They don't change the public API.

The earlier point about pinning still stands: all five tools are pinned, and together they use more than the catalog's 2k-token inline budget (open thread).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
rekram1-node added 4 commits November 20, 2026 01:09
@rekram1-node
feat(automation): move automation tools into their own pinned automat…
2b8d6be
…ion namespace
@rekram1-node
automation: say when to schedule, and name the words agents search for
4ca9c14
@rekram1-node
automation: describe what the tools are for
3f1fd8b
@rekram1-node
fix(automation): don't pin the automation tools
8cff419
@rekram1-node
rekram1-node force-pushed the feat/automation-namespace branch from 449e630 to 8cff419 Compare November 20, 2026 07:10
@rekram1-node rekram1-node changed the title feat(automation): give automation tools their own pinned namespace feat(automation): give automation tools their own namespace Nov 20, 2026
opencodejr[bot]
opencodejr Bot reviewed Nov 20, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tools are now unpinned, which addresses my earlier point about the catalog's inline budget. The automation and Code Mode tests pass (84) and tsc is clean after the rebase, and nothing still refers to the old opencode.automation_* names. No new concerns.

Public API: the same as in my earlier review. Code Mode tools.opencode.automation_* becomes tools.automation.*, and the direct and permission names opencode_automation_* become automation_*. This is not backwards compatible for scripts or permission rules that use the old names.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rekram1-node
fix(automation): say when to use the automation tools and fix the com…
a52dace
…mand's tool paths
opencodejr[bot]
opencodejr Bot reviewed Nov 20, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit only changes text and looks fine. The automation and Code Mode tests pass (84) and tsc is clean. It doesn't change the public API.

One small gap: the /automation command now names only Code Mode paths, so an agent without Code Mode is told about tools it doesn't have (inline comment).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/core/src/plugin/command/automation.txt Outdated
Use the tools in the `automation` namespace. They see every automation in this session's project.

- To create one, call `automation_create` with a short `name`, a `trigger` and an `action`.
- To create one, call `tools.automation.create` with a short `name`, a `trigger` and an `action`.

@opencodejr opencodejr Bot Nov 20, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When execute is denied by permissions, Code Mode is off (Tool.codeModeAvailable) and these tools are offered as automation_create, automation_list, … (and opencode_list_mcp_events). Without Code Mode, this text names tools the agent doesn't have. opencode.ts words its system hint differently depending on whether execute is available; could this command mention the direct names as well, e.g. "tools.automation.create (or automation_create)"?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rekram1-node
fix(automation): keep the command's list_mcp_events reference as it was
650a56f
opencodejr[bot]
opencodejr Bot reviewed Nov 20, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new commit only puts back the plain list_mcp_events name in the /automation command text. It's a text change and doesn't touch the public API. Nothing new to flag.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
rekram1-node added 2 commits November 20, 2026 07:58
@rekram1-node
fix(automation): shorten the /automation prompt
3a9b9f3
@rekram1-node
fix(automation): shorten create's description
cc40f80
@rekram1-node
rekram1-node merged commit 2002222 into dev Nov 20, 2026
10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
rekram1-node deleted the feat/automation-namespace branch November 20, 2026 14:05
huuhabn pushed a commit to huuhabn/opencode that referenced this pull request Nov 20, 2026
@rekram1-node Huu Ha
feat(automation): give automation tools their own namespace (anomalyc…
66baea4
…o#65001)
@Edo771977 Edo771977 mentioned this pull request Nov 21, 2026
chore: merge upstream/dev into the fork Edo771977/opencode#98
Merged
@shuv1337 shuv1337 mentioned this pull request Nov 23, 2026
chore(sync): merge upstream dev 92e28580f1 and prepare v2.4.1-shuv.1 shuv1337/shuvcode#511
Merged
@BrewTestBot BrewTestBot mentioned this pull request Nov 23, 2026
opencode 2.4.0 Homebrew/homebrew-core#327368
Merged
@amrkmn amrkmn mentioned this pull request Nov 23, 2026
opencode 2.4.0 amrkmn/homebrew-tap#1251
Closed
1 task
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
feat: opencode release v2.4.0 sprisa/opencode-server#95
Merged
@kobzevvv kobzevvv mentioned this pull request Nov 24, 2026
chore(upstream): порт v2.4.1 — 67 в порт, 38 на решение gpt-mem/opencode-mem#223
Open
4 tasks
@scottames-github-bot scottames-github-bot Bot mentioned this pull request Nov 27, 2026
chore(deps): update ⬆️ mise-packages scottames/dots#1181
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@rekram1-node
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.