mod-bot 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,103 @@
1
+ # mod-bot
2
+
3
+ An adaptive code moderation MCP server that learns your preferences, understands your codebase, and tailors guidance to your experience level.
4
+
5
+ ## What is mod-bot?
6
+
7
+ Mod-bot is a **code moderator** — not just another orchestrator or skill system. It sits between you and your codebase like a senior tech lead who:
8
+
9
+ - Knows your codebase inside out and keeps that knowledge current
10
+ - Knows your skill level and adjusts guidance accordingly
11
+ - Learns your patterns and preferences over time
12
+ - Manages context so nothing falls through the cracks
13
+ - Deploys multi-agent swarms only when genuinely needed
14
+
15
+ ## Quick Start
16
+
17
+ ### Add to Claude Code
18
+
19
+ ```bash
20
+ claude mcp add --scope user mod-bot -- npx -y mod-bot@latest
21
+ ```
22
+
23
+ ### Initialize in your project
24
+
25
+ ```
26
+ init:setup --experienceLevel senior --name "Your Name"
27
+ ```
28
+
29
+ This scans your codebase, detects your tech stack, and creates a `.mod-bot/` config directory.
30
+
31
+ ## Tools
32
+
33
+ ### Init (3 tools)
34
+ | Tool | Description |
35
+ |------|-------------|
36
+ | `init:setup` | Initialize mod-bot: scan project, set preferences, get recommendations |
37
+ | `init:reconfig` | Update your preferences without re-scanning |
38
+ | `init:migrate` | Migrate config to latest version |
39
+
40
+ ### Moderation (5 tools)
41
+ | Tool | Description |
42
+ |------|-------------|
43
+ | `mod:suggest` | Get approach suggestions adapted to your level |
44
+ | `mod:review` | Review changes before committing |
45
+ | `mod:plan` | Create an implementation plan |
46
+ | `mod:checkpoint` | Save progress, decisions, and open questions |
47
+ | `mod:retro` | Run a brief retrospective |
48
+
49
+ ### Context (4 tools)
50
+ | Tool | Description |
51
+ |------|-------------|
52
+ | `ctx:status` | Show current project state (branch, task, health) |
53
+ | `ctx:refresh` | Force full context refresh |
54
+ | `ctx:focus` | Set current focus area |
55
+ | `ctx:history` | Show session history and decision log |
56
+
57
+ ### Learning (4 tools)
58
+ | Tool | Description |
59
+ |------|-------------|
60
+ | `learn:pattern` | Teach mod-bot a pattern or preference |
61
+ | `learn:show` | Show what mod-bot has learned |
62
+ | `learn:reset` | Reset specific or all patterns |
63
+ | `learn:suggest-workflow` | Get workflow adjustment suggestions |
64
+
65
+ ### Swarm (3 tools)
66
+ | Tool | Description |
67
+ |------|-------------|
68
+ | `swarm:estimate` | Estimate token cost before spawning |
69
+ | `swarm:analyze` | Spawn a focused analysis swarm |
70
+ | `swarm:refactor` | Coordinate multi-file refactoring |
71
+
72
+ ## Adaptive Output
73
+
74
+ Mod-bot adapts its output based on your experience level:
75
+
76
+ | Scenario | Junior | Senior |
77
+ |----------|--------|--------|
78
+ | New endpoint | Full step-by-step with code snippets | "Add POST /users in routes/users.ts, follow posts.ts pattern" |
79
+ | Bug in auth | "Let's debug together. First, check the error..." | "Race condition in token refresh. Check auth/refresh.ts:47" |
80
+ | PR review | Explains each issue with "why" and docs links | "L23: null check. L45: extract helper. L67: add test." |
81
+
82
+ ## Development
83
+
84
+ ```bash
85
+ pnpm install # Install dependencies
86
+ pnpm build # Build all packages
87
+ pnpm test # Run tests (67 tests)
88
+ ```
89
+
90
+ ## Architecture
91
+
92
+ ```
93
+ packages/
94
+ core/ -- Types, config, moderator engine, workflow engine
95
+ server/ -- MCP server, 17 tool definitions
96
+ memory/ -- File-based persistent storage
97
+ analyzer/ -- Codebase scanner, complexity estimator
98
+ strategies/ -- Adaptive output (junior/mid/senior)
99
+ ```
100
+
101
+ ## License
102
+
103
+ MIT
@@ -0,0 +1,12 @@
1
+ type: analyzer
2
+ version: "1.0.0"
3
+ description: Codebase analysis agent for scanning, complexity estimation, and tech detection
4
+ capabilities:
5
+ - codebase-scanning
6
+ - tech-detection
7
+ - complexity-estimation
8
+ - change-tracking
9
+ - git-state-analysis
10
+ behavior:
11
+ max_scan_depth: 8
12
+ sample_file_limit: 50
@@ -0,0 +1,12 @@
1
+ type: learner
2
+ version: "1.0.0"
3
+ description: Pattern learning agent that detects and remembers user preferences
4
+ capabilities:
5
+ - pattern-detection
6
+ - preference-tracking
7
+ - workflow-suggestion
8
+ - suppression-management
9
+ behavior:
10
+ pattern_threshold: 3
11
+ suppression_threshold: 5
12
+ max_recent_actions: 100
@@ -0,0 +1,13 @@
1
+ type: moderator
2
+ version: "1.0.0"
3
+ description: Core moderation agent that adapts guidance to user experience level
4
+ capabilities:
5
+ - code-review
6
+ - task-planning
7
+ - workflow-selection
8
+ - checkpoint-management
9
+ - retrospective
10
+ behavior:
11
+ adapts_to_level: true
12
+ learns_patterns: true
13
+ respects_suppressed: true
@@ -0,0 +1,13 @@
1
+ type: swarm-coordinator
2
+ version: "1.0.0"
3
+ description: Token-conscious swarm coordinator that only spawns agents when complexity warrants it
4
+ capabilities:
5
+ - cost-estimation
6
+ - analysis-swarm
7
+ - refactoring-swarm
8
+ - budget-enforcement
9
+ behavior:
10
+ default_budget: conservative
11
+ tokens_per_agent: 5000
12
+ max_agents: 8
13
+ require_estimate_before_spawn: true