Code

Code that works, from a script to a full project

The Code agent writes, debugs, reviews and explains code, writes your SQL queries and scaffolds whole projects. It works like a developer: it writes, runs, tests and fixes until it works.

What it can do

  1. [01]Write code or a website
  2. [02]Find the cause of a bug and fix it
  3. [03]Review code: bugs and security holes
  4. [04]Write SQL queries and schemas
  5. [05]Scaffold a full project: accounts, database, payments

A secure Express API with authentication, and its tests.

Code

auth.ts

export async function login(email, password) {
const user = await findUser(email);
if (!user || !(await verify(user, password))) {
throw new AuthError("Invalid credentials");
}
return createSession(user.id);
}

What you get

Code ready to copy, with an explanation matched to your level and links to the relevant documentation. For a website, you see the preview page by page. For a review, the issues ranked from worst to least, with the fix.

How to use it

Describe what you want, paste an error or your code, and attach files or screenshots if needed.

Good to know

Every piece of code runs in an isolated environment before it ships. In a review, every issue is challenged by a second reviewer.

Example requests
“A secure Express API with authentication, and its tests.”

Code

Frequently asked questions [04]

Try the Code agent

Open to everyone during the beta, no credit card.