examples: add minions-clone (AI task app on the Agent37 Agents API)#8
Open
ArchanaRangrej wants to merge 1 commit into
Open
examples: add minions-clone (AI task app on the Agent37 Agents API)#8ArchanaRangrej wants to merge 1 commit into
ArchanaRangrej wants to merge 1 commit into
Conversation
A production-shaped Next.js 15 example: write a task in plain language, Agent37 runs an agent that plans/uses tools/streams its work live, and a 3-column Kanban board tracks tasks through queued -> running -> ready_for_review -> completed. The detail page is a multi-turn chat thread reusing one Agent37 session per task; the thread is read live from the session (Agent37 owns execution + transcript). Persistence is a thin metadata layer in local SQLite (Drizzle + libSQL, file minions.db): it holds only what Agent37 can't — board metadata plus the session_id/response_id pointers. The schema self-creates on boot (CREATE TABLE IF NOT EXISTS), so a fresh clone runs with no migration step; the provisioned instance id is persisted so a restart reuses it instead of provisioning a new billed instance. The sk_live_ key stays server-side via server-only; the browser talks only to /api routes. Layering: route handlers -> server/services -> server/agent37 gateway + server/db repositories. Verified live: provision -> stream -> persist round trip writes session/response pointers to SQLite and reads the thread back from the Agent37 session. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
minions-clone — Prompt Request
User:
Assistant:
🤖 Generated with Claude Code