Vishnu bhaga

From pjt222/agent-almanac · View interactive version

Vishnu bhaga is an AI agent skill from the GitHub repository pjt222/agent-almanac. Preservation and sustenance — maintaining working state under perturbation, memory anchoring, consistency enforcement, and protective stabilization. Maps Vishnu's sustaining presence to AI reasoning: holding what works steady, anchoring verified knowledge against drift, and ensuring continuity throu

How to use this skill

Skill file

Vishnu Bhaga

Preserve and sustain what is working — anchoring verified knowledge, maintaining consistency under perturbation, and protecting functional patterns from unnecessary change.

When to Use

Inputs

Procedure

Step 1: Inventory What Works

Before protecting anything, identify what is currently functional and verified.

Preservation Inventory:
+---------------------+---------------------------+------------------------+
| Category            | Verification Method       | Anchoring Action       |
+---------------------+---------------------------+------------------------+
| Verified Facts      | Confirmed via tool use    | Record source and      |
|                     | (file reads, test runs,   | timestamp; do not      |
|                     | API responses)            | re-derive              |
+---------------------+---------------------------+------------------------+
| Working Code        | Tests pass, behavior      | Do not refactor unless |
|                     | confirmed, user approved  | explicitly requested   |
+---------------------+---------------------------+------------------------+
| User Requirements   | Explicitly stated by      | Quote directly; do not |
|                     | the user in this session  | paraphrase or infer    |
+---------------------+---------------------------+------------------------+
| Agreed Decisions    | Decisions made and        | Reference the decision |
|                     | confirmed during this     | point; do not revisit  |
|                     | session                   | without new evidence   |
+---------------------+---------------------------+------------------------+
| Environmental State | File paths, configs,      | Verify before assuming |
|                     | tool availability         | unchanged              |
+---------------------+---------------------------+------------------------+
  1. For each category, list the specific items that are currently verified and working
  2. Note the verification method — how do you know this is true?
  3. Items without verification are not preserved — they are assumptions (and may need shiva-bhaga)

Got: A concrete inventory of verified, working elements with their evidence base.

If fail: If the inventory is sparse — little is verified — that itself is valuable information. Run heal to re-ground before attempting to preserve unverified assumptions.

Step 2: Identify Perturbation Sources

Name the forces threatening the stable state.

  1. Scope creep: Is the task expanding beyond what was agreed?
  2. Context drift: Are earlier facts being overwritten by more recent (possibly incorrect) reasoning?
  3. Optimization pressure: Is there an urge to improve something that is working adequately?
  4. External changes: Has the environment changed (files modified, tools unavailable)?
  5. Compression risk: Is the conversation approaching context limits where early decisions may be lost?

For each source, assess: is this a real threat or an anticipated one?

Got: Named perturbation sources with assessed severity (active threat vs. anticipated risk).

If fail: If no perturbation sources are apparent, preservation may not be needed — consider whether brahma-bhaga (creation) or continued execution is more appropriate.

Step 3: Anchor the Stable State

Apply specific techniques to protect what works from identified threats.

  1. Memory anchoring: For critical facts at risk of context drift, re-state them explicitly:
  1. Scope boundary enforcement: For scope creep, re-state the agreed scope:
  1. Change resistance: For working code under optimization pressure:
  1. State snapshot: For compression risk, create a mental checkpoint:
  1. Environmental verification: For external changes, re-check before proceeding:

Got: Each identified threat has a specific anchoring response. The stable state is explicitly protected.

If fail: If anchoring feels excessive — protecting everything equally — prioritize. What is the one thing that must not change? Protect that first.

Step 4: Sustain Through Action

Preservation is not passive — it requires ongoing attention during subsequent work.

  1. Before each action, check: "Does this threaten anything in the preservation inventory?"
  2. If yes, find an alternative approach that achieves the goal without disturbing the stable state
  3. If disturbance is unavoidable, acknowledge it explicitly and update the inventory
  4. Periodically re-verify preserved items — especially after complex operations
  5. When the task completes, confirm that preserved items remain intact

Got: The working state survives the current task intact. Changes were made only where needed and did not disrupt functioning components.

If fail: If a preserved item was inadvertently changed, assess the damage immediately. If the change broke something, revert. If the change was neutral, update the inventory. Do not leave the inventory stale.

Validation

Pitfalls

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.