refactor: Cleanup git state - commit all staged changes

Major refactoring cleanup:
- Add new controller architecture (class-controller-*.php)
- Add new settings-v2 UI (views/settings-v2/)
- Add new CSS architecture (agentic-sidebar.css, tokens)
- Add esbuild build pipeline (scripts/build.js, package.json)
- Add composer dependencies (vendor/)
- Add frontend src directory (assets/js/src/index.jsx)
- Add documentation files
- Remove old/obsolete files (class-settings.php, old CSS)

This commits all pending changes from previous refactoring efforts.
This commit is contained in:
Dwindi Ramadhana
2026-06-17 05:27:58 +07:00
parent d3f142222c
commit 690991c526
7963 changed files with 941566 additions and 67372 deletions

View File

@@ -0,0 +1,238 @@
# MEMANTO Context Keeper - Pricing Strategy
**Version:** 1.0
**Date:** 2026-06-07
**Status:** Planning
---
## Executive Summary
MEMANTO is an external memory service (powered by Moorcheh SDK) that provides persistent, semantic memory for the WP Agentic Writer plugin. It is sold as a separate subscription from the plugin itself. Users who purchase MEMANTO get a dedicated instance URL and configure it in the plugin settings alongside their own Moorcheh API key.
**Core Value Proposition:** The plugin works perfectly without MEMANTO using the built-in Context Builder. MEMANTO enhances the experience with cross-session memory, semantic recall, and elimination of context loss.
---
## Product Structure
### What the User Purchases
| Item | Description |
|---|---|
| **WP Agentic Writer Plugin** | Sold separately. Lifetime or own subscription model. Works standalone. |
| **MEMANTO Context Keeper** | Separate subscription. User receives a MEMANTO instance URL. |
| **Moorcheh API Key** | User brings their own. Free tier available (10K vectors/month). Billed to user's own Moorcheh account. |
### MEMANTO Instance Per Subscription
- 1 subscription = 1 MEMANTO instance
- 1 MEMANTO instance can be used across up to 15 WordPress sites (1 plugin per site)
- 1 MEMANTO instance requires 1 Moorcheh API key
- Users needing isolated memory per site purchase additional MEMANTO subscriptions
---
## Infrastructure Costs
### Hosting Architecture
| Component | Specification | Cost | Capacity |
|---|---|---|---|
| Coolify VPS | 8 vCPU, 32GB RAM, 200GB storage | $15/month | ~150 MEMANTO instances |
| Subdomain | *.context.wpagentic.dev (wildcard) | $0 | Unlimited |
| Moorcheh API | User's own key | $0 | User's responsibility |
| **Cost per MEMANTO instance** | | **$0.10/month** | |
### Scaling Model
| Subscribers | VPS Nodes | Infra Cost | Revenue at $7/mo |
|---:|---:|---:|---:|
| 1150 | 1 | $15/mo | $1,050/mo |
| 151300 | 2 | $30/mo | $2,100/mo |
| 301450 | 3 | $45/mo | $3,150/mo |
| 1,000+ | 7 | $105/mo | $7,000/mo |
Each additional $15 VPS linearly adds capacity for 150 more subscribers.
---
## Value Delivered to Subscriber
### Cost Savings on AI Tokens
Using the recommended multi-model stack:
| Task | Model | Input/1M | Output/1M |
|---|---|---|---|
| Chat | google/gemini-2.5-flash | $0.30 | $2.50 |
| Planning | deepseek/deepseek-chat | $0.20 | $0.77 |
| Writing | deepseek/deepseek-chat | $0.20 | $0.77 |
| Refinement | meta-llama/llama-3.3-70b-instruct | $0.10 | $0.32 |
### Per-Article Cost Comparison
| Metric | Without MEMANTO | With MEMANTO | Savings |
|---|---:|---:|---:|
| AI calls per article | 35 | 22 | 37% |
| Input tokens | 43,900 | 16,450 | 63% |
| Output tokens | 20,800 | 18,900 | 9% |
| **Cost per article** | **$0.0377** | **$0.0259** | **31%** |
### Monthly Savings at Scale
| Articles/month | Without MEMANTO | With MEMANTO | Saved |
|---:|---:|---:|---:|
| 25 | $0.94 | $0.65 | $0.29 |
| 50 | $1.88 | $1.29 | $0.59 |
| 100 | $3.77 | $2.59 | $1.18 |
| 500 | $18.85 | $12.95 | $5.90 |
### Beyond Cost: Experience Quality
| Feature | Without MEMANTO | With MEMANTO |
|---|---|---|
| Context on mode switch | Can be lost | Preserved via semantic memory |
| Cross-session continuity | Each session starts fresh | AI remembers everything |
| User preference learning | Per-post only | Carries across all posts |
| Chat history management | Truncate to last 6 messages | Semantic recall of relevant context |
| Summarize-context calls | Required (4 per article) | Eliminated |
| Detect-intent calls | Required (10 per article) | Eliminated |
---
## Moorcheh Free Tier Analysis
Free tier provides 10,000 vectors per month.
| Memory Type | Avg per Article | Notes |
|---|---:|---|
| Instructions (user messages) | 10 | Key user intents |
| Decisions (plan approved, etc.) | 3 | Critical checkpoints |
| Corrections (rejections) | 2 | "Don't do X" memories |
| Artifacts (plan, section summaries) | 6 | Compact summaries |
| Preferences (config, tone) | 2 | Per-article settings |
| Context (session summaries) | 2 | End-of-session wrap |
| **Total memories per article** | **~25** | |
**10K vectors ≈ 400 articles/month** on free Moorcheh tier. Sufficient for most users. Power users exceeding this would upgrade their own Moorcheh plan.
---
## Pricing Recommendation
### Launch Pricing
| Plan | Monthly | Annual | Effective Monthly | Sites | Moorcheh |
|---|---:|---:|---:|---:|---|
| **Context Keeper** | $7/mo | $59/yr | $4.92/mo | Up to 15 | Bring own key |
### Pricing Rationale
| Factor | Analysis |
|---|---|
| Infrastructure cost | $0.10/subscriber — margin is ~98% |
| Cost savings delivered | ~$0.012/article; self-funding at 25+ articles/month |
| Psychological threshold | $7 is below $10 impulse-buy barrier |
| Competitive positioning | No comparable WordPress AI memory product exists |
| Plugin dependency | MEMANTO is optional; plugin works without it |
| User acquisition | Low entry price drives adoption and plugin stickiness |
### Revenue Projections
| Subscribers | Monthly Revenue | Annual Revenue | Infra Cost | Net Profit |
|---:|---:|---:|---:|---:|
| 25 | $175 | $2,100 | $15 | $160/mo |
| 50 | $350 | $4,200 | $15 | $335/mo |
| 100 | $700 | $8,400 | $15 | $685/mo |
| 150 | $1,050 | $12,600 | $15 | $1,035/mo |
| 300 | $2,100 | $25,200 | $30 | $2,070/mo |
| 1,000 | $7,000 | $84,000 | $105 | $6,895/mo |
### Pricing Evolution Roadmap
**Phase 1: Launch (Months 16)**
- Single tier at $7/mo or $59/yr
- Focus on user acquisition and feedback
- Monitor Moorcheh free tier usage patterns
**Phase 2: Growth (Months 612)**
- Evaluate raising to $9/mo ($79/yr) based on demand
- Introduce Pro tier at $15/mo for agencies (multi-MEMANTO)
- Add managed Moorcheh option (include API key, absorb cost)
**Phase 3: Scale (12+ Months)**
- Usage-based add-ons if needed
- Enterprise licensing for WordPress VIP / managed hosts
- Reseller program for agencies white-labeling the service
### When to Raise Price
Raise from $7 to $9 when **any** of these conditions are met:
- 50+ active subscribers
- Users volunteer that the price feels too low
- Feature set has grown (file upload, conflict resolution UI, memory browser)
- Churn is below 5% monthly
### Grandfathering Policy
When price increases:
- Existing subscribers keep their original price for 6 months
- Annual subscribers locked in until renewal
- 30-day advance notice before any price change
---
## Billing and Delivery
### Subscriber Onboarding Flow
1. User purchases MEMANTO subscription via payment platform
2. System provisions a MEMANTO instance on Coolify
3. User receives:
- MEMANTO instance URL (e.g., `https://abc123.context.wpagentic.dev`)
- Configuration instructions
4. User inputs in WP Agentic Writer settings:
- MEMANTO URL
- Their own Moorcheh API key
5. Plugin validates connection and activates MEMANTO features
### Provisioning Architecture
Each MEMANTO instance:
- Runs as a Docker container on Coolify
- Uses a unique subdomain under *.context.wpagentic.dev
- Isolates data per subscriber (separate agent namespaces)
- User's Moorcheh API key connects to their own vector store
---
## Risks and Mitigations
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| Users hit Moorcheh free tier limit | Medium | Low | Clear documentation on limits; prompt to upgrade their Moorcheh plan |
| MEMANTO instance downtime | Low | High | Coolify health checks, auto-restart, user-facing status indicator |
| User doesn't understand "bring own Moorcheh key" | Medium | Medium | Step-by-step onboarding guide; one-click Moorcheh signup link |
| Subscriber churn after trial | Medium | Medium | Deliver clear value early (show "memories recalled" indicator in plugin) |
| Infrastructure cost spike | Low | Low | Cost is fixed $15/node; scales linearly with revenue |
| Plugin works fine without MEMANTO | Expected | None | That's by design. MEMANTO is enhancement, not requirement |
---
## Summary
| Decision | Recommendation |
|---|---|
| **Launch price** | $7/month or $59/year |
| **Cost per subscriber** | $0.10/month |
| **Margin** | ~98% |
| **Break-even** | 3 subscribers cover 1 VPS node |
| **Upsell path** | $7 → $9 → $15 Pro tier |
| **Key constraint** | User must provide own Moorcheh API key |
| **Key advantage** | No comparable product in WordPress ecosystem |
---
**Document Date:** June 7, 2026
**Status:** Draft — Pending validation with first 10 beta subscribers