Skip to content

Conversation

@dprevoznik
Copy link
Contributor

@dprevoznik dprevoznik commented Sep 25, 2025

Description

Created a magnitude.run template for create-kernel-app and updated the base CLI to include the new template. Confirmed the template files work by running the CLI locally.

Implementation Checklist

  • Implemented this change in TypeScript
  • Implemented this change in Python

Testing

  • [n/a] All tests pass locally
  • Linted
  • [n/a] Added tests for new functionality (if applicable)

Docs

  • [n/a] Link to a PR in our docs repo documenting your change (if applicable)

Visual Proof

Screenshot 2025-09-25 at 5 44 29 PM

TL;DR

Adds a new magnitude project template to the create-kernel-app CLI tool.

Why we made these changes

To provide developers with a pre-configured starting point for building applications with magnitude.run, simplifying the setup process and showcasing a best-practice project structure.

What changed?

  • Added magnitude template: A new project template was added under templates/typescript/magnitude/, including a basic package.json, tsconfig.json, and a sample index.ts.
  • Updated CLI: The core CLI logic was updated to include magnitude as a selectable option when generating a new project.

Description generated by Mesa. Update settings

Created a magnitude.run template for create-kernel-app and updated the base CLI to include the new template. Confirmed the template files work by running the CLI locally.
Copy link

@mesa-dot-dev mesa-dot-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Performed full review of b0d4df2...10de38b

Analysis

Based on the provided analysis, there appear to be no significant architectural issues with this PR. The analysis only contains positive feedback about the implementation following established patterns, proper integration, and good practices. The review mentions the template is TypeScript-only, which is noted as appropriate given Magnitude.run's current ecosystem, rather than being flagged as a limitation.

Tip

⚡ Quick Actions

This review was generated by Mesa.

Actions:

Slash Commands:

  • /review - Request a full code review
  • /review latest - Review only changes since the last review
  • /describe - Generate PR description. This will update the PR body or issue comment depending on your configuration
  • /help - Get help with Mesa commands and configuration options

6 files reviewed | 0 comments | Review on Mesa | Edit Reviewer Settings

Copy link

@mesa-dot-dev mesa-dot-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Performed full review of b0d4df2...10de38b

Analysis

  1. URL validation in the Magnitude template needs to be more robust, which could lead to runtime errors or security issues when users input malformed URLs.

  2. The template contains hardcoded model references that limit configurability, potentially causing integration problems as AI models evolve or when users want to use alternative models.

  3. Some error messages lack specificity, which could hinder debugging and troubleshooting for developers using the template.

Tip

⚡ Quick Actions

This review was generated by Mesa.

Actions:

Slash Commands:

  • /review - Request a full code review
  • /review latest - Review only changes since the last review
  • /describe - Generate PR description. This will update the PR body or issue comment depending on your configuration
  • /help - Get help with Mesa commands and configuration options

6 files reviewed | 0 comments | Review on Mesa | Edit Reviewer Settings

// Navigate and extract via Magnitude
//////////////////////////////////////
await agent.act(
`Go to ${target}. Explore the page by scrolling down the page twice. Narrate key steps.`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this should be in the payload since that is most likely how people will use web agents? This could be a more common patter, not entirely sure though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I set it up this way so someone can quickly see Magnitude’s benefits without needing a specific task that highlights each feature (e.g. Extract URLs, scroll, etc.). I agree this isn’t the most common pattern or likely a workflow users would have, but it shows off the benefits well IMO and it’s easy to overwrite if needed.

@dprevoznik dprevoznik merged commit 67a66aa into main Sep 26, 2025
6 of 7 checks passed
@dprevoznik dprevoznik deleted the danny/kernel-370-create-kernel-app-add-magnitude-sample-app branch September 26, 2025 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants