Find code we already built
Before writing another tool, look through related repositories for an existing implementation. Extract useful pieces, check them with tests, and add only the missing capabilities to Loopy.
What you get: A repeatable agent task that uses existing code and checks the result, rather than starting from scratch.
For agents: detailed instructions
When to use
Invoke when an app needs code already built across Anchor/Moji/HowAmI/Pretend Internet/etc, or when the user says the capability library is missing functionality. Search broadly by functions and evidence, not by the name of the first broken app.
Required inputs
Actual existing SDK exports and tests; connected repo file search; owner-authored AgentOps policy; provenance and license decisions; source files and tests for candidate mechanisms.
Procedure
- List relevant repos. Read their AGENTS/README where relevant and search all owner-approved code domains by behavior. Inspect exact source, callers and tests.
- Compare with current SDK module API index.
reuse,adapt,merge,keep separate,unresolvedorreject. Keep source paths/commit refs and bounds inprovenance/repo-capabilities.json. - Extract the smallest independently useful portable mechanism. Preserve protocol semantics, versioning, native runtime constraints and licensing. Do not copy private user evidence or secrets to a public artifact.
- Add executable code, TypeScript declarations, tests, upstream references and relevant docs in the existing SDK. Test success, denial, tampering, retry and offline scenarios as applicable.
- Use
npm test && npm run test:types && python3 validation/verify_package.py && python3 validation/verify_repo_audit.py. Distinguish local tests from live relay/device tests. - Version the package, build a clean installation consumer, rebuild the static docs, save recoverable ZIP/source to Library/Drive with SHA-256 readback. Never claim plugin/IC core installation or public release without evidence.
Stop conditions
Unclear source licensing, a rejected project as proposed canonical implementation, missing actual source, or integration without meaningful independent tests. Preserve candidates as pending, not fake completed APIs.