Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add major7apps/pensyve --skill memory-informed-refactorgit clone --depth 1 https://github.com/major7apps/pensyveWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/major7apps/pensyve/memory-informed-refactor)<a href="https://agentmods.dev/skills/major7apps/pensyve/memory-informed-refactor"><img src="https://agentmods.dev/badge/skills/major7apps/pensyve/memory-informed-refactor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/major7apps/pensyve/memory-informed-refactor"><img src="https://agentmods.dev/badge/skills/major7apps/pensyve/memory-informed-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.01037 |
| Opus 5.5 | $0.00017 | $0.00415 |
| Sonnet 5.5 | $0.00008 | $0.00207 |
| Haiku 4.5 | $0.00004 | $0.00104 |
Grade A, and why
memory-informed-refactor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Memory-Informed Refactor
Load historical context from Pensyve memory before starting a refactor. Surfaces past decisions, failed approaches, known pitfalls, and relevant patterns to avoid repeating mistakes.
When to Use
Invoke before refactoring any module, file, or component. Provides a structured briefing from memory so you start with full context.
Instructions
Step 1: Query Memory for Context
Normalize the target to a lowercase-hyphenated entity and pass it as entity
to every query. Run multiple pensyve_recall queries to gather comprehensive
context about the target within the shared recall budget:
- Direct matches:
pensyve_recallwith query"<target>"(limit: 5) - Refactor history:
pensyve_recallwith query"<target> refactor"(limit: 5) - Past failures:
pensyve_recallwith query"<target> failed"(limit: 5) - Past failures (alternate):
pensyve_recallwith query"<target> error"(limit: 5) - Design decisions:
pensyve_recallwith query"<target> decided"(limit: 5) - Dependencies:
pensyve_recallwith query"<target> depends"(limit: 5)
Step 2: Inspect the Entity
Call pensyve_inspect with entity: "<target>" and limit: 20 to get up to 20
memories for that entity. The tool has no pagination, so do not describe this
sample as a complete inventory.
Step 3: Compile Briefing
Organize the findings into a structured briefing. Deduplicate results that appear across multiple queries.
Refactor Briefing:
<target>Known Facts
- List of semantic memories about the target, ordered by confidence
- Include confidence scores
Past Decisions
- Architecture or design decisions related to this target
- Include the reasoning if available ("chose X because Y")
Past Outcomes
- Previous refactoring attempts and their results
- Bug fixes and their root causes
- What worked and what did not
Known Pitfalls
- Failed approaches (flagged clearly so they are not repeated)
- Edge cases or gotchas discovered in past sessions
- Dependencies that may be affected
Procedural Knowledge
- Action-outcome patterns with reliability scores
- Proven workflows related to this target
Recommendations
- Synthesize the above into 2-5 actionable recommendations
- Flag any conflicts or contradictions in the memory
Memory Gaps
- Areas where no relevant memories exist
- Suggest what to watch for during the refactor
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed a57dd8182b1d
- 3mo ago First seen · 104 lines · 42 tokens per session scan A 06bd1a8610fc
memory-informed-refactor is a skill published in the GitHub repository major7apps/pensyve (101 stars, last pushed today), licensed Apache-2.0. It adds 42 tokens to every session and 1,037 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
memory-informed-refactor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| memory-informed-refactormajor7apps/pensyve | Skill | 101 | today | Apache-2.0 | A | 42 | Claude Code, Codex |
| lemmalogJordyZomer/lemmalog | Skill | 355 | 2mo ago | MIT | A | 105 | Claude Code, Codex |
| ori-memoryaayoawoyemi/Ori-Mnemos | Skill | 341 | 2mo ago | Apache-2.0 | A | 54 | Claude Code, Codex |
| engrama-onboardscops/engrama | Skill | 9 | 26d ago | Apache-2.0 | A | 104 | Claude Code, Codex |
| read-handoffsedg-l/engram-mcp | Skill | 20 | 1mo ago | Apache-2.0 | A | 36 | Claude Code |
| handoffedg-l/engram-mcp | Skill | 20 | 1mo ago | Apache-2.0 | A | 47 | Claude Code |
| brain-writeinite-ai/inite-brain-service | Skill | 44 | yesterday | AGPL-3.0 | A | 97 | Claude Code |