@magnitudedev/cli 0.0.1-alpha.2 → 0.0.1-alpha.4

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 (2) hide show
  1. package/README.md +99 -0
  2. package/package.json +29 -3
package/README.md ADDED
@@ -0,0 +1,99 @@
1
+ <p align="center">
2
+ <img src="wordmark.svg" alt="Magnitude" width="100%" />
3
+ </p>
4
+
5
+ <p align="center"><b>Open source coding agent</b></p>
6
+
7
+ <p align="center">
8
+ <a href="https://docs.magnitude.dev" target="_blank"><img src="https://img.shields.io/badge/📕-Docs-232f41?style=flat-square&labelColor=232f41&color=gray" alt="Documentation" /></a> <img src="https://img.shields.io/badge/License-Apache%202.0-232f41?style=flat-square&labelColor=232f41&color=gray" alt="License" /> <a href="https://discord.gg/VcdpMh9tTy" target="_blank"><img src="https://img.shields.io/discord/1305570963206836295?style=flat-square&logo=discord&logoColor=white&label=Discord&labelColor=5865F2&color=gray" alt="Discord" /></a> <a href="https://x.com/usemagnitude" target="_blank"><img src="https://img.shields.io/badge/-Follow%20Magnitude-000000?style=flat-square&labelColor=000000&color=gray&logo=x&logoColor=white" alt="Follow Magnitude" /></a>
9
+ </p>
10
+
11
+ Open source coding agent where everything happens in specialized subagents. We call this *subagent driven development*. The main agent stays focused on your intent, leading to stronger performance on longer tasks and higher quality code.
12
+
13
+ <p align="center">
14
+ <img src="interface.png" alt="Magnitude Interface" width="100%" />
15
+ </p>
16
+
17
+ ## Installation
18
+
19
+ ```bash
20
+ npm install -g @magnitudedev/cli
21
+ ```
22
+
23
+ After installation, navigate to the directory you want to work in and launch the TUI:
24
+
25
+ ```bash
26
+ magnitude
27
+ ```
28
+
29
+ This will launch Magnitude with a setup wizard for configuring providers and models.
30
+
31
+ ### Providers
32
+
33
+ Magnitude works with most major model providers out of the box.
34
+
35
+ **Subscription-based** — Use models you already pay for, no API key needed.
36
+ - **ChatGPT Plus/Pro** — Sign in with your OpenAI account
37
+ - **GitHub Copilot** — Sign in with your GitHub account
38
+
39
+ **API key** — Bring your own key from any of these providers.
40
+ - Anthropic, OpenAI, Google Gemini, OpenRouter, Vercel AI Gateway, Google Vertex AI, Amazon Bedrock, MiniMax, Z.AI, Cerebras
41
+
42
+ **Local models** — Connect to Ollama or any OpenAI-compatible endpoint. No auth required.
43
+
44
+ See the [providers docs](https://docs.magnitude.dev/configuration/providers) for setup instructions. If you would like another provider to be supported, please feel free to create an issue or raise a PR yourself.
45
+
46
+ ## Why Magnitude?
47
+
48
+ - **Avoids the dumb zone.** Since building happens in subagents, the main agent stays focused on your intent and effective even on longer, messier tasks.
49
+ - **Steerable subagents.** Subagents can surface blockers, ask clarifying questions, and be paused, resumed, or redirected mid-task.
50
+ - **Throw out the skills files.** Plan, review, debug, and browse are built-in subagents. No configuration needed, and the main agent actually uses them consistently.
51
+ - **Mix your models.** Chat with Claude, build with Codex, or use whatever combination fits your preferences for intelligence, speed, and cost.
52
+ - **Scoped toolsets, not modes.** Real coding jumps between planning and building too often for explicit mode toggles. Each subagent gets tools scoped to its role instead.
53
+ - **Talk to it while it works.** The main agent isn't blocked by implementation. Ask questions, clarify mid-build, or start planning what's next without interrupting anything.
54
+
55
+ ## Features
56
+
57
+ ### Main agent → subagent architecture
58
+ The main agent manages the conversation and delegates to specialized subagents (explorer, planner, builder, reviewer, browser, debugger), each with its own context window, toolset, and permissions. Subagents do focused work and report back, keeping the main agent's context clean.
59
+
60
+ ### Two-way agent communication
61
+ The main agent and subagents have full bidirectional messaging. The main agent can steer, redirect, or interrupt subagents mid-work. Subagents can message back when they hit blockers or need clarification. Not fire-and-forget delegation.
62
+
63
+ ### Context sharing via artifacts
64
+ Shared markdown documents pass context between agents directly. An explorer writes findings, a planner reads them and produces a plan, a builder reads the plan and implements. No context is lost to summarization, and the main agent doesn't burn output tokens on handoff.
65
+
66
+ ### Parallel by default
67
+ The main agent spins up multiple subagents concurrently and keeps working while they run. Exploring separate areas of the codebase, implementing unrelated features, or debugging multiple issues all happen in parallel.
68
+
69
+ ### Progressive disclosure of tool output
70
+ Tool output does not enter the context window by default. Agents inspect results explicitly and pull in only what they need, keeping noisy output out of the conversation.
71
+
72
+ ### Sensible default permissions
73
+ Commands are classified by risk. Read-only commands run freely. Normal commands are allowed in your project directory but blocked outside it. Dangerous commands are always blocked. No `--dangerously-skip-permissions`, no stuck permission prompts.
74
+
75
+ ### Built-in browser agent
76
+ A vision-based browser agent built on [browser-agent](https://github.com/magnitudedev/browser-agent) runs natively in the same runtime for verifying UI changes and behavior as part of the workflow.
77
+
78
+ ### Persistent memory
79
+ Magnitude learns your preferences and codebase conventions over time, storing them in `.magnitude/memory.md` and applying them automatically to future sessions. Skills and AGENTS.md are also supported.
80
+
81
+ ## Additional Info
82
+
83
+ ### Philosophy
84
+
85
+ The coding agent primitive is not solved. Most failures come from two recurring patterns: **context degradation** over long sessions, and **local maximum traps** where the agent settles for the nearest plausible fix. Magnitude is built around those failure modes. Read more in our [manifesto](https://magnitude.dev/manifesto).
86
+
87
+ ### Contributing
88
+
89
+ See the [contributing guide](https://docs.magnitude.dev/contributing) to get started.
90
+
91
+ ### Documentation
92
+
93
+ Full documentation is available at [docs.magnitude.dev](https://docs.magnitude.dev).
94
+
95
+ ### Acknowledgements
96
+
97
+ Built on top of [BAML](https://boundaryml.com), [Effect](https://effect.website), and [OpenTUI](https://github.com/anomalyco/opentui).
98
+
99
+ Inspired by other open-source coding agents, including [OpenCode](https://github.com/anomalyco/opencode) and [Codex](https://github.com/openai/codex).
package/package.json CHANGED
@@ -1,8 +1,33 @@
1
1
  {
2
2
  "name": "@magnitudedev/cli",
3
- "version": "0.0.1-alpha.2",
3
+ "version": "0.0.1-alpha.4",
4
4
  "description": "Magnitude AI coding agent",
5
- "license": "MIT",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/magnitudedev/magnitude.git",
9
+ "directory": "packages/cli"
10
+ },
11
+ "homepage": "https://github.com/magnitudedev/magnitude",
12
+ "bugs": {
13
+ "url": "https://github.com/magnitudedev/magnitude/issues"
14
+ },
15
+ "keywords": [
16
+ "ai",
17
+ "coding",
18
+ "agent",
19
+ "cli",
20
+ "magnitude"
21
+ ],
22
+ "author": {
23
+ "name": "Magnitude",
24
+ "email": "founders@magnitude.dev",
25
+ "url": "https://magnitude.dev"
26
+ },
27
+ "contributors": [
28
+ "Anders Lie <anders@magnitude.dev>",
29
+ "Tom Greenwald <tom@magnitude.dev>"
30
+ ],
6
31
  "bin": {
7
32
  "magnitude": "bin/magnitude.js"
8
33
  },
@@ -11,7 +36,8 @@
11
36
  "lib"
12
37
  ],
13
38
  "scripts": {
14
- "postinstall": "node lib/postinstall.js"
39
+ "postinstall": "node lib/postinstall.js",
40
+ "prepack": "cp ../../README.md ./README.md"
15
41
  },
16
42
  "publishConfig": {
17
43
  "access": "public"