Skip to content

chore: import AgentKit integration#8

Merged
mislavivanda merged 1 commit into
mainfrom
chore/import-inngest-agentkit-coding-agent
Jun 26, 2026
Merged

chore: import AgentKit integration#8
mislavivanda merged 1 commit into
mainfrom
chore/import-inngest-agentkit-coding-agent

Conversation

@mislavivanda

@mislavivanda mislavivanda commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.


Summary by cubic

Adds a new apps/inngest-agentkit-coding-agent example that runs an autonomous coding agent on Daytona using @inngest/agent-kit. It automates app scaffolding, file operations, and the dev server lifecycle with a Daytona preview link.

  • New Features

    • TypeScript app integrating @daytonaio/sdk and @inngest/agent-kit; uses Anthropic claude-3-5-haiku-20241022 by default.
    • Tools: run shell commands, execute code, upload/read/delete files, create/delete directories, start/check dev server health.
    • Extracts DEV_SERVER_PORT, prints a Daytona preview URL, and cleans up the sandbox if no server runs.
    • Adds .env.example (DAYTONA_API_KEY, ANTHROPIC_API_KEY), README with quickstart, and Dockerfile.
  • Dependencies

    • Adds @daytonaio/sdk, @inngest/agent-kit, zod, dotenv; dev: typescript, ts-node, @types/node.

Written for commit c1dae4d. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

13 issues found across 11 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/inngest-agentkit-coding-agent/package.json">

<violation number="1" location="apps/inngest-agentkit-coding-agent/package.json:8">
P2: `start` does not fail fast on TypeScript errors. Use `&&` so runtime starts only after successful compilation.</violation>
</file>

<file name="apps/inngest-agentkit-coding-agent/README.md">

<violation number="1" location="apps/inngest-agentkit-coding-agent/README.md:15">
P3: Documentation states debug logs are enabled, but code disables them by default. This misleads users troubleshooting agent behavior.</violation>

<violation number="2" location="apps/inngest-agentkit-coding-agent/README.md:45">
P2: The setup commands are missing a `cd apps/inngest-agentkit-coding-agent` step, so `npm install` is likely run from the wrong directory and fails.</violation>
</file>

<file name="apps/inngest-agentkit-coding-agent/src/index.ts">

<violation number="1" location="apps/inngest-agentkit-coding-agent/src/index.ts:270">
P2: `devServerSessionId` is only persisted when creating a new session, so health checks can fail when reusing an existing session.</violation>

<violation number="2" location="apps/inngest-agentkit-coding-agent/src/index.ts:412">
P2: `sandbox.delete()` is async but not awaited. Cleanup can be skipped/interrupted, leaking sandbox resources.</violation>
</file>

<file name="apps/inngest-agentkit-coding-agent/src/utils.ts">

<violation number="1" location="apps/inngest-agentkit-coding-agent/src/utils.ts:25">
P3: Error wrapping discards the original exception cause and stack. Preserve `cause` so sandbox provisioning failures stay diagnosable.</violation>

<violation number="2" location="apps/inngest-agentkit-coding-agent/src/utils.ts:38">
P2: Debug logging is permanently disabled by a hard-coded false flag. This makes `logDebug` a no-op and breaks the documented debug toggle behavior.</violation>
</file>

<file name="apps/inngest-agentkit-coding-agent/.gitignore">

<violation number="1" location="apps/inngest-agentkit-coding-agent/.gitignore:8">
P2: Only `.env` is ignored; `.env.*` files remain trackable and may leak credentials. Ignore variant env files while allowing a checked-in template.</violation>
</file>

Tip: instead of fixing issues one by one fix them all with cubic
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.

Re-trigger cubic

Comment thread apps/inngest-agentkit-coding-agent/Dockerfile
Comment thread apps/inngest-agentkit-coding-agent/README.md
Comment thread apps/inngest-agentkit-coding-agent/tsconfig.json
Comment thread apps/inngest-agentkit-coding-agent/src/index.ts
Comment thread apps/inngest-agentkit-coding-agent/README.md
Comment thread apps/inngest-agentkit-coding-agent/src/utils.ts
Comment thread apps/inngest-agentkit-coding-agent/README.md
Comment thread apps/inngest-agentkit-coding-agent/src/index.ts
Comment thread apps/inngest-agentkit-coding-agent/README.md
Comment thread apps/inngest-agentkit-coding-agent/src/utils.ts
Signed-off-by: Mislav Ivanda <mislavivanda454@gmail.com>
@mislavivanda mislavivanda force-pushed the chore/import-inngest-agentkit-coding-agent branch from ab791f2 to c1dae4d Compare June 26, 2026 22:37
@mislavivanda mislavivanda merged commit a14ff9c into main Jun 26, 2026
9 checks passed
@mislavivanda mislavivanda deleted the chore/import-inngest-agentkit-coding-agent branch June 26, 2026 23:55
mislavivanda added a commit that referenced this pull request Jul 4, 2026
…ngs (#17)

Signed-off-by: Mislav Ivanda <mislavivanda454@gmail.com>
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.

1 participant