Skip to content

deftai/vBRIEF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

118 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vBRIEF

Status: Beta

vBRIEF (Basic Relational Intent Exchange Format) is a universal format for structured thinking — from a quick todo list to a full project plan to an AI agent's memory. One schema, graduated complexity, token-efficient by design.

TLDR: Every AI agent invents its own memory format. Every planning tool has its own schema. vBRIEF is the common language — an open format that unifies todos, plans, playbooks, specs, and agent memory into a single Plan model. Start with 4 fields, graduate to DAG workflows. Token-efficient by design.

Quick Start

A minimal vBRIEF document has just four fields:

{
  "vBRIEFInfo": { "version": "0.5" },
  "plan": {
    "title": "My First Plan",
    "status": "running",
    "items": [
      { "title": "Do the thing", "status": "pending" }
    ]
  }
}

That's a valid vBRIEF document. Everything else is optional.

Graduated Complexity

Start simple. Add structure only when you need it.

Why vBRIEF?

  • Token efficient — TRON encoding cuts LLM token usage by 35–40%
  • DAG support — Model dependencies, pipelines, and conditional workflows
  • Graduated complexity — No boilerplate; add features only as needed
  • Interoperable — JSON Schema validation, standard JSON/TRON serialization
  • Open standard — RFC-style specification, no proprietary extensions
  • No vendor lock-in — Plain files, any tool can read/write them

Documentation

Document Description
docs/vbrief-spec-0.5.md Formal specification (RFC 2119)
docs/GUIDE.md Reference guide with patterns and recipes
docs/getting-started.md Tutorial for beginners
docs/tron-encoding.md TRON format reference
docs/vbrief-workflow-profile.md Workflow Profile extension (flow-based programming)
docs/MIGRATION.md v0.4 → v0.5 migration guide
libvbrief-ts/README.md TypeScript package usage and examples

Repo Structure

vBRIEF/
├── docs/                  # Guides, spec, and references
├── examples/              # Graduated complexity examples (JSON + TRON)
├── schemas/               # JSON Schema
├── libvbrief/             # Python library
├── libvbrief-ts/          # TypeScript library + examples
├── validation/            # Validators
├── tests/                 # Test suite
└── history/               # Archived drafts and old docs

Install

Python library:

pip install libvbrief

TypeScript package from this repo:

npm install ./libvbrief-ts

From a fresh clone:

git clone https://github.com/visionik/vBRIEF.git
cd vBRIEF
pip install -e .
npm install ./libvbrief-ts

Library Quick Examples

TypeScript parsing and validation:

import { loads, validate } from "libvbrief-ts";

const document = loads(`{
  "vBRIEFInfo": { "version": "0.5" },
  "plan": {
    "title": "Release Checklist",
    "status": "running",
    "items": [{ "title": "Ship TypeScript port", "status": "pending" }]
  }
}`);

const report = validate(document);
console.log(report.isValid);

TypeScript builder API:

import { PlanBuilder } from "libvbrief-ts";

const builder = new PlanBuilder("Ship libvbrief-ts", { status: "running" });
builder.addNarrative("Proposal", "Deliver a TypeScript port with Python parity");

const implement = builder.addItem("Implement package");
implement.addSubitem("Add schemas");
implement.addSubitem("Add tests");

builder.addItem("Write docs");
builder.addEdgesFrom([["implement-package", "write-docs", "blocks"]]);

const document = builder.toDocument();
console.log(document.toJson());

Validate

python validation/vbrief_validator.py your-plan.vbrief.json

Contributing

See CONTRIBUTING.md. Feedback and issues welcome at GitHub Issues.

License

Open standard. See repository for license details.

About

Open specification for todo lists, plans, and playbooks used by agentic coding systems

Resources

Contributing

Security policy

Stars

Watchers

Forks

Packages