Skip to content

feat: generalized agent runner and MCP error detection#176

Merged
daniloc merged 27 commits intomainfrom
prep-for-frameworks
Dec 2, 2025
Merged

feat: generalized agent runner and MCP error detection#176
daniloc merged 27 commits intomainfrom
prep-for-frameworks

Conversation

@daniloc
Copy link
Copy Markdown
Collaborator

@daniloc daniloc commented Nov 20, 2025

Changes:

agent-interface.ts

  • Signals to the CLI when MCP or a specific resource is missing (AgentSignals)
  • Logs errors to PostHog when these things happen (AgentErrorType)
  • Adds explicit tool permissions for bash commands (ALLOWED_BASH_PREFIXES)
  • Upgrades to Opus 4.5

agent-runner.ts

Provides a universal interface for running integrations across frameworks using @posthog/agent, piping appropriate feedback to the CLI output. Largely abstracted from the existing Next.js agent implementation. Uses framework-config.ts to set up the run.

nextjs-wizard-agent.ts now creates a config and fires the agent runner.

oauth.ts

The OAuth page is supposed to close itself but it often doesn't, so I made some nicer CSS for it.

Testing

Tested and working locally: package installs work and everything proceeds the way we expect from the existing wizard v2 behavior.

@joshsny joshsny changed the title Generalized agent runner, react support and MCP error detection feat: generalized agent runner and MCP error detection Nov 20, 2025
@wiz-7ad640923b
Copy link
Copy Markdown

wiz-7ad640923b Bot commented Dec 1, 2025

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities 2 High 3 Medium 3 Low
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings -
Total 2 High 3 Medium 3 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

@daniloc daniloc marked this pull request as ready for review December 1, 2025 22:01
@daniloc daniloc requested a review from a team December 1, 2025 22:01
Comment thread src/lib/agent-interface.ts
Comment thread src/lib/agent-interface.ts
Comment thread src/lib/framework-config.ts
Comment thread src/lib/agent-runner.ts Outdated
Copy link
Copy Markdown
Collaborator

@sarahxsanders sarahxsanders left a comment

Choose a reason for hiding this comment

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

definitely still learning all things wizard, but taking a look at these PRs is helpful for my sponge brain to absorb :] left a few comments that are non-blocking

Copy link
Copy Markdown
Member

@edwinyjlim edwinyjlim left a comment

Choose a reason for hiding this comment

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

the agent runner is noiiiice

Comment thread src/lib/agent-interface.ts
Copy link
Copy Markdown
Collaborator

@gewenyu99 gewenyu99 left a comment

Choose a reason for hiding this comment

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

Dude this is so coool. Makes me wanna clear my calendar and join you in hacking on this.

This is starting to look super clean

Comment thread src/lib/agent-interface.ts
Comment thread src/lib/agent-interface.ts
Comment thread src/lib/agent-interface.ts
Comment thread src/lib/agent-runner.ts
Comment thread src/lib/agent-runner.ts
Comment thread src/lib/agent-runner.ts
Comment thread src/lib/agent-runner.ts
Comment thread src/lib/agent-runner.ts Outdated
Comment thread src/lib/framework-config.ts
@daniloc daniloc merged commit fba19b3 into main Dec 2, 2025
14 checks passed
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.

5 participants