archive

A rule for recording finished coding tasks in an archive. It specifies files, headings, test notes, lessons learned, and links back to the project’s working notes.

In plain words
What is it for?
It helps create an archive directory, document implementation results and testing, and cross-link completed tasks from progress and context files.
Why use it?
It keeps completed work and its verification details available after the task leaves the active work list.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/kfnzero/mantis-mcp-server/archive
Clone the repo
git clone --depth 1 https://github.com/kfnzero/mantis-mcp-server

Made for: Cursor.

Per session 602 This file is loaded in full into every session.
When invoked 602 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00602 $0.00602
Opus 5 $0.00301 $0.00301
Sonnet 5 $0.00120 $0.00120
Haiku 4.5 $0.00060 $0.00060

Measured 2d ago against content hash 25ae96ddb1fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

archive 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 2d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • archive — 100% identical, 0 lines differ
.cursor/rules/Core Implementation/archive.mdc · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TASK ARCHIVING PROTOCOL

TL;DR: After completing a task, archive it in completed_tasks.md with Implementation Results, Completed Testing, Lessons Learned, and Documentation Updates sections. Cross-link in progress.md and activeContext.md.

📁 ARCHIVE SETUP

At project start:

  1. Create docs/archive/ directory
  2. Create completed_tasks.md with only this header:
    # Completed Tasks
    
  3. Don't add placeholder text like "No tasks completed yet"

📋 ARCHIVE FORMAT

For each completed task, use this exact format:

## Task: [Task Name] (v1.0)
Last Updated: YYYY-MM-DD

### Implementation Results
[What was implemented]

### Completed Testing
[How it was tested]

### Lessons Learned
[Key insights gained]

### Documentation Updates
[Memory Bank files updated]

See examples: archive-examples.mdc

🔄 CROSS-LINKING

After archiving, create these cross-links:

In progress.md:

## Completed Tasks
- [Task Name] - Completed on YYYY-MM-DD, see [archive entry](mdc:../docs/archive/completed_tasks.md#task-task-name-v10)

In activeContext.md:

## Recent Completions
- [Task Name] has been completed and archived. Next focus is on [Next Task].

✅ ARCHIVE CHECKLIST

Verify these items for every archive:

  • docs/archive directory exists
  • completed_tasks.md exists with proper header
  • Archive entry includes:
    • Task name with (v1.0) version
    • Date in YYYY-MM-DD format
    • All four required sections
  • No placeholder text remains
  • progress.md updated with archive link
  • activeContext.md updated with completion note

🔍 SECTION REQUIREMENTS

  1. Implementation Results

    • List specific features implemented
    • Note any deviations from original plan
    • Mention technologies used
  2. Completed Testing

    • Describe testing methods used
    • Note test results and coverage
    • Mention any edge cases tested

Read the full file on GitHub · 96 lines

Changes

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.

  1. 2d ago First seen · 96 lines · 602 tokens per session scan A 25ae96ddb1fb

Subscribe to this mod's changes

archive is a cursor rule published in the GitHub repository kfnzero/mantis-mcp-server (10 stars, last pushed 1y ago), licensed MIT. It adds 602 tokens to every session, about $0.0030 per session on Opus 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-31.