Skip to content

oliverweissl/context-garden / skills/mycelium

mycelium

Verified

Decide whether to spawn subagents (one, or several in parallel) to search, investigate or edit, and brief them well; passes finding notes between agents so they don't redo the same exploration. Use before delegating to an agent and after an agent reports findings.

bin/mycelium

View on GitHub
#!/usr/bin/env bash
# Thin wrapper so `mycelium` can be invoked without spelling out the python path.
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
if [ "${1:-}" = "mode" ]; then
  shift; exec python3 "$DIR/scripts/cg_mode.py" mycelium "$@"
fi
if [ "${1:-}" = "hook" ] && [ "${2:-}" = "budget" ]; then
  # Runs before every tool call: the main thread's calls carry no agent_id and
  # leave here without starting Python.
  payload=$(cat)
  case "$payload" in *'"agent_id"'*) ;; *) exit 0 ;; esac
  (cd "${CLAUDE_PROJECT_DIR:-$PWD}" && python3 "$DIR/scripts/cg_mode.py" mycelium --is-on)
  case $? in 0) ;; 3) exit 0 ;; *) exit 1 ;; esac
  printf '%s' "$payload" | python3 "$DIR/scripts/mycelium.py" "$@"
  rc=$?; [ "$rc" -eq 2 ] && exit 1; exit "$rc"
fi
if [ "${1:-}" = "hook" ]; then
  # Claude Code hook. Not on: silent no-op. A crash exits 1 with its traceback on
  # stderr, which Claude Code shows as a non-blocking hook error.
  (cd "${CLAUDE_PROJECT_DIR:-$PWD}" && python3 "$DIR/scripts/cg_mode.py" mycelium --is-on)
  case $? in 0) ;; 3) exit 0 ;; *) exit 1 ;; esac
  python3 "$DIR/scripts/mycelium.py" "$@"
  rc=$?; [ "$rc" -eq 2 ] && exit 1; exit "$rc"  # 2 would block the tool call
fi
exec python3 "$DIR/scripts/mycelium.py" "$@"
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall