OpenParable
Skip to content
← Back to skills

Query Memory

Research
query-memory

Query Memory is an Agent Skill for research published in the frenzymath/Rethlas repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Retrieve previously saved immediate conclusions, toy examples, counterexamples, failed paths, or branch states from memory. Use when you want to check whether earlier conclusions, examples, counterexamples, failed paths, or brach states can bring insight to the current question, claim, subgoal, or branch decision, or when you want to test a claim against previously saved counterexamples.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/frenzymath/Rethlas/blob/HEAD/agents/generation/.agents/skills/query-memory/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/query-memory, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Query Memory

Use this skill when you want to check whether earlier conclusions, examples, counterexamples, failed paths, or brach states can bring insight to the current question, claim, subgoal, or branch decision, or when you want to test a claim against previously saved counterexamples.

Input Contract

Read:

  • the current question, claim, subgoal, or branch decision
  • the specific type of prior artifact you want to recover
  • the most relevant channel list, chosen from:
    • immediate_conclusions
    • toy_examples
    • counterexamples
    • failed_paths
    • branch_states

Procedure

  1. Form a concrete natural-language query describing the information you want to recover.
  2. Choose the smallest relevant list of channels instead of searching everything by default.
  3. Call memory_search(problem_id, query, channels=..., limit_per_channel=...).
  4. Inspect the top hits in each requested channel.
  5. Summarize the useful retrieved items and explain how they affect the current proof state.
  6. If no useful item is found, say that clearly and then switch to another appropriate skill.

Output Contract

Append a summary record to events:

{
  "event_type": "query_memory",
  "query": "...",
  "channels": ["counterexamples", "failed_paths"],
  "limit_per_channel": 10,
  "results_summary": ["..."],
  "useful_hits": [
    {
      "channel": "counterexamples",
      "score": 0.0,
      "why_relevant": "...",
      "record_excerpt": "..."
    }
  ],
  "branch_id": "optional",
  "subgoal_id": "optional"
}

MCP Tools

  • memory_search
  • memory_append

Failure Logging

If the retrieval is not useful, append an events record with:

  • event_type="query_memory_stalled"
  • the attempted query
  • the channels searched
  • the reason the retrieved items were not useful