mapify-cli 1.0.0__py3-none-any.whl

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.
@@ -0,0 +1,310 @@
1
+ Metadata-Version: 2.4
2
+ Name: mapify-cli
3
+ Version: 1.0.0
4
+ Summary: MAP Framework installer - Modular Agentic Planner for Claude Code
5
+ Project-URL: Homepage, https://github.com/azalio/map-framework
6
+ Project-URL: Repository, https://github.com/azalio/map-framework.git
7
+ Project-URL: Issues, https://github.com/azalio/map-framework/issues
8
+ Author: MAP Framework Contributors
9
+ Requires-Python: >=3.11
10
+ Requires-Dist: httpx>=0.25.0
11
+ Requires-Dist: platformdirs>=4.0.0
12
+ Requires-Dist: questionary>=2.0.0
13
+ Requires-Dist: readchar>=4.0.0
14
+ Requires-Dist: rich>=13.0.0
15
+ Requires-Dist: typer>=0.9.0
16
+ Provides-Extra: dev
17
+ Requires-Dist: black>=23.0.0; extra == 'dev'
18
+ Requires-Dist: mypy>=1.0.0; extra == 'dev'
19
+ Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
20
+ Requires-Dist: pytest-mock>=3.10.0; extra == 'dev'
21
+ Requires-Dist: pytest>=7.0.0; extra == 'dev'
22
+ Requires-Dist: ruff>=0.1.0; extra == 'dev'
23
+ Provides-Extra: ssl
24
+ Requires-Dist: truststore>=0.9.0; extra == 'ssl'
25
+ Provides-Extra: test
26
+ Requires-Dist: pytest-cov>=4.0.0; extra == 'test'
27
+ Requires-Dist: pytest-mock>=3.10.0; extra == 'test'
28
+ Requires-Dist: pytest>=7.0.0; extra == 'test'
29
+ Description-Content-Type: text/markdown
30
+
31
+ # MAP Framework for Claude Code
32
+
33
+ Implementation of **Modular Agentic Planner (MAP)** — a cognitive architecture for AI agents inspired by prefrontal cortex functions. Orchestrates 8 specialized agents for development with automatic quality validation.
34
+
35
+ > **Based on:** [Nature Communications research (2025)](https://github.com/Shanka123/MAP) — 74% improvement in planning tasks
36
+ > **Enhanced with:** [ACE (Agentic Context Engineering)](https://arxiv.org/abs/2510.04618v1) — continuous learning from experience
37
+
38
+ ## 📖 Documentation Structure
39
+
40
+ - **README** (this file) - Quick start and overview
41
+ - **[INSTALL.md](docs/INSTALL.md)** - Complete installation guide with PATH setup and troubleshooting
42
+ - **[ARCHITECTURE.md](docs/ARCHITECTURE.md)** - Technical deep dive, customization, and MCP integration
43
+ - **[USAGE.md](docs/USAGE.md)** - Practical examples, best practices, and cost optimization
44
+
45
+ ## 🚀 Quick Start
46
+
47
+ ### Inside Claude Code (Recommended)
48
+
49
+ ```bash
50
+ # Feature development
51
+ /map-feature implement user authentication with JWT tokens
52
+
53
+ # Debugging
54
+ /map-debug fix the API 500 error on login endpoint
55
+
56
+ # Refactoring
57
+ /map-refactor refactor UserService class with dependency injection
58
+
59
+ # Code review
60
+ /map-review review the recent changes in auth.py
61
+ ```
62
+
63
+ ### Command Line Usage
64
+
65
+ MAP Framework works exclusively through slash commands in Claude Code:
66
+
67
+ ```bash
68
+ # Start Claude Code in your project directory
69
+ cd your-project
70
+ claude
71
+
72
+ # Use slash commands inside Claude Code
73
+ /map-feature implement user authentication with JWT tokens
74
+ ```
75
+
76
+ **Note:** Direct `claude --agents` syntax is not applicable to MAP Framework, as the orchestration logic is implemented in slash command prompts (`.claude/commands/map-*.md`), not as a separate agent file.
77
+
78
+ ## 📦 Installation
79
+
80
+ ### Stable Release (Recommended)
81
+
82
+ ```bash
83
+ # Using pip
84
+ pip install mapify-cli
85
+
86
+ # OR using UV (recommended for isolated tools)
87
+ uv tool install mapify-cli
88
+
89
+ # Verify installation
90
+ mapify --version
91
+
92
+ # Initialize in your project
93
+ cd your-project
94
+ mapify init
95
+ ```
96
+
97
+ **Version Pinning:**
98
+ ```bash
99
+ # Install specific version
100
+ pip install mapify-cli==1.0.0
101
+
102
+ # Install with version constraints (semantic versioning: MAJOR.MINOR.PATCH)
103
+ pip install "mapify-cli>=1.0.0,<2.0.0" # Allow 1.x versions, exclude 2.0.0+
104
+ ```
105
+
106
+ **Version Information:**
107
+ - Check installed version: `mapify --version`
108
+ - [PyPI releases](https://pypi.org/project/mapify-cli/) - Available versions and package details
109
+ - [GitHub releases](https://github.com/azalio/map-framework/releases) - Changelog and release notes
110
+
111
+ ### Development Installation
112
+
113
+ For contributors or testing bleeding-edge features:
114
+
115
+ ```bash
116
+ # Install from git repository
117
+ uv tool install --from git+https://github.com/azalio/map-framework.git mapify-cli
118
+
119
+ # OR clone and install locally
120
+ git clone https://github.com/azalio/map-framework.git
121
+ cd map-framework
122
+ pip install -e .
123
+ ```
124
+
125
+ **Other installation methods** (manual copy, troubleshooting): See [INSTALL.md](docs/INSTALL.md)
126
+
127
+ **For maintainers**: Release process documented in [RELEASING.md](RELEASING.md)
128
+
129
+ ## Requirements
130
+
131
+ - **Claude Code CLI** — installed and configured
132
+ - **Python 3.11+** — for mapify CLI (optional)
133
+ - **Git** — for cloning repository
134
+
135
+ ## 🏗️ Architecture
136
+
137
+ MAP Framework orchestrates 8 specialized agents through slash commands:
138
+
139
+ - **TaskDecomposer** breaks goals into subtasks
140
+ - **Actor** generates code, **Monitor** validates quality
141
+ - **Predictor** analyzes impact, **Evaluator** scores solutions
142
+ - **Reflector/Curator** enable continuous learning via ACE playbook
143
+
144
+ The orchestration logic lives in `.claude/commands/map-*.md` prompts, coordinating agents via the Task tool.
145
+
146
+ **See [ARCHITECTURE.md](docs/ARCHITECTURE.md) for:**
147
+ - Detailed agent specifications and responsibilities
148
+ - MCP integration architecture and tool usage patterns
149
+ - Agent coordination protocol and workflow stages
150
+ - Template customization guide with examples
151
+ - Hooks integration (automated validation, knowledge storage, context enrichment)
152
+ - Context engineering principles and optimizations
153
+
154
+ ## 🔌 MCP Integration
155
+
156
+ MAP uses MCP (Model Context Protocol) servers for enhanced capabilities:
157
+
158
+ - **cipher** - Knowledge base for storing and retrieving successful patterns
159
+ - **claude-reviewer** - Professional code review with security analysis
160
+ - **context7** - Up-to-date library documentation
161
+ - **sequential-thinking** - Chain-of-thought reasoning for complex problems
162
+ - **codex-bridge** - AI code generation (requires extended timeout)
163
+ - **deepwiki** - GitHub repository intelligence
164
+
165
+ Configuration files: `.claude/mcp_config.json` and `mcp_config.json`
166
+
167
+ **See [ARCHITECTURE.md](docs/ARCHITECTURE.md#mcp-integration) for complete setup and usage patterns**
168
+
169
+ ## 📚 Usage Examples
170
+
171
+ ```bash
172
+ # Feature development
173
+ /map-feature implement user profile page with avatar upload
174
+
175
+ # Bug fixing
176
+ /map-debug debug why payment processing fails for amounts over $1000
177
+
178
+ # Refactoring
179
+ /map-refactor refactor OrderService to use dependency injection
180
+ ```
181
+
182
+ **See [USAGE.md](docs/USAGE.md) for:**
183
+ - Comprehensive usage examples with detailed scenarios
184
+ - Best practices for optimal results
185
+ - Cost optimization strategies (40-60% savings)
186
+ - Playbook management commands
187
+
188
+ ## 🎓 ACE Playbook
189
+
190
+ Built-in learning system that improves with each task:
191
+
192
+ - **Reflector** extracts patterns from successes and failures
193
+ - **Curator** maintains structured knowledge base with quality tracking
194
+ - **Semantic search** (optional) finds patterns by meaning, not keywords
195
+ - Automatically grows high-quality pattern library
196
+
197
+ ### Playbook Commands
198
+
199
+ ```bash
200
+ # View statistics
201
+ mapify playbook stats
202
+
203
+ # Search patterns
204
+ mapify playbook search "JWT authentication"
205
+
206
+ # View high-quality patterns
207
+ mapify playbook sync
208
+ ```
209
+
210
+ **Optional semantic search**: `pip install -r requirements-semantic.txt` for meaning-based matching. Details in [SEMANTIC_SEARCH_SETUP.md](docs/SEMANTIC_SEARCH_SETUP.md) and [ARCHITECTURE.md](docs/ARCHITECTURE.md#semantic-search).
211
+
212
+ **Playbook configuration**: See [ARCHITECTURE.md](docs/ARCHITECTURE.md#playbook-configuration) for top_k settings and optimization.
213
+
214
+ ## 💰 Cost Optimization
215
+
216
+ MAP Framework uses intelligent model selection per agent:
217
+
218
+ - **Predictor & Evaluator** use **haiku** (fast analysis) → ⬇️⬇️⬇️ cost
219
+ - **Actor, Monitor, Reflector, Curator** use **sonnet** (quality-critical) → balanced cost
220
+
221
+ **Result:** 40-60% cost reduction vs all-sonnet while maintaining code quality.
222
+
223
+ **See [USAGE.md](docs/USAGE.md#cost-optimization) for detailed cost breakdown and model override strategies**
224
+
225
+ ## 🔗 Hooks Integration
226
+
227
+ MAP integrates with Claude Code hooks for automated validation, knowledge storage, and context enrichment. Active hooks protect template variables, auto-store successful patterns, enrich prompts with relevant knowledge, and track performance metrics.
228
+
229
+ **See [ARCHITECTURE.md](docs/ARCHITECTURE.md#hooks-integration) and [.claude/hooks/README.md](.claude/hooks/README.md) for configuration**
230
+
231
+ ## 🛠️ Troubleshooting
232
+
233
+ ### Command Not Found
234
+
235
+ ```
236
+ Error: Slash command not recognized
237
+ ```
238
+
239
+ **Solution:**
240
+ - Ensure you're in a directory with `.claude/commands/` containing `map-*.md` files
241
+ - Use `/map-feature`, `/map-debug`, `/map-refactor`, or `/map-review`
242
+ - Run `/help` to see available commands
243
+
244
+ ### Agent Not Found
245
+
246
+ ```
247
+ Error: Agent file not found
248
+ ```
249
+
250
+ **Solution:** Ensure `.claude/agents/` directory contains all 8 agent files (task-decomposer.md, actor.md, monitor.md, predictor.md, evaluator.md, reflector.md, curator.md, documentation-reviewer.md)
251
+
252
+ ### Semantic Search Warning
253
+
254
+ ```
255
+ Warning: sentence-transformers not installed
256
+ ```
257
+
258
+ **Solution:** `pip install -r requirements-semantic.txt`
259
+ See [SEMANTIC_SEARCH_SETUP.md](docs/SEMANTIC_SEARCH_SETUP.md) for detailed troubleshooting
260
+
261
+ ### Infinite Loops
262
+
263
+ ```
264
+ Actor-Monitor loop exceeding iterations
265
+ ```
266
+
267
+ **Solution:** Orchestrator limits iterations to 3-5. Clarify requirements or add constraints.
268
+
269
+ **More troubleshooting**: See [INSTALL.md](docs/INSTALL.md#troubleshooting) for PATH issues, MCP configuration, and installation problems
270
+
271
+ ## 🔧 Customization
272
+
273
+ Agent prompts in `.claude/agents/*.md` use Handlebars template syntax for dynamic context injection. You can safely modify instructions, examples, and validation criteria, but **MUST NOT remove template variables** like `{{language}}`, `{{#if playbook_bullets}}`, or `{{feedback}}` — these are critical for orchestration and ACE learning.
274
+
275
+ **See [ARCHITECTURE.md](docs/ARCHITECTURE.md#customization-guide) for:**
276
+ - Safe vs unsafe modifications with examples
277
+ - Template variable reference
278
+ - Model selection per agent
279
+ - Adding custom agents
280
+ - Template validation and git hooks
281
+
282
+ ## 📊 Success Metrics
283
+
284
+ - **Monitor approval rate:** >80% first try
285
+ - **Evaluator scores:** average >7.0/10
286
+ - **Iteration count:** <3 per subtask
287
+ - **Playbook growth:** increasing high-quality patterns
288
+
289
+ ## 🤝 Contributing
290
+
291
+ Improvements welcome:
292
+ - Prompts for specific languages/frameworks
293
+ - New specialized agents
294
+ - CI/CD integrations
295
+ - Success story examples
296
+ - Plugin extensions for MAP Framework
297
+
298
+ ## 📄 License
299
+
300
+ MIT License — see LICENSE file for details
301
+
302
+ ## 🔗 References
303
+
304
+ - [MAP Paper - Nature Communications](https://github.com/Shanka123/MAP)
305
+ - [ACE Paper - arXiv:2510.04618v1](https://arxiv.org/abs/2510.04618v1)
306
+ - [Claude Code Documentation](https://docs.anthropic.com/en/docs/claude-code)
307
+
308
+ ---
309
+
310
+ **MAP is not just automation — it's systematic quality improvement through structured validation and iterative refinement.**
@@ -0,0 +1,28 @@
1
+ mapify_cli/__init__.py,sha256=JIRolEMacfn5s7K05lff8wXyp3eUCQJjoheaO3JooEk,67790
2
+ mapify_cli/playbook_manager.py,sha256=DL_xoVMm6zc7GXUUtLNpIgPXvCbc4eJTZITNTt_WyeI,18243
3
+ mapify_cli/recitation_manager.py,sha256=xGvHSSyRF-Fpa4G-akZDxILU3eWw--IJeWRPUjhggFk,18711
4
+ mapify_cli/semantic_search.py,sha256=xhJ5XE8FhbzLzlzFFUMRwv35wi0kS_zJJA13FlkqoKc,13408
5
+ mapify_cli/workflow_logger.py,sha256=0TYAJ8RJhG5ny75ic810oX61mQDJT6qLvFznDGtgrys,13656
6
+ mapify_cli/templates/settings.hooks.json,sha256=-vx0_su8yUaRW0xSOpVbZKBL-5S6lb6FDnr_ve_F9SE,654
7
+ mapify_cli/templates/agents/CHANGELOG.md,sha256=ngEltZqhHNI_AT25LTRNxy9tHPej3_e5oHg7XR581HI,5990
8
+ mapify_cli/templates/agents/MCP-PATTERNS.md,sha256=Mf7GlSP2_nxg38cdXptY5YUoI8kVkbuhUgzZo3BA3HI,10441
9
+ mapify_cli/templates/agents/README.md,sha256=5d52XLMf5HIvyzZAsm69PzkLjN5YgRq7qHIDkCjxEi4,5955
10
+ mapify_cli/templates/agents/actor.md,sha256=jtzrVspLp42kq8l4rFu9l7UgM84XG3NL2N2GuphT8-s,21355
11
+ mapify_cli/templates/agents/curator.md,sha256=LZJn9kgXdOSjiUl4SDUForM9u7bE6rvqqfmVKCQdxXU,40233
12
+ mapify_cli/templates/agents/documentation-reviewer.md,sha256=A_b_XcV3yVXvEc8QJHR7ebIdY-iIpBBasl_6VELtCMs,47421
13
+ mapify_cli/templates/agents/evaluator.md,sha256=_yv8lHsN0Fq3kLIOfAkmic8A9jMFRUiIM74qjY6gse0,34411
14
+ mapify_cli/templates/agents/monitor.md,sha256=HGFcXID6nkIPcbdp6-WHwW3XjDcdstRGqyBFdUrBS1E,34081
15
+ mapify_cli/templates/agents/predictor.md,sha256=_6EG-oeoFklfcIMpC71ZvzzRGWOj4MsA2c7mOOgjCaw,34890
16
+ mapify_cli/templates/agents/reflector.md,sha256=sTrrTSdbJNKkuZLQcRo1hTNiRwe-lGo3VSuNBbxbpnw,47071
17
+ mapify_cli/templates/agents/task-decomposer.md,sha256=eO2suI8hGMHOK8ffQvJ1pdX66DY12qAYliwbfh5ww9M,46011
18
+ mapify_cli/templates/agents/test-generator.md,sha256=NPR_lYYtbeig4aXE-URnRZfBv1psqc8ApxdU5_SOBCg,38966
19
+ mapify_cli/templates/commands/map-debug.md,sha256=aiUp-yolk6vL7a3z-svm5kn__4BRZr89PGLHaCYNI9Y,8531
20
+ mapify_cli/templates/commands/map-feature.md,sha256=YvJedmtLKPJhRTFc8XlXDO6lChMRQ8Djolg9XGM6xuQ,15309
21
+ mapify_cli/templates/commands/map-refactor.md,sha256=XWReF-q6WktxnCy279mFk6BdV23LzfoAXFRrqY_-h9U,9392
22
+ mapify_cli/templates/commands/map-review.md,sha256=YNjAEoEEGBnnIsR87NSqBU2mvHWTA1_3vbUJyj_M2uA,1301
23
+ mapify_cli/templates/hooks/README.md,sha256=uFZHJ7EdFcNtYnjBOhoAu1UMz5eRbxhqvSiH-PTFzIE,1761
24
+ mapify_cli/templates/hooks/validate-agent-templates.sh,sha256=YPtm9fw6oAjKgM68dgcH-ucF42lcTXqYnl5I5hcI7Xs,3262
25
+ mapify_cli-1.0.0.dist-info/METADATA,sha256=ZRbzhsrstY-gEdGhBRrq0gIgBgJfBr6mn5SnJpF4zqQ,10651
26
+ mapify_cli-1.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
27
+ mapify_cli-1.0.0.dist-info/entry_points.txt,sha256=JEbE3NIipHUFQOjczbX0IuqMLxfPHUQgTKWk2q4ihBw,43
28
+ mapify_cli-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ mapify = mapify_cli:main