{"data":{"slug":"discovered-945b2e4698fffdcb180d7f48d1fae7b082606b1a89c6b61b","title":"Neuralyzer: Prepare and Approve Replacement Project Memory for Coding Harnesses","summary":"Prepare a replacement project memory for coding sessions, review it, and restart a supported coding harness only after explicit approval.","url":"https:\/\/skillshunter.net\/skills\/discovered-945b2e4698fffdcb180d7f48d1fae7b082606b1a89c6b61b","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-945b2e4698fffdcb180d7f48d1fae7b082606b1a89c6b61b","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-945b2e4698fffdcb180d7f48d1fae7b082606b1a89c6b61b.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-945b2e4698fffdcb180d7f48d1fae7b082606b1a89c6b61b\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Explicit approval of the exact proposed memory is mandatory. The harness must be launched through `scripts\/neuralyzer run <harness>` for approval and reset. Python 3.10 or newer is required.","instructions":"---\nname: neuralyzer\ndescription: Use when the user explicitly invokes \/neuralyzer, $neuralyzer, @neuralyzer, or \/skill:neuralyzer to prepare a replacement project memory, review it, and restart a supported coding harness only after explicit approval.\ndisable-model-invocation: true\nmetadata:\n  opencode\/autoinvoke: false\n---\n\n# Neuralyzer\n\nForget what happened. Keep the context that matters. Believe this is where we started.\n\nNeuralyzer is the Men in Black memory device for coding sessions. Agent K understands what happened, constructs a coherent replacement memory, presents it to the user, and performs the flash only after explicit approval.\n\nThis is a genuine fresh session, not conversation compaction. The new agent receives only the approved replacement memory as its conversational starting context.\n\n## Supported harnesses\n\n- Claude Code: `\/neuralyzer`\n- Codex: `$neuralyzer`\n- OpenCode: `@neuralyzer`\n- Pi: `\/skill:neuralyzer`\n\nThe harness must be launched through `scripts\/neuralyzer run <harness>` for approval and reset. In an unsupervised session, `propose` still preserves a draft in the OS temporary directory, but `approve` returns `NEURALYZER_RESET_UNAVAILABLE`. Never claim the context was erased.\n\n## Non-negotiable guards\n\n- Never reset automatically.\n- Explicit approval of the exact proposed memory is mandatory.\n- A request to modify, clarify, add, or remove information is not approval.\n- If known background jobs, subagents, or tool calls are active, return `NEURALYZER_BACKGROUND_WORK_ACTIVE` and do not propose a flash.\n- Never modify project source files, Git state, global preferences, or session history.\n- Never delete the original conversation.\n- Never invent facts. Unknowns stay explicit.\n- Never run builds, tests, package managers, generators, or project scripts during verification.\n\nAllowed verification is limited to file reads\/searches and read-only Git queries such as `git status`, `git diff`, `git log`, `git ls-files`, and `git show`.\n\n## Procedure\n\n1. **Confirm supervision.** Check `NEURALYZER_SUPERVISED`, `NEURALYZER_STATE_DIR`, `NEURALYZER_SESSION_ID`, `NEURALYZER_AGENT`, and `NEURALYZER_GENERATION`. If unsupervised, continue through proposal only and explain that reset is unavailable.\n2. **Check for active work.** If work is still running, stop with `NEURALYZER_BACKGROUND_WORK_ACTIVE`.\n3. **Analyse.** Inspect the conversation and relevant project files. Separate verified facts from assumptions and discard obsolete decisions.\n4. **Automatically construct the replacement memory.** Use `references\/memory-template.md`. Write concise, actionable current reality; never write a narrative of the old conversation.\n5. **Propose.** Save the draft without arming a reset:\n\n   ```bash\n   python3 <skill-dir>\/scripts\/neuralyzer propose --memory - <<'MEMORY'\n   # Project Memory\n\n   ## Objective\n   ...\n   MEMORY\n   ```\n\n   On Windows, use `py -3` instead of `python3`. Record the returned draft ID and hash.\n6. **Present the complete proposal.** Show the entire memory in chat and explain that this is the context the new session will receive. Ask: \u201cReply APPROVE to use exactly this memory, or tell me what to change.\u201d\n7. **Review and revise.** If the user requests changes or provides an edited memory, create a new draft and present it again. Continue until the user explicitly approves or cancels. Never interpret an edit request as approval.\n8. **Cancel when asked.** If the user declines, run `neuralyzer cancel --draft <draft-id>` and stop. The old session remains active.\n9. **Approve only after confirmation.** Run:\n\n   ```bash\n   python3 <skill-dir>\/scripts\/neuralyzer approve --draft <draft-id>\n   ```\n\n   Approval binds to the exact draft hash and creates the immutable snapshot used by the fresh session.\n10. **Flash.** If the command prints `NEURALYZER_ARMED`, run no more tools and end the turn immediately. The supervisor performs the graceful reset.\n11. **Rebirth.** The fresh harness reads only the approved snapshot. It must not resume or receive the old conversation history.\n\n## Memory rules\n\nThe replacement memory must:\n\n- Be self-contained and concise.\n- Describe current reality, not the path taken.\n- Contain all eight required headings.\n- Avoid phrases such as \u201cearlier we discussed,\u201d \u201cpreviously the user decided,\u201d or \u201cin the previous conversation.\u201d\n- Never present discussed but unimplemented ideas as existing features.\n- Keep the latest verified decision when older decisions conflict.\n- Exclude secrets and credentials.\n- Stay below 64 KiB.\n\n## Failure behavior\n\n- Invalid proposal: fix the validation errors and present a new draft.\n- Modification request: revise and present again; do not approve.\n- Cancellation: remove the draft and leave the current session running.\n- Unsupervised session: preserve the draft and report `NEURALYZER_RESET_UNAVAILABLE` when approval is attempted.\n- Active background work: report `NEURALYZER_BACKGROUND_WORK_ACTIVE`.\n- Unsupported harness: report `NEURALYZER_UNSUPPORTED_HARNESS`.\n- Reset failure: preserve the draft and approved snapshot, report the exact error, and never imply success.\n\nThe supervisor prints the flash banner only after a genuine fresh session has started:\n\n```text\n\u26a1 NEURALYZED \u2014 fresh session, clean memory\n```\n","use_cases":["Prepare a replacement memory for a coding session","Review and approve a project memory before restarting a harness","Ensure a fresh session with only the approved context"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/giovannimazzuoccolo\/skills\/blob\/b2662b8a8325f1f7b92532e9964be255fbb12ed0\/skills\/neuralyzer\/SKILL.md","source_commit":"b2662b8a8325f1f7b92532e9964be255fbb12ed0","license":null,"version":null,"listing_approved_at":"2026-12-03","created_at":"2026-12-02T09:08:47.000000Z","updated_at":"2026-12-03T16:19:55.000000Z","seo_title":"Neuralyzer - Prepare and Approve Replacement Project Memory for Coding","seo_description":"Use Neuralyzer to construct, review, and approve a replacement project memory for coding sessions, ensuring a fresh start with only the approved context.","seo_keywords":["neuralyzer","coding session memory","project memory replacement","session reset","coding harness restart"]}}