keepcalculator

06 Numbers and Powers

Claude Code vs Codex CLI for Portfolio Landing Pages

Card No. 06·26208 · Updated · Standard formula, shown below

If you are comparing Claude Code and Codex CLI for a portfolio landing page, neither tool can be named the winner without seeing the prompt, project, and result: both can help build one, but the better fit depends on the design brief, repository, and amount of review you are willing to do. The useful comparison is not which product is universally better, but which one follows your requirements and produces a polished, working page in your setup.

What the comparison actually means

Claude Code and Codex CLI are command-line coding agents. They can inspect files in a software project, make code changes, and assist with development tasks through a terminal-based workflow. They are not portfolio builders with a guaranteed visual style, and neither can infer every preference from a short instruction such as “make me a modern portfolio.”

Results depend on several moving parts: the exact prompt, the existing app and its dependencies, the agent and model version available to you, tool permissions, and whether you check the page in a browser. Products and capabilities change over time, so a comparison based on one run should not be treated as a permanent ranking.

How a landing-page prompt becomes a website

A coding agent typically works with the files and tools available in your project. It may examine the app structure, edit components and styles, and run commands if permitted. It can produce a page that looks plausible in source code yet has broken links, poor mobile behavior, inaccessible controls, or a build error. Reviewing the rendered result is therefore part of the task, not an optional final flourish.

A portfolio prompt also has two distinct jobs: communicate the visual direction and specify what the page must do. “Elegant and memorable” gives an agent room to interpret; “one-page portfolio for a product designer, with a short introduction, selected projects, an about section, and a contact link” is more actionable. Providing real copy, project details, and visual references narrows the gap between a generic template and a page that represents you.

Write a prompt that makes results comparable

If you want to find out which tool handles your task better, give both the same brief and the same starting point. A useful prompt states the audience, content, layout, style, technical constraints, and checks the finished work should pass. Avoid changing the brief between runs: otherwise, differences may come from the instructions rather than the tool.

For example, a brief might say: “Create a responsive single-page portfolio for a freelance illustrator. Include a name and short introduction, a grid of six supplied projects, an about section, and a contact link. Use the existing framework and dependencies; do not add a component library. Keep text readable on mobile, use semantic HTML, provide alt text for supplied images, and run the project’s existing checks. Tell me which files you changed and any steps I need to complete.”

Then add specifics that matter to your identity: preferred colors, typography references, image filenames, the order of sections, and whether the design should feel editorial, playful, minimal, or something else. If you have a reference site, say what you admire about it rather than asking for a direct copy.

How to judge the result fairly

Do not score a landing page only by how impressive the first screenshot looks. Compare practical outcomes across the same criteria:

  • Brief fidelity: Are all required sections, links, and supplied details present?
  • Visual quality: Does the hierarchy feel intentional, and does the page avoid looking like an untouched template?
  • Responsive behavior: Does the layout remain usable at narrow and wide viewport sizes?
  • Working code: Does the project build or run using its existing instructions?
  • Accessibility basics: Are headings meaningful, keyboard interactions usable, and images described appropriately?
  • Maintainability: Are changes understandable and consistent with the existing project?

Inspect the page in a browser, click every link, resize the viewport, and review the code diff. Ask the tool to fix a specific issue rather than requesting a vague “make it better.” A second pass that corrects a cramped mobile layout or missing project captions is often more informative than the initial generation.

Choosing between Claude Code and Codex CLI

There is no reliable universal answer to “which one nailed it” without a defined test and its results. Choose based on the workflow you prefer and the evidence from your own project. If one tool produces a stronger first draft but makes risky or hard-to-understand changes, the other may be the better choice for a site you expect to maintain.

For a fair trial, use a fresh copy or version-control branch for each run, keep dependencies and instructions the same, and record the model or product configuration and date. Examine both the rendered pages and the changes made. If one run fails, distinguish an agent limitation from a missing dependency, unclear prompt, or command that was not allowed to run.

Also consider your comfort with the terminal and with reviewing code. These tools can speed up implementation, but you remain responsible for deciding whether the page accurately represents you and whether its behavior is correct. A person with little frontend experience may need to ask for a concise explanation of the changes and how to preview the site.

Common problems and practical fixes

  • The page looks generic: Give the agent actual project descriptions, a specific design direction, and assets. Ask it to explain the visual hierarchy before making another pass.
  • It invents content: Supply approved text and explicitly mark details that must not be fabricated. Check names, dates, project outcomes, and contact information yourself.
  • The result breaks the existing app: Ask it to inspect the project instructions and reuse the current framework. Review the diff, run the documented development or build command, and undo unrelated changes.
  • Desktop works, mobile does not: Specify mobile behavior in the prompt and test a narrow viewport. Look for overflow, tiny text, crowded navigation, and images that distort.
  • The code is finished but not published: Generating a page does not automatically provide hosting, a domain, or a completed deployment. Follow the hosting provider’s current instructions separately.

A common misconception is that a polished screenshot proves the website is finished. It does not: the screenshot may hide broken navigation, missing content, slow or absent assets, and accessibility problems. Treat generated code as a draft that needs ordinary development checks.

Frequently Asked Questions

Which is better for a portfolio landing page, Claude Code or Codex CLI?
There is no fixed winner. Compare them using the same prompt, project, and evaluation criteria; the better result is the one that meets your visual and technical requirements with manageable changes.

Can either tool build a portfolio from scratch?
Both are coding agents intended to work with software projects, but what they can do depends on the available tools, configuration, and instructions. A clear project setup and a human review are still important.

Do I need to know how to code to use a CLI coding agent?
You can ask for help without being an expert, but command-line workflows and generated code still require care. You should be able to follow project instructions, preview the site, and recognize when a result needs review.

Why did the same prompt produce different-looking pages?
Results can vary with the model or product version, existing files, project context, and tool settings. Design prompts also leave room for interpretation, so specific content and visual constraints generally make comparisons more consistent.

Will the agent publish my portfolio online?
Not necessarily. Creating or editing local project files is different from deploying a site. Publishing usually involves a hosting service and its setup process, which should be checked independently.

How can I tell whether the generated page is ready?
Run the project’s checks, open it in a browser, test links and forms, inspect mobile layouts, and review the source changes. Confirm that the content and images are accurate before sharing the site.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →