@zachjxyz/moxie 0.3.1 → 0.3.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # moxie
2
2
 
3
- Spec-driven multi-agent development with quorum convergence.
3
+ **M**ixture **o**f E**x**perts **i**n **E**ngineering — spec-driven multi-agent development with quorum convergence.
4
4
 
5
5
  moxie runs multiple AI coding agents through a structured pipeline — RFC, audit, fix, plan, build — where every phase requires unanimous agreement before moving on. Agents independently verify each other's work, catching errors that single-agent workflows miss.
6
6
 
package/bin/moxie CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  set -euo pipefail
18
18
 
19
- MOXIE_VERSION="0.3.1"
19
+ MOXIE_VERSION="0.3.2"
20
20
  # Resolve symlinks (npm installs bin as a symlink)
21
21
  _self="$0"
22
22
  while [ -L "$_self" ]; do
package/lib/phases.sh CHANGED
@@ -441,17 +441,19 @@ AGENTHEAD
441
441
  local order=1
442
442
 
443
443
  # CLI agents
444
- for idx in "${SELECTED_AGENT_INDICES[@]}"; do
445
- local name="${KNOWN_AGENT_NAMES[$idx]}"
446
- local cmd="${KNOWN_AGENT_CMDS[$idx]}"
447
- cat >> "$config_file" <<AGENT
444
+ if [ ${#SELECTED_AGENT_INDICES[@]} -gt 0 ]; then
445
+ for idx in "${SELECTED_AGENT_INDICES[@]}"; do
446
+ local name="${KNOWN_AGENT_NAMES[$idx]}"
447
+ local cmd="${KNOWN_AGENT_CMDS[$idx]}"
448
+ cat >> "$config_file" <<AGENT
448
449
  [agents.${name}]
449
450
  command = '${cmd}'
450
451
  order = ${order}
451
452
 
452
453
  AGENT
453
- order=$((order + 1))
454
- done
454
+ order=$((order + 1))
455
+ done
456
+ fi
455
457
 
456
458
  # Gateway agents
457
459
  for idx in "${SELECTED_GATEWAY_INDICES[@]}"; do
@@ -568,7 +570,9 @@ cmd_init() {
568
570
  SELECTED_GATEWAY_INDICES=()
569
571
  fi
570
572
 
571
- local total_selected=$(( ${#SELECTED_AGENT_INDICES[@]} + ${#SELECTED_GATEWAY_INDICES[@]} ))
573
+ local _cli_count=${#SELECTED_AGENT_INDICES[@]}
574
+ local _gw_count=${#SELECTED_GATEWAY_INDICES[@]}
575
+ local total_selected=$(( _cli_count + _gw_count ))
572
576
  if [ "$total_selected" -lt 2 ]; then
573
577
  echo "ERROR: At least 2 agents must be selected." >&2
574
578
  echo "moxie requires at least 2 agents for cross-model verification." >&2
@@ -591,9 +595,11 @@ cmd_init() {
591
595
 
592
596
  # List selected agents
593
597
  echo " Agents:"
594
- for idx in "${SELECTED_AGENT_INDICES[@]}"; do
595
- echo " - ${KNOWN_AGENT_LABELS[$idx]} (CLI)"
596
- done
598
+ if [ ${#SELECTED_AGENT_INDICES[@]} -gt 0 ]; then
599
+ for idx in "${SELECTED_AGENT_INDICES[@]}"; do
600
+ echo " - ${KNOWN_AGENT_LABELS[$idx]} (CLI)"
601
+ done
602
+ fi
597
603
  for idx in "${SELECTED_GATEWAY_INDICES[@]}"; do
598
604
  echo " - ${KNOWN_GATEWAY_LABELS[$idx]} (${KNOWN_GATEWAY_MODELS[$idx]}, AI Gateway)"
599
605
  done
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zachjxyz/moxie",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Run multiple AI coding agents through spec-driven phases with quorum convergence. Supports CLI agents (Claude, Codex, Qwen, Aider, Goose, Amp, Cline, Roo) and Vercel AI Gateway models.",
5
5
  "bin": {
6
6
  "moxie": "bin/moxie"