$ show openclaw/discrawl
discrawl is a Go CLI application for archiving and searching Discord data. It syncs messages from the Discord API, imports Discord desktop cache, stores raw JSON in SQLite via sqlc-generated code, and provides subcommands for sync, publish, subscribe, share import, and remote status. It also exports/imports compressed JSONL snapshots with manifests and commits them to a Git snapshot repo using NUL-delimited path-only commits to preserve unrelated staged work. The repository is primarily an application, but it also vendors agent skills (autoreview, crabbox, discrawl) under .agents/skills, making it a hybrid monorepo.
The LLM identified 3 files worth highlighting for reuse:
Self-contained Python CLI for AI code review. Loaded by tests via runpy, supports --self-test, --channel, --prompt-file, --dataset, --json-output, --output, and parallel tests. Implements hardening: secret detection, path traversal protection, symlink safety, evidence-file validation, environment sanitization (safe_git_env), Git safety, and safe subprocess execution. Reusable as a standalone review harness.
Implements hybrid fusion search over semantic and keyword results, with fallback to keyword-only when semantic results are unavailable. Demonstrates a reusable search pattern for combining heterogeneous result sets in a store layer.
Snapshot repository pattern: write manifest, commit with git, verify files exist, check media/embedding paths, use filepath.FromSlash/ToSlash for cross-platform. Reusable for any Git-backed snapshot/export workflow.