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/test_remote_root.py

View on GitHub
import os
from pathlib import Path
import subprocess
import sys
import tempfile
import unittest

import pytest

from remote_root import root_command, root_step

pytestmark = pytest.mark.slow
import shlex


class RootPreflightTests(unittest.TestCase):
    def probe(self, environment):
        command = root_command()
        # Execute the generated Python preflight without assuming a local POSIX shell.
        code = shlex.split(command.split('$(python3 -c ', 1)[1].rsplit(') &&', 1)[0])[0]
        return subprocess.run([sys.executable, '-c', code], env=environment, capture_output=True, text=True)

    def test_configured_root_is_verified_and_an_unwritable_or_missing_root_stops(self):
        with tempfile.TemporaryDirectory() as directory:
            environment = dict(os.environ, DOT_WORK_ROOT=directory)
            result = self.probe(environment)
            self.assertEqual(result.returncode, 0, result.stderr)
            self.assertEqual(Path(result.stdout.strip()), Path(directory).resolve())
            environment['DOT_WORK_ROOT'] = str(Path(directory) / 'missing')
            result = self.probe(environment)
            self.assertNotEqual(result.returncode, 0)
            self.assertIn('No writable work root', result.stderr)

    def test_automatic_root_comes_from_current_environment(self):
        environment = dict(os.environ)
        environment.pop('DOT_WORK_ROOT', None)
        result = self.probe(environment)
        self.assertEqual(result.returncode, 0, result.stderr)
        self.assertTrue(Path(result.stdout.strip()).is_dir())
        self.assertNotIn('/workspace/shared', root_step('fixture'))


if __name__ == '__main__':
    unittest.main()
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