cd /news/ai-agents/a-governance-layer-that-keeps-ai-cod… Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-27289] src=github.com β†— pub= topic=ai-agents verified=true sentiment=↑ positive

A governance layer that keeps AI coding agents coherent across sessions

A solo founder has open-sourced V-COS, a governance layer for AI coding agents that prevents context decay and project degradation across multiple development sessions. The system enforces document hierarchy, hot memory, self-evaluation, and session protocols to keep AI agents coherent over time.

read5 min publishedJun 14, 2026

A governance layer for AI-native projects that stops them from degrading over time.

Context engineering at the level of a whole project β€” not a single prompt. The tools you already use solve pieces: memory-bank files keep context, spec-driven kits bound execution, sub-agents add specialization. None of them stitches it into one coherent system that keeps the project from decaying. V-COS is that stitch.

Building with AI is easy. Keeping it coherent across dozens of sessions is not.

If you build with an AI coding agent β€” Claude Code, Cursor, or anything similar β€” you know the slow decay. Every session starts a little colder. The agent contradicts a decision you documented last week. Your CLAUDE.md

swells to 600 lines of mixed philosophy, stack notes, and API routes that the agent loads in full and uses in part. Context bleeds. Nobody is checking whether the agent went beyond what you asked.

None of this is an AI problem. It's a governance problem. V-COS is the layer that fixes it.

V-COS wasn't designed in the abstract. It was extracted from a real product.

I'm a solo founder. I built and operate a production SaaS β€” a business copilot β€” with AI as my co-developer, across more than 25 development cycles. Squads of AI agents, a product-facing agent talking to real users, and continuous co-development sessions. At that volume, the decay above isn't an annoyance β€” it's the thing that quietly kills the project.

V-COS is the system that kept it coherent. It's not theory. It's what worked, written down.

1. Context decay between sessions. Without a declared protocol for what to load, the agent starts cold every time. V-COS defines an explicit document hierarchy plus a dedicated hot-memory file, so the agent knows exactly what to read and in what order.

2. Implicit hierarchy. When two documents conflict and no rule says which wins, the system fails silently. V-COS makes the hierarchy explicit: most specific wins, hot memory is the authority on current state.

3. Cognitive content mixed with technical reference. The agent shouldn't load database schemas to reason about strategy. V-COS separates always-loaded cognitive documents from on-demand reference.

4. No self-evaluation. Agents make unrequested refactors and touch files outside scope. V-COS embeds a self-evaluation checklist into the governance docs β€” applied before any delivery, not as a suggestion but as infrastructure.

5. No session protocol. Session close shouldn't depend on you remembering to ask for a state update. V-COS makes the close protocol mandatory and proactive β€” the agent updates hot memory because it's instructed to, not because it was reminded.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  LAYER 1 β€” DOCUMENT GOVERNANCE                  β”‚
β”‚  Hierarchy Β· Protocol Β· Memory Β· Evaluation     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  LAYER 2 β€” SKILLS ARCHITECTURE                  β”‚
β”‚  IDE skills Β· Squad skills Β· Taxonomy           β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  LAYER 3 β€” AGENT GOVERNANCE                     β”‚
β”‚  Design Β· Specialization Β· Orchestration        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Layers 1 and 2 are LLM-agnostic β€” they work with any model. Layer 3 ships with reference implementations for Claude Code, with principles that transfer to any multi-agent framework.

[Full architecture β†’ docs/02-architecture.md

]

Not an agent execution framework. It doesn't replace LangChain, CrewAI, or similar. It governs them.Not a project methodology. It doesn't replace Scrum, Shape Up, or Kanban. It sits underneath them.Not a memory solution. It doesn't replace RAG or vector stores. It's the governance that makes them coherent.

V-COS is the governance layer that makes all of those work together over time.

The minimum viable setup is four files:

your-project/
β”œβ”€β”€ AGENTS.md          ← entry point: hierarchy + protocol + self-evaluation
β”œβ”€β”€ CLAUDE.md          ← cognitive: project context + known pitfalls
β”œβ”€β”€ CYCLE-CURRENT.md   ← hot memory: active work + current state
└── docs/
    β”œβ”€β”€ REFERENCE.md   ← technical reference, loaded on demand
    └── CYCLE-ARCHIVE.md ← closed-cycle history

Copy the templates from templates/, adapt them to your project, and point your agent at

AGENTS.md

as the first file it reads.[Full setup guide β†’ docs/

]

v-cos/
β”œβ”€β”€ docs/             # the framework in depth β€” five problems, three layers, harness, spec-driven
β”œβ”€β”€ templates/        # copy-and-adapt files: AGENTS, CLAUDE, CYCLE-CURRENT/ARCHIVE, REFERENCE,
β”‚                     #   decisions, context-skill, agent + agents/ (reference sub-agents)
β”œβ”€β”€ skills/           # starter skill pack β€” agnostic, ready-to-adapt (Layer 2)
β”œβ”€β”€ implementations/  # how to wire it to Claude Code, Cursor, or any tool
└── examples/         # V-Strategy β€” the production project V-COS was extracted from

V-COS is a set of principles, not a tool lock-in. The reference implementation uses Claude Code, but the concepts map to any AI coding agent:

β€” the reference implementation (what I actually run)implementations/claude-code.md

β€” adapting to Cursorimplementations/cursor.md

β€” the concepts for any toolimplementations/generic.md

V-COS rests on eight governance principles that hold regardless of project, stack, or scale. A few:

Explicit hierarchy, never implicit. If two documents conflict and no resolution rule is declared, the system fails silently.Hot memory is living memory, not a diary. The active state file reflects only the present and the next step. Completed work moves to the archive.Self-evaluation is infrastructure, not a suggestion. If the checklist isn't written into the governance docs, it doesn't exist for a cold agent.The system serves the human, not the other way around. Governance exists to reduce friction, not create ceremony. V-COS should be invisible when it works.

[All eight β†’ PRINCIPLES.md

]

V-COS runs in production today, governing the development of a real SaaS product across 25+ cycles β€” IDE agent, AI squads, and a user-facing product agent, operated by one person. The examples/ directory documents how the framework is applied in practice.

V-COS is open source and evolving. It's a living system β€” the same way it treats hot memory. If you adopt it and find a gap, a missing pattern, or a better way to express a principle, open an issue or a PR. Patterns that prove themselves across real projects make their way into the core.

[MIT] β€” see LICENSE.

Vagner Firmino β€” solo founder & indie hacker, building V-Strategy.

V-COS was extracted from the cognitive infrastructure built in production for V-Strategy. It's not theory β€” it's what worked.

── more in #ai-agents 4 stories Β· sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/a-governance-layer-t…] indexed:0 read:5min 2026-06-14 Β· β€”