apm-cli 0.1.0__tar.gz

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.
Files changed (54) hide show
  1. apm_cli-0.1.0/AUTHORS +13 -0
  2. apm_cli-0.1.0/LICENSE +21 -0
  3. apm_cli-0.1.0/PKG-INFO +407 -0
  4. apm_cli-0.1.0/README.md +348 -0
  5. apm_cli-0.1.0/pyproject.toml +68 -0
  6. apm_cli-0.1.0/setup.cfg +4 -0
  7. apm_cli-0.1.0/src/apm_cli/__init__.py +5 -0
  8. apm_cli-0.1.0/src/apm_cli/adapters/__init__.py +1 -0
  9. apm_cli-0.1.0/src/apm_cli/adapters/client/__init__.py +1 -0
  10. apm_cli-0.1.0/src/apm_cli/adapters/client/base.py +36 -0
  11. apm_cli-0.1.0/src/apm_cli/adapters/client/vscode.py +301 -0
  12. apm_cli-0.1.0/src/apm_cli/adapters/package_manager/__init__.py +1 -0
  13. apm_cli-0.1.0/src/apm_cli/adapters/package_manager/base.py +27 -0
  14. apm_cli-0.1.0/src/apm_cli/adapters/package_manager/default_manager.py +123 -0
  15. apm_cli-0.1.0/src/apm_cli/cli.py +1415 -0
  16. apm_cli-0.1.0/src/apm_cli/compilation/__init__.py +29 -0
  17. apm_cli-0.1.0/src/apm_cli/compilation/agents_compiler.py +312 -0
  18. apm_cli-0.1.0/src/apm_cli/compilation/link_resolver.py +230 -0
  19. apm_cli-0.1.0/src/apm_cli/compilation/template_builder.py +137 -0
  20. apm_cli-0.1.0/src/apm_cli/config.py +60 -0
  21. apm_cli-0.1.0/src/apm_cli/core/__init__.py +1 -0
  22. apm_cli-0.1.0/src/apm_cli/core/operations.py +78 -0
  23. apm_cli-0.1.0/src/apm_cli/core/script_runner.py +253 -0
  24. apm_cli-0.1.0/src/apm_cli/deps/__init__.py +12 -0
  25. apm_cli-0.1.0/src/apm_cli/deps/aggregator.py +67 -0
  26. apm_cli-0.1.0/src/apm_cli/deps/verifier.py +102 -0
  27. apm_cli-0.1.0/src/apm_cli/factory.py +59 -0
  28. apm_cli-0.1.0/src/apm_cli/primitives/__init__.py +16 -0
  29. apm_cli-0.1.0/src/apm_cli/primitives/discovery.py +142 -0
  30. apm_cli-0.1.0/src/apm_cli/primitives/models.py +115 -0
  31. apm_cli-0.1.0/src/apm_cli/primitives/parser.py +197 -0
  32. apm_cli-0.1.0/src/apm_cli/registry/__init__.py +6 -0
  33. apm_cli-0.1.0/src/apm_cli/registry/client.py +156 -0
  34. apm_cli-0.1.0/src/apm_cli/registry/integration.py +154 -0
  35. apm_cli-0.1.0/src/apm_cli/runtime/__init__.py +9 -0
  36. apm_cli-0.1.0/src/apm_cli/runtime/base.py +63 -0
  37. apm_cli-0.1.0/src/apm_cli/runtime/codex_runtime.py +149 -0
  38. apm_cli-0.1.0/src/apm_cli/runtime/factory.py +130 -0
  39. apm_cli-0.1.0/src/apm_cli/runtime/llm_runtime.py +155 -0
  40. apm_cli-0.1.0/src/apm_cli/runtime/manager.py +226 -0
  41. apm_cli-0.1.0/src/apm_cli/utils/__init__.py +1 -0
  42. apm_cli-0.1.0/src/apm_cli/utils/helpers.py +101 -0
  43. apm_cli-0.1.0/src/apm_cli/version.py +54 -0
  44. apm_cli-0.1.0/src/apm_cli/workflow/__init__.py +1 -0
  45. apm_cli-0.1.0/src/apm_cli/workflow/discovery.py +100 -0
  46. apm_cli-0.1.0/src/apm_cli/workflow/parser.py +92 -0
  47. apm_cli-0.1.0/src/apm_cli/workflow/runner.py +193 -0
  48. apm_cli-0.1.0/src/apm_cli.egg-info/PKG-INFO +407 -0
  49. apm_cli-0.1.0/src/apm_cli.egg-info/SOURCES.txt +52 -0
  50. apm_cli-0.1.0/src/apm_cli.egg-info/dependency_links.txt +1 -0
  51. apm_cli-0.1.0/src/apm_cli.egg-info/entry_points.txt +2 -0
  52. apm_cli-0.1.0/src/apm_cli.egg-info/requires.txt +23 -0
  53. apm_cli-0.1.0/src/apm_cli.egg-info/top_level.txt +1 -0
  54. apm_cli-0.1.0/tests/test_console.py +27 -0
apm_cli-0.1.0/AUTHORS ADDED
@@ -0,0 +1,13 @@
1
+ # Authors
2
+
3
+ ## Project Maintainers
4
+
5
+ * Daniel Meppiel (@danielmeppiel) - Creator and Lead Maintainer
6
+
7
+ ## Contributors
8
+
9
+ Thank you to all our contributors!
10
+
11
+ [This space will be updated as contributors join the project]
12
+
13
+ Want to contribute? Check out our [Contributing Guidelines](CONTRIBUTING.md).
apm_cli-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Daniel Meppiel
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
apm_cli-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,407 @@
1
+ Metadata-Version: 2.4
2
+ Name: apm-cli
3
+ Version: 0.1.0
4
+ Summary: MCP configuration tool
5
+ Author-email: Daniel Meppiel <user@example.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 Daniel Meppiel
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Classifier: Programming Language :: Python :: 3
29
+ Classifier: Programming Language :: Python :: 3.9
30
+ Classifier: Programming Language :: Python :: 3.10
31
+ Classifier: Programming Language :: Python :: 3.11
32
+ Classifier: Programming Language :: Python :: 3.12
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Operating System :: OS Independent
35
+ Requires-Python: >=3.9
36
+ Description-Content-Type: text/markdown
37
+ License-File: LICENSE
38
+ License-File: AUTHORS
39
+ Requires-Dist: click>=8.0.0
40
+ Requires-Dist: colorama>=0.4.6
41
+ Requires-Dist: pyyaml>=6.0.0
42
+ Requires-Dist: requests>=2.28.0
43
+ Requires-Dist: python-frontmatter>=1.0.0
44
+ Requires-Dist: llm>=0.17.0
45
+ Requires-Dist: llm-github-models>=0.1.0
46
+ Requires-Dist: tomli>=1.2.0; python_version < "3.11"
47
+ Requires-Dist: rich>=13.0.0
48
+ Requires-Dist: rich-click>=1.7.0
49
+ Requires-Dist: watchdog>=3.0.0
50
+ Provides-Extra: dev
51
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
52
+ Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
53
+ Requires-Dist: black>=23.0.0; extra == "dev"
54
+ Requires-Dist: isort>=5.0.0; extra == "dev"
55
+ Requires-Dist: mypy>=1.0.0; extra == "dev"
56
+ Provides-Extra: build
57
+ Requires-Dist: pyinstaller>=6.0.0; extra == "build"
58
+ Dynamic: license-file
59
+
60
+ # Agent Primitives Manager (APM)
61
+
62
+ **Make any project compatible with AI-Native Development** - Stop the trial-and-error cycle of inconsistent AI results. APM implements the proven [AI-Native Development framework](https://danielmeppiel.github.io/awesome-ai-native/) that delivers reliable, repeatable workflows with any coding agent.
63
+
64
+ **Works with Any Coding Agent** - From GitHub Copilot to Cursor, Codex to Aider. APM creates portable Agent Primitives that ensure consistent AI behavior across all tools through the emerging [agents.md standard](https://agents.md).
65
+
66
+ **Think npm + Node.js, but for AI-Native Development.**
67
+
68
+ | Traditional Web Dev | AI-Native Development | Role |
69
+ |---------------------|----------------------|------|
70
+ | **npm** | **APM Package Manager** | Dependency resolution, distribution |
71
+ | **TypeScript Compiler** | **APM Primitives Compiler** | Transform Agent Primitives → agents.md format |
72
+ | **Node.js** | **Coding Agent Runtimes** | Execute compiled AI workflows |
73
+ | **JavaScript** | **Natural Language** | What runtimes actually understand |
74
+
75
+ ## Quick Start (2 minutes)
76
+
77
+ > [!NOTE]
78
+ > **📋 Prerequisites**: Get a GitHub fine-grained Personal Access Token with **read-only Models permissions** at [github.com/settings/personal-access-tokens/new](https://github.com/settings/personal-access-tokens/new)
79
+
80
+ ```bash
81
+ # 1. Install APM CLI (zero dependencies)
82
+ curl -sSL https://raw.githubusercontent.com/danielmeppiel/apm-cli/main/install.sh | sh
83
+
84
+ # 2. Set up your GitHub PAT and an Agent CLI
85
+ export GITHUB_TOKEN=your_token_here
86
+ apm runtime setup codex # Installs OpenAI Codex CLI
87
+
88
+ # 3. Transform your project with AI-Native structure
89
+ apm init my-ai-native-project
90
+
91
+ # 4. Compile Agent Primitives for any coding agent
92
+ cd my-ai-native-project
93
+ apm compile # Generates agents.md compatible with multiple Agent CLIs
94
+
95
+ # 5. Install MCP dependencies and execute agentic workflows (*.prompt.md files)
96
+ apm install
97
+ apm run start --param name="Developer"
98
+ ```
99
+
100
+ **That's it!** Your project now has reliable AI-Native Development workflows that work with any coding agent.
101
+
102
+ ## What You Just Built
103
+
104
+ You just created an AI-native project with:
105
+
106
+ - **Agent Primitives** - Configurable tools that deploy proven prompt + context engineering techniques
107
+ - **Universal Compatibility** - Works with GitHub Copilot, Cursor, Codex, Aider, and any agent supporting agents.md
108
+ - **Reliable Workflows** - Replace one-off prompting with reusable, structured AI workflows
109
+ - **Team Knowledge** - Capture and share AI patterns across your entire development team
110
+
111
+ ## Why This Matters
112
+
113
+ Most developers experience AI as inconsistent and unreliable:
114
+ - ❌ **Ad-hoc prompting** that produces different results each time
115
+ - ❌ **Context overload** that confuses AI agents and wastes tokens
116
+ - ❌ **Vendor lock-in** to specific AI tools and platforms
117
+ - ❌ **No knowledge persistence** across sessions and team members
118
+
119
+ **APM solves this** by implementing the complete [3-layer AI-Native Development framework](https://danielmeppiel.github.io/awesome-ai-native/docs/concepts/):
120
+
121
+ **🔧 Layer 1: Markdown Prompt Engineering** - Structured, repeatable AI instructions
122
+ **⚙️ Layer 2: Agent Primitives** - Configurable tools that deploy prompt + context engineering
123
+ **🎯 Layer 3: Context Engineering** - Strategic LLM memory management for reliability
124
+
125
+ **Result**: Transform from supervising every AI interaction to architecting systems that delegate complete workflows to AI agents.
126
+
127
+ ## AI-Native Development Maturity Journey
128
+
129
+ **From Manual Supervision → Engineered Architecture**
130
+
131
+ Most developers start by manually supervising every AI interaction. APM enables the transformation to AI-Native engineering:
132
+
133
+ ### 🔴 Before APM: Manual Agent Supervision
134
+ - Write one-off prompts for each task
135
+ - Manually guide every AI conversation
136
+ - Start from scratch each time
137
+ - *You're the bottleneck - every AI task needs your attention*
138
+
139
+ ### 🟢 With APM: Engineered Agent Delegation
140
+ - Build reusable Agent Primitives once
141
+ - Engineer context strategically
142
+ - Delegate complete workflows to AI
143
+ - *You're the architect - AI handles execution autonomously*
144
+
145
+ > **Learn the Complete Framework**: Explore the [AI-Native Development Guide](https://danielmeppiel.github.io/awesome-ai-native/) for approaches to Markdown Prompt Engineering, Agent Primitives, and Context Engineering.
146
+
147
+ ## How Agent Primitives Work
148
+
149
+ APM implements Agent Primitives - the configurable tools that deploy prompt engineering and context engineering techniques:
150
+
151
+ **🏗️ Initialize a project with AI-Native structure:**
152
+
153
+ ```bash
154
+ apm init my-project # Creates complete Agent Primitives scaffolding + apm.yml
155
+ ```
156
+
157
+ **⚙️ Generated Project Structure:**
158
+
159
+ ```yaml
160
+ my-project/
161
+ ├── apm.yml # Project configuration and script definitions
162
+ └── .apm/
163
+ ├── chatmodes/ # Role-based AI expertise with tool boundaries
164
+ │ ├── backend-dev.chatmode.md # API development specialist
165
+ │ └── frontend-dev.chatmode.md # UI development specialist
166
+ ├── instructions/ # Targeted guidance by file type and domain
167
+ │ ├── security.instructions.md # applyTo: "auth/**"
168
+ │ └── testing.instructions.md # applyTo: "**/*test*"
169
+ ├── prompts/ # Reusable agentic workflows
170
+ │ ├── code-review.prompt.md # Systematic review process
171
+ │ └── feature-spec.prompt.md # Spec-first development
172
+ ├── context/ # Optimized information retrieval
173
+ │ └── architecture.context.md # Project patterns and decisions
174
+ └── specs/ # Implementation-ready blueprints
175
+ └── api-endpoint.spec.md # Deterministic outcomes
176
+ ```
177
+
178
+ **🔄 Compile for Universal Agent CLI Compatibility:**
179
+
180
+ ```bash
181
+ apm compile # Transforms .apm/ primitives → agents.md standard
182
+ ```
183
+
184
+ This generates an `AGENTS.md` file compatible with all major coding agents.
185
+
186
+ ## Example: Structured AI Workflows
187
+
188
+ **Traditional Prompt** (inconsistent, manual):
189
+ ```
190
+ "Add authentication to the API"
191
+ ```
192
+
193
+ **Agent Primitives Workflow** (reliable, reusable):
194
+
195
+ ```markdown
196
+ ---
197
+ description: Implement secure authentication system
198
+ mode: backend-dev
199
+ mcp:
200
+ - ghcr.io/github/github-mcp-server
201
+ input: [auth_method, session_duration]
202
+ ---
203
+
204
+ # Secure Authentication Implementation
205
+
206
+ ## Context Loading
207
+ Review [security standards](../context/security-standards.md) and [existing auth patterns](../context/auth-patterns.md).
208
+
209
+ ## Implementation Requirements
210
+ - Use ${input:auth_method} authentication
211
+ - Session duration: ${input:session_duration}
212
+ - Follow [security checklist](../specs/auth-security.spec.md)
213
+
214
+ ## Validation Gates
215
+ 🚨 **STOP**: Confirm security review before implementation
216
+ ```
217
+
218
+ **Execute with any coding agent:**
219
+ ```bash
220
+ apm run implement-auth --param auth_method=jwt --param session_duration=24h
221
+ ```
222
+
223
+ ## Supported AI Runtimes
224
+
225
+ APM manages AI runtime installation and provides MCP tool integration:
226
+
227
+ - **⚡ OpenAI Codex CLI** (recommended) - Advanced code understanding with GitHub Models integration
228
+ - **🔧 LLM Library** - 100+ models from OpenAI, Anthropic, GitHub, local Ollama
229
+
230
+ ```bash
231
+ # APM manages runtime installation
232
+ apm runtime setup codex # Install Codex with GitHub Models
233
+ apm runtime setup llm # Install LLM library
234
+ apm runtime list # Show installed runtimes
235
+ ```
236
+
237
+ ## Packaging & Distribution
238
+
239
+ **Manage like npm packages:**
240
+
241
+ ```yaml
242
+ # apm.yml - Project configuration
243
+ name: my-ai-native-app
244
+ version: 1.0.0
245
+ scripts:
246
+ start: "RUST_LOG=debug codex implement-feature.prompt.md"
247
+ review: "codex code-review.prompt.md"
248
+ docs: "llm generate-docs.prompt.md -m github/gpt-4o-mini"
249
+ dependencies:
250
+ mcp:
251
+ - ghcr.io/github/github-mcp-server
252
+ ```
253
+
254
+ **Share and reuse across projects:**
255
+ ```bash
256
+ apm install # Install MCP dependencies
257
+ apm run start --param feature="user-auth"
258
+ apm run review --param files="src/auth/"
259
+ ```
260
+
261
+ ## Why APM? The Missing Infrastructure for AI-Native Development
262
+
263
+ **The Problem**: Developers have powerful AI coding assistants but lack systematic approaches to make them reliable and scalable. Every team reinvents their AI workflows, can't share effective patterns, and struggles with inconsistent results.
264
+
265
+ **The Solution**: APM provides the missing infrastructure layer that makes AI-Native Development portable and reliable.
266
+
267
+ ### Key Benefits
268
+
269
+ **🎯 Reliable Results** - Replace trial-and-error with proven AI-Native Development patterns
270
+ **🔄 Universal Portability** - Works with any coding agent through the agents.md standard
271
+ **📦 Knowledge Packaging** - Share AI workflows like code packages with versioning
272
+ **🧠 Compound Intelligence** - Primitives improve through iterative team refinement
273
+ **⚡ Team Scaling** - Transform any project for reliable AI-Native Development workflows
274
+
275
+ ### The Infrastructure Analogy
276
+
277
+ Just as npm revolutionized JavaScript by creating package ecosystem infrastructure, APM creates the missing infrastructure for AI-Native Development:
278
+
279
+ - **Package Management**: Share and version AI workflows like code dependencies
280
+ - **Compilation**: Transform Agent Primitives into runtime-compatible formats
281
+ - **Runtime Management**: Install and configure AI tools automatically
282
+ - **Standards Compliance**: Generate agents.md files for universal compatibility
283
+
284
+ ## The Complete AI-Native Framework
285
+
286
+ APM implements the complete [AI-Native Development framework](https://danielmeppiel.github.io/awesome-ai-native/docs/concepts/) through engineering practices:
287
+
288
+ ```mermaid
289
+ graph TD
290
+ A["📝 Agent Primitives<br/>.apm/ directory<br/>(.chatmode, .instructions, .prompt, .context, .spec)"] --> B["🔧 APM CLI"]
291
+
292
+ B --> D["📦 APM Package Manager<br/>Dependencies<br/>Templates"]
293
+ B --> C["⚙️ APM Primitives Compiler<br/>Script Resolution<br/>Primitive Compilation"]
294
+ B --> E["🏗️ APM Runtime Manager<br/>Install & Configure<br/>Codex, LLM, etc."]
295
+
296
+ C --> F["📄 AGENTS.md<br/>Portable Standard<br/>Cross-Runtime Compatible"]
297
+
298
+ F --> G["⚡ AI Coding Agents<br/>GitHub Copilot, Cursor<br/>Codex, Aider, etc."]
299
+
300
+ E --> H["🛠️ MCP Servers<br/>Tool Integration"]
301
+ E --> I["🧠 LLM Models<br/>GitHub Models<br/>Ollama, etc."]
302
+
303
+ style A fill:#e3f2fd,stroke:#1976d2,stroke-width:2px,color:#000
304
+ style B fill:#f3e5f5,stroke:#7b1fa2,stroke-width:3px,color:#000
305
+ style C fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px,color:#000
306
+ style D fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px,color:#000
307
+ style E fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px,color:#000
308
+ style F fill:#fff3e0,stroke:#ff9800,stroke-width:2px,color:#000
309
+ style G fill:#fce4ec,stroke:#c2185b,stroke-width:2px,color:#000
310
+ style H fill:#e8f5e8,stroke:#388e3c,stroke-width:1px,color:#000
311
+ style I fill:#fff3e0,stroke:#ff9800,stroke-width:1px,color:#000
312
+ ```
313
+
314
+ **Key Architecture**: APM CLI provides three core components: Package Manager (dependencies), Primitives Compiler (transforms .apm/ → agents.md), and Runtime Manager (install/configure AI tools). The compiled agents.md ensures your Agent Primitives work with any coding agent.
315
+
316
+ **Learn the Complete Framework**: [AI-Native Development Guide →](https://danielmeppiel.github.io/awesome-ai-native/)
317
+
318
+ ## Installation
319
+
320
+ ### Quick Install (Recommended)
321
+ ```bash
322
+ curl -sSL https://raw.githubusercontent.com/danielmeppiel/apm-cli/main/install.sh | sh
323
+ ```
324
+
325
+ ### Python Package
326
+ ```bash
327
+ pip install apm-cli
328
+ ```
329
+
330
+ ### Manual Download
331
+ Download the binary for your platform from [GitHub Releases](https://github.com/danielmeppiel/apm-cli/releases/latest):
332
+
333
+ ```bash
334
+ # Linux x86_64
335
+ curl -L https://github.com/danielmeppiel/apm-cli/releases/latest/download/apm-linux-x86_64.tar.gz | tar -xz && sudo mv apm-linux-x86_64/apm /usr/local/bin/
336
+
337
+ # macOS Intel
338
+ curl -L https://github.com/danielmeppiel/apm-cli/releases/latest/download/apm-darwin-x86_64.tar.gz | tar -xz && sudo mv apm-darwin-x86_64/apm /usr/local/bin/
339
+
340
+ # macOS Apple Silicon
341
+ curl -L https://github.com/danielmeppiel/apm-cli/releases/latest/download/apm-darwin-arm64.tar.gz | tar -xz && sudo mv apm-darwin-arm64/apm /usr/local/bin/
342
+ ```
343
+
344
+ ### From Source (Developers)
345
+ ```bash
346
+ git clone https://github.com/danielmeppiel/apm-cli.git
347
+ cd apm-cli && uv pip install -e .
348
+ ```
349
+
350
+ ## CLI Reference
351
+
352
+ **Complete Documentation**: See [CLI Reference](docs/cli-reference.md) for detailed command documentation.
353
+
354
+ ```bash
355
+ # Project initialization and setup
356
+ apm init my-project # Initialize AI-native project structure
357
+ apm runtime setup codex # Install Codex with GitHub Models
358
+ apm install # Install MCP dependencies
359
+
360
+ # Agent Primitives compilation (run before AI workflows)
361
+ apm compile # Generate agents.md from .apm/ primitives
362
+ apm compile --watch # Auto-regenerate on changes
363
+ apm compile --output custom.md # Custom output file
364
+
365
+ # Workflow execution
366
+ apm run start --param key=value # Execute workflows with parameters
367
+ apm run review --param files="src/**" # Run code review workflow
368
+ apm preview start --param key=value # Preview compiled workflow
369
+
370
+ # Runtime and debugging
371
+ apm runtime list # Show installed AI runtimes
372
+ apm list # Show available project scripts
373
+ RUST_LOG=debug apm run start # Enable debug logging
374
+ ```
375
+
376
+ ## Beyond Simple Prompts: Advanced Workflows
377
+
378
+ > [!TIP]
379
+ > **Workflow Composition**: While complex prompt chaining is planned for future releases, current Agent Primitives already enable reliable AI workflows through structured context engineering and modular primitives.
380
+
381
+ **Example: Multi-step Feature Development**
382
+ ```bash
383
+ # 1. Generate specification from requirements
384
+ apm run create-spec --param feature="user-auth"
385
+
386
+ # 2. Review and validate specification
387
+ apm run review-spec --param spec="specs/user-auth.spec.md"
388
+
389
+ # 3. Implement feature following specification
390
+ apm run implement --param spec="specs/user-auth.spec.md"
391
+
392
+ # 4. Generate tests and documentation
393
+ apm run test-feature --param feature="user-authentication"
394
+ ```
395
+
396
+ Each step leverages your project's Agent Primitives for consistent, reliable results.
397
+
398
+ ## Community & Resources
399
+
400
+ - 📚 **[AI-Native Development Guide](https://danielmeppiel.github.io/awesome-ai-native/)** - Complete framework documentation
401
+ - 📖 **[Documentation](docs/index.md)** - APM CLI guides and examples
402
+ - 🤝 **[Contributing](CONTRIBUTING.md)** - Help build the AI-native ecosystem
403
+ - ⭐ **Star this repo** if APM helps transform your AI development workflow!
404
+
405
+ ---
406
+
407
+ **APM transforms any project into reliable AI-Native Development.**