Workers AI, Clef and agent proposals
This page describes the optional AI features in Cloudflare-native Golf: Clef advice, code proposals, private review drafts and search by meaning. It is for reviewers who use the results and administrators who control model access and limits.
AI is optional. Ordinary repository work does not require an AI call. Advice and proposed code are returned for a person to review.
Editable Mermaid source · All architecture diagrams.
Workers AI runs models on the same platform as Golf’s code. The agentic mode roadmap plans to use it, through the existing model selection, to summarize what each agent pull request is for and what it risks. That work is planned, not available.
Clef advice
Golf can ask @cf/cloudflare/clef for advice based on pull request metadata, such as its title and description. This path does not send the source tree. It cannot approve or merge a change. A hosted advice request completed successfully on October 14.
Code proposals
A separate container runs the configured coding agent in its own Artifacts Git copy. Private R2 stores the input and results. The reviewed test used @cf/zai-org/glm-5.3-flash; its proposal added a function and passed tests.
That approved example can edit only calc.py in the playground repositories. It does not establish support for arbitrary imported projects.
Each job checks source and permission, limits model calls and network access, and has an expiry and cleanup process. Completing a proposal leaves the main repository unchanged.
Request controls
AI is off until an operator runs Alchemy enable-ai (optionally with --agent-path), then renew-deploy and deploy. Search by meaning additionally needs enable-search. See Cloudflare setup. The AI Gateway that setup creates requires authentication and disables prompt/response logging and caching. It is configured for 60 requests/minute and a $5 daily limit.
Enforcement of these limits has not been tested. The daily limit is not an account-wide billing cap.
A connected model service may still reject or fail a request. Golf reports the failure rather than inventing a result or silently choosing another model. Portable coding-agent accounts have separate setup and support.
Private review drafts and model settings
The newer review-draft feature can ask a selected model to read a pull request diff and suggest a summary and line comments. The draft stays private until the person chooses to publish a review. An October 14 hosted GLM 5.3 draft completed successfully.
A draft with no findings does not mean approval.
Administrators can select allowed models for each use case and view Golf’s recorded usage. Clef label suggestions and release-note drafts also have implementations and local tests; live-model testing for those paths remains open.
Search by meaning
An administrator can index a repository using Workers AI embeddings: numerical descriptions of content used for similarity search. Vectorize searches those descriptions. Each query checks current repository permission and reads live excerpts; results identify the indexed commit.
A hosted October 14 test indexed eight files into ten chunks with @cf/qwen/qwen3-embedding-0.6b and returned ranked code excerpts. Code and issue/pull request indexing is implemented. Broader live issue-search coverage, larger repositories, indexing costs and gateway limits still need testing.