Skip to content

akiiwa-games/AgentCompass / skills/dot-subagent

dot-subagent

Verified

Leaf-only runner for the local OpenAI Dot through dot2api. Use only after agent-compass has chosen Dot. Covers the runner, packets, code written and run on Dot's own computer, and how data reaches it (public re-fetch, text packets, the private GitHub repository) and how results come back. No routing and no spawning children.

scripts/remote_root.py

View on GitHub
"""Shared writable-root preflight for text and GitHub transfer packets."""
import re
import shlex


def check_root(root):
    if root != "auto" and not re.fullmatch(r"/[A-Za-z0-9_./\-]+", root):
        raise ValueError(f"root must be 'auto' or an absolute path of plain characters, got {root!r}")


def root_command(root="auto"):
    check_root(root)
    if root != "auto":
        return f"ROOT={root}"
    # Discover the live environment, then prove writability with a real file.
    # An explicit remote DOT_WORK_ROOT must succeed instead of silently relocating data.
    probe = '''import os, pathlib, tempfile
configured = os.environ.get("DOT_WORK_ROOT")
candidates = [configured] if configured else [os.environ.get("TMPDIR"), tempfile.gettempdir(), os.getcwd(), str(pathlib.Path.home())]
for candidate in candidates:
    if not candidate:
        continue
    try:
        root = pathlib.Path(candidate).resolve()
        with tempfile.TemporaryFile(dir=root):
            pass
    except OSError:
        continue
    print(root)
    break
else:
    raise SystemExit("No writable work root; configure DOT_WORK_ROOT or pass --root")
'''
    return f"ROOT=$(python3 -c {shlex.quote(probe)}) && [ -n \"$ROOT\" ]"


def root_step(xfer, root="auto"):
    command = root_command(root)
    return (f'`{command} && mkdir -p "$ROOT/rm-xfer-{xfer}/parts" '
            f'&& touch "$ROOT/rm-xfer-{xfer}/.w" && rm "$ROOT/rm-xfer-{xfer}/.w" '
            '&& printf "ROOT=%s\\n" "$ROOT"`. If no ROOT line is printed, stop and reply '
            '`EXECUTED: no` with the error. Use the printed ROOT as a literal path in every later '
            'command (variables may not survive between commands) and report it as `ROOT:` in the reply')
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: 471kUpdated 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