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_executable_discovery.py

View on GitHub
import os
from pathlib import Path
import sys
import tempfile
import unittest
from unittest.mock import patch
import github_send
sys.path.insert(0, str(Path(__file__).resolve().parents[3] / 'tray'))
import gateways
import runtime_paths

class DiscoveryTests(unittest.TestCase):
    cases = ((github_send, github_send.find_openssl, 'AGENTCOMPASS_OPENSSL'),
             (runtime_paths, gateways.chrome_path, 'MUSE2API_CHROMIUM_PATH'))

    def test_override_precedes_path(self):
        with tempfile.TemporaryDirectory() as temp:
            tool = Path(temp) / 'tool'
            tool.touch()
            for module, finder, variable in self.cases:
                with self.subTest(variable=variable), patch.dict(os.environ, {'USERPROFILE': str(Path.home()), variable: str(tool)}, clear=True), patch.object(module.shutil, 'which', return_value='/path/tool') as which:
                    self.assertEqual(str(finder()), str(tool))
                    which.assert_not_called()

    def test_bad_override_does_not_fall_back(self):
        for module, finder, variable in self.cases:
            with self.subTest(variable=variable), patch.dict(os.environ, {'USERPROFILE': str(Path.home()), variable: '/missing/tool'}, clear=True), patch.object(Path, 'is_file', return_value=False), patch.object(module.shutil, 'which') as which:
                with self.assertRaisesRegex(FileNotFoundError, variable): finder()
                which.assert_not_called()

    def test_path_precedes_candidates(self):
        for module, finder, variable in self.cases:
            with self.subTest(variable=variable), patch.dict(os.environ, {'USERPROFILE': str(Path.home())}, clear=True), patch.object(module.shutil, 'which', return_value='/path/tool'), patch.object(Path, 'is_file', side_effect=AssertionError('candidate checked before PATH')):
                self.assertEqual(Path(finder()), Path('/path/tool'))

    def test_common_install_candidate(self):
        for module, finder, variable in self.cases:
            with self.subTest(variable=variable), patch.dict(os.environ, {'USERPROFILE': str(Path.home())}, clear=True), patch.object(module.shutil, 'which', return_value=None), patch.object(Path, 'is_file', return_value=True):
                self.assertIn('Program Files', str(finder()))

    def test_missing_tool_has_actionable_error(self):
        for module, finder, variable in self.cases:
            with self.subTest(variable=variable), patch.dict(os.environ, {'USERPROFILE': str(Path.home())}, clear=True), patch.object(module.shutil, 'which', return_value=None), patch.object(Path, 'is_file', return_value=False):
                with self.assertRaisesRegex(FileNotFoundError, variable): finder()

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