Dshamir puts a meter on Mike and lets you carry workflows out the door

Two additions move this fork toward something you could actually hand to a team: per-user usage caps and portable workflows.

workflowmulti-tenant

Dshamir wired in a monthly message allowance. Each account now tracks how many chat messages it has used, resets the count on a rolling 30-day cycle, and politely refuses new requests once the cap is hit - the limit is configurable, and the default is set high enough that it won't bite ordinary use until someone turns it down. The tracking is deliberately forgiving: if the counter ever fails to update, the chat still goes through rather than blocking the user.

The second piece makes workflows portable. You can now export a saved workflow as a file and import it back - into the same instance or a different one - with the imported copy logged for audit. It's the kind of plumbing that turns a personal setup into something a firm can standardise and share.

So what Worth a look for anyone weighing Mike as a shared, governed tool rather than a solo experiment - usage limits and exportable workflows are both prerequisites for that.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

2 commits from Dshamir/AI-Legal, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
e889c1dd feat: credit enforcement on chat, workflow export/import Dshamir 2026-05-23 ↗ GitHub
commit body
- Wire up monthly credit checking and incrementing for both chat
  streaming routes. Credits checked before LLM call (429 if exceeded),
  incremented after successful response. Auto-resets when past reset
  date. Limit via MONTHLY_CREDIT_LIMIT env var (PR #157).
- Add GET /workflows/:id/export (.mikeworkflow.json download) and
  POST /workflows/import endpoints for portable workflow transfer
  between environments (PR #59).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1a09a245 fix: use valid audit action type for workflow import Dshamir 2026-05-23 ↗ GitHub
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-525.md from inside the repo you want the changes in.

⬇ Download capture-thread-525.md