Skip to content

Cloudflare Worker target: sub-agents, schedules, channels and memory from an agent directory #298

Description

@LinuxDevil

Follow-up of #224 (M3b), which made lousho build ./my-agent --target=cloudflare-worker build an agent directory's config, instructions.md, tools/ and skills/.

The Worker target still rejects, at scaffold, with LOUSHO_DEPLOY_FAILED naming the folder or key:

  • subagents/ (each sub-agent would need its own embedded WorkerAgentDir and a delegate tool, built the same way as the parent);
  • schedules/ (would map to wrangler.toml [triggers] crons and a scheduled() export, with the UTC / five-field / day-name rules workerCrons() already enforces for specs);
  • channels/ (would need mounting under /channels in the Fetch router of src/server/fetchRoutes.ts);
  • memory/ (memory slots need a store; on a Worker that would be the KV namespace);
  • projectInstructions: true (reads AGENTS.md / CLAUDE.md from disk; could be embedded at build time).

Code: src/deploy/adapters/cloudflare-dir.ts (UNSUPPORTED_FOLDERS), src/deploy/workerAgentDir.ts (resolveWorkerAgentDir), src/deploy/runtime.worker.ts (handleWorkerAgentDirRequest). Docs: the LIMITS TABLE in docs/cloudflare-workers.md.

Do this only if users ask for it; until then --target=node-server / --target=docker deploy all of these.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions