# vir: Recall Your Past Coding Decisions

> Your agent checks your own past decisions, gotchas and patterns before it starts work, and cites the notes it uses.

vir: Recall Your Past Coding Decisions is a free AI agent skill on Agensi by Djordje Markovic, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Djordje Markovic](https://www.agensi.io/creators/djordje)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Rating: 5.0 out of 5 from 1 review
- Uses: 3
- Version: 1.0
- Last updated: 2026-10-07
- Security: scan passed (2026-10-07); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/vir-recall-your-past-coding-decisions
- Tags: ai-agents, productivity, documentation, cli, knowledge-management, agent-memory, claude-code, codex

## About this skill

Your coding agent forgets everything between sessions. You end up re-solving bugs you already fixed and re-opening decisions you already made. This skill lets the agent check your own history first: notes that [vir](https://github.com/djolex999/vir) distills from your past Claude Code and Codex sessions.

### What it does
- **Checks before non-trivial work.** It searches your notes for decisions, gotchas, patterns and tools related to the task.
- **Cites its sources.** Each note it relies on is linked by name, e.g. `[[stripe-webhook-raw-body-7c1e9a2f]]`, so you can open it.
- **Prefers your past choices** over a fresh default, and says when it's doing so.
- **Verifies against current code.** Notes can be out of date, so when the code disagrees it trusts the code and points out the conflict.
- **Is honest about misses.** "No vir notes on this" instead of invented citations.

### Safe by design
- Read-only: it never writes, moves or deletes notes.
- It never runs anything that spends money or changes state unless you ask.
- Searching is free: `vir query --json` is retrieval only, with no LLM call.
- If vir isn't installed, it says so once and gets out of the way.

### Requirements
This skill reads notes made by the **vir CLI** (free, open source, MIT):

```bash
npm install -g @djolex999/vir-cli
vir init
vir run

## Known limitations

Needs the vir CLI and a vault it has already built. Building the vault means vir distilling your past sessions with an LLM (API key, Claude Code subscription, or ChatGPT plan via Codex); the skill itself never spends anything. It's only as good as your history: a new install with few sessions has little to find. Notes can go stale, so the skill checks them against your current code and flags conflicts. Search is keyword-based unless you set up local embeddings (vir embed --setup). vir runs on macOS and Linux only; Windows isn't supported yet.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the vir: Recall Your Past Coding Decisions skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent my agent from repeating past mistakes?

This skill acts as a persistent memory for your AI agent, allowing it to search and retrieve documentation of past bugs, architectural decisions, and coding patterns you've already solved before it starts a new task.

### Do I need to install anything other than the skill itself?

The skill requires the open-source vir-cli to be installed on your machine, as it reads the distilled notes generated by the CLI from your Claude Code or Codex sessions.

### Which AI agents are compatible with this skill?

The skill is designed to work with advanced coding agents like Claude Code and Codex, functioning as a bridge between your local vir-generated knowledge base and the agent's active session.

### Is it safe to give the agent access to my notes?

The skill uses a read-only `vir query` command to search your local notes and does not have the permissions to write, move, or delete any of your files.

### What happens if the information in my past notes is out of date?

The agent is instructed to prioritize current code; if a note conflicts with the existing codebase, the agent will flag the discrepancy to you rather than following outdated advice.

### What exactly is included in this purchase?

You receive the prompt engineering and logic required for your agent to interface with the vir CLI, including the specific instructions for searching, citing, and verifying notes.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
