The /goal command lets sessions keep working until a reviewer confirms the objective is met. Direct importers of the AI package must also handle the removed image providers.
Key takeaways · AI-distilled
v2.2.1 adds opt-in scheduled prompts through a /schedule command, AI agentAn AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.Full definition → tools and the experimental.schedules config, and the SDK gains client.experimental.schedule methods to create, list, get, pause, resume and delete them.
In @opencode/ai, five legacy entry points are dropped in favor of nested paths (for example ./providers/amazon-bedrock/mantle), and each provider's configure() input type is renamed Config. The CLI, Desktop and HTTP API are unaffected.
A new experimental.idle Session agent hookA script the harness runs automatically at a fixed point in an agent's loop — before a tool call, after an edit, on session start.Full definition → lets plugins continue work before a session goes idle, and the release notes tie it to the same change that added /goal.
Provider throttling is now retried instead of being reported as a context windowThe maximum amount of text a model can consider at once — its working memory for the current conversation or task.Full definition → overflow, and opencode keeps more context headroom when fitting tool output into the window.
Experimental SDK client methods now live under client.experimental. The old locations remain as deprecated aliases only until the next minor release, so callers should migrate.
Terms in this piece · Glossary
AI agent — An AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
agent hook — A script the harness runs automatically at a fixed point in an agent's loop — before a tool call, after an edit, on session start.
context window — The maximum amount of text a model can consider at once — its working memory for the current conversation or task.