Skip to content

stark-ai-de/agent-skills / incubator/skills/engineering-workflows/hindsight-memory

hindsight-memory

Verified

Set up, diagnose, enable or use scoped Hindsight memory without requiring Greppy. Use when the user requests approved project or workspace memory, compact Codex/pi session outcomes or source-backed reflection. Not for global memory cleanup or implicit ingestion of search-indexed repositories.

scripts/private_policy.py

View on GitHub
"""Keep Hindsight document storage private while preserving bank features."""

from hindsight_api.config import HindsightConfig
from hindsight_api.extensions.builtin.tenant import ApiKeyTenantExtension
from hindsight_api.extensions.operation_validator import OperationValidatorExtension, ValidationResult


_ALLOWED_FIELDS = frozenset(HindsightConfig.get_configurable_fields() - {"store_document_text"})


class PrivateTenantExtension(ApiKeyTenantExtension):
    async def get_allowed_config_fields(self, context, bank_id):
        return _ALLOWED_FIELDS


class PrivateStorageValidator(OperationValidatorExtension):
    async def validate_retain(self, ctx):
        try:
            engine = self.context.get_memory_engine()
            # shortcut: pinned Hindsight 1.2.1 has no public resolved-config API for validators; revisit on upgrade.
            resolved = await engine._config_resolver.resolve_full_config(ctx.bank_id, ctx.request_context)
            if resolved.store_document_text is not False:
                return ValidationResult.reject("Raw document storage is not allowed")
        except Exception:
            return ValidationResult.reject("Cannot verify private document storage")
        return ValidationResult.accept()

    async def validate_recall(self, ctx):
        return ValidationResult.accept()

    async def validate_reflect(self, ctx):
        return ValidationResult.accept()
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