-
Notifications
You must be signed in to change notification settings - Fork 8.6k
CodeValidator for CodeAgent's generated code #3514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
CodeValidator for CodeAgent's generated code #3514
Conversation
…on for code conversion
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.
1 issue found across 9 files
Prompt for AI agents (all 1 issues)
Understand the root cause of the following 1 issues and fix them.
<file name="browser_use/code_use/validator/system_prompt.md">
<violation number="1" location="browser_use/code_use/validator/system_prompt.md:66">
`document.title` and `document.URL` are always defined (they default to a string even during page load), so stating they may be `undefined` provides incorrect guidance. Please adjust the wording to reflect that they may be empty or stale rather than undefined.</violation>
</file>
React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.
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.
No issues found across 4 files
The goal is to create an LLM validator that cleans the code, export it to other frameworks / languages and ideally run it in a small container to check bugs.
For code cleaning, sometimes multiple versions are required for the CodeAgent to generate the code so it is good to have a validator that makes sure we don't have multiple versions for getting the same data.
Summary by cubic
Adds an LLM-powered CodeValidator with sandbox execution and new session export options (Python, Playwright, TypeScript) to improve reliability and make sharing automation scripts easier.
New Features
Migration
Written for commit fd52684. Summary will update automatically on new commits.