ai-agent-memory close-week.instructions.md

ai-agent-memory close-week.instructions.md is an instructions file for GitHub Copilot from ozgurkarahan/ai-agent-memory. It costs 456 tokens per session, scanned A, original, MIT.

A set of instructions for closing a work week in a Markdown-based activity and memory system.

In plain words
What is it for?
It is for producing weekly summaries, updating activity tables, recording what shipped, and preparing priorities for the next week.
Why use it?
It gathers the week's activity into a dated report and preserves the status, lessons, and follow-up work.

Instructions file for GitHub Copilot

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 instructions/ozgurkarahan/ai-agent-memory/close-week
Clone the repo
git clone --depth 1 https://github.com/ozgurkarahan/ai-agent-memory

Made for: GitHub Copilot.

Wrote 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.

agentmods badge for ai-agent-memory close-week.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ozgurkarahan/ai-agent-memory/close-week.svg)](https://agentmods.dev/instructions/ozgurkarahan/ai-agent-memory/close-week)
Your own site
<a href="https://agentmods.dev/instructions/ozgurkarahan/ai-agent-memory/close-week"><img src="https://agentmods.dev/badge/instructions/ozgurkarahan/ai-agent-memory/close-week.svg" alt="Measured on agentmods" height="20"></a>
Per session 456 This file is loaded in full into every session.
When invoked 456 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.00456 $0.00456
Opus 5 $0.00228 $0.00228
Sonnet 5 $0.00091 $0.00091
Haiku 4.5 $0.00046 $0.00046

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

Security

Grade A, and why

ai-agent-memory close-week.instructions.md 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 4d 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.

.github/instructions/close-week.instructions.md · 32 lines

What it actually says

Close Week

When the user says "close week", "Friday review", or "/close-week":

Resolve the memory root

Resolve WIKI_ROOT using memory/schema.md, then schema.md, then the pointer in AGENT.md. Stop with the missing path if none contains both schema.md and index.md. All paths below are relative to WIKI_ROOT.

  1. Resolve active ISO week (TZ Europe/Paris) → ops/weekly/2026-W{NN}.md.
  2. Aggregate ops/activity.jsonl events for that week — group by topic, count touches, list days, find last. Sort by touches desc.
  3. Regenerate the activity block between the sentinels (wholesale replace):
    <!-- BEGIN GENERATED ACTIVITY -->
    ...table...
    <!-- END GENERATED ACTIVITY -->
    
    Wikilink rule: [[topic]] only if resolved: true; else plain text + *(unresolved)*.
  4. Optional connected-source pull for "what shipped" — sent mail, collaboration decisions, meetings, or modified files. Skip when no work-data tool is available.
  5. Draft Friday review sections: Wins · Misses · Lessons → graduate (propose ingest targets, don't auto-run) · Seed for W+1 (top-3 carry-over per topic).
  6. Freeze: status: closed, bump date_updated, append log.md entry: ... CLOSE-WEEK | 2026-W{NN} | events: N | topics: [...] | wins: N | lessons-promoted: N.
  7. (Optional) Seed W+1 — create ops/weekly/{next}.md skeleton.

Anti-patterns:

  • ❌ Do not edit outside the sentinels on regenerate.
  • ❌ Do not auto-/ingest lessons — explicit user confirm per item.
  • ❌ Do not reopen a closed week. Late events → current open week with a note.
  • ops/activity.jsonl is append-only — never delete events at close.
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. 4d ago First seen · 32 lines · 456 tokens per session scan A 0ddde21f0b5f

Subscribe to this mod's changes

ai-agent-memory close-week.instructions.md is an instructions file published in the GitHub repository ozgurkarahan/ai-agent-memory (8 stars, last pushed 1mo ago), licensed MIT. It adds 456 tokens to every session, about $0.0023 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.