First day with VULCAN
Your project is set up and vulcan project doctor passes. This tutorial walks you through the four tools you touch during daily work.
| Step | What you touch | Observable result |
|---|---|---|
| 1. Start an agent session | Session-start hook and AGENTS.md | A short digest prints to session context (Claude Code); the rules block of AGENTS.md reaches every agent that reads it |
| 2. Watch a guard work | Guard-writes hook | Mutating commands ask for confirmation (Claude Code, omp, pi; see Which agents are guarded) |
| 3. Write one knowledge page | OKF conformance gate | New concept page passes strict check |
| 4. Ask atlas | atlas MCP server | Search hits return chunk ids and bodies |
1. Start an agent session
In Claude Code, the session-start hook runs by itself at session start and injects a short digest into session context (a config problem, a launch warning, how to answer the owner). The rules are the block vulcan project sync wrote into AGENTS.md, which every agent reads; whether another agent runs the hook is in the table below. To test the hook directly, run it from the project root. The hook uses CLAUDE_PROJECT_DIR or the working directory. The output is under 2 KB:
$ bun node_modules/@venizia/vulcan/base/hooks/session-start.ts
# VULCAN session
The rules are in AGENTS.md ("Rules that must not be skipped"); the full text is `node_modules/@venizia/vulcan/base/rules.md` and `.agents/rules.md`.
## How to answer the owner
...The rules are in the block "Rules that must not be skipped" of AGENTS.md: the slot choices, V-W-02, V-W-03 and V-W-06, one line each, where scratch files go, and the rules sessions drop most. To inspect hook configuration and events, see Hooks.
2. Watch a guard work
The guard-writes hook inspects commands before execution. In Claude Code, it pauses actions reserved for humans and asks for your approval (the other agents differ, see Which agents are guarded). To test a cluster deployment command, run the guard against kubectl apply:
$ echo '{"tool_name":"Bash","tool_input":{"command":"kubectl apply -f deploy.yaml"}}' | bun node_modules/@venizia/vulcan/base/hooks/guard-writes.ts
{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"ask","permissionDecisionReason":"This command looks like an action the base rules reserve for a human:\n - V-W-03: deploying or hot-applying to a cluster\n\nThe rules reject ... hand it over instead of running it."},"permissionDecision":"ask","permissionDecisionReason":"..."}The output is shortened with .... The guard matches rule V-W-03 and returns an ask decision. The second pair of keys repeats the first for Copilot. The agent pauses, and you decide whether to allow the run. It is not a ban. To test a database write, run the guard against a SQL statement:
$ echo '{"tool_name":"Bash","tool_input":{"command":"psql -c \"DELETE FROM invoices\""}}' | bun node_modules/@venizia/vulcan/base/hooks/guard-writes.ts
{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"ask","permissionDecisionReason":"This command looks like an action the base rules reserve for a human:\n - V-W-02: writing to a database\n\nThe rules reject ... hand it over instead of running it."},"permissionDecision":"ask","permissionDecisionReason":"..."}This command matches rule V-W-02 and returns an ask decision. To test a read-only command, run the guard against ls -la:
$ echo '{"tool_name":"Bash","tool_input":{"command":"ls -la"}}' | bun node_modules/@venizia/vulcan/base/hooks/guard-writes.tsThe command produces no output and exits with code 0.
Other guards run beside it: guard-git and guard-outside (Hooks).
3. Write one knowledge page
VULCAN organizes documentation into an Open Knowledge Format (OKF) v0.2 bundle. demo-app is an example product. Write the concept page as given. The overview directory does not exist after adopting. Create the overview directory under .agents/knowledge/. Then create .agents/knowledge/overview/what-is-demo-app.md:
---
type: Concept
title: What demo-app is
description: demo-app is a small invoicing service that bills in euros and sends a PDF by mail.
---
# What demo-app is
demo-app turns an order into an invoice. The invoice is numbered per calendar year and mailed as a PDF.To register the concept, replace the vulcan:scaffold line in .agents/knowledge/index.md with this line:
- [What demo-app is](/overview/what-is-demo-app.md) - the product in one page.To check conformance and link validity, run vulcan okf check with the strict flag:
$ bun node_modules/.bin/vulcan okf check --strict
check: OK - OKF v0.2 + house rules - 2 files, 1 conceptsThe result 2 files, 1 concepts holds when the bundle has only these files.
4. Ask atlas
atlas indexes your documentation and answers agent queries over MCP. atlas reads the manifest generated by vulcan project sync in the adopt guide. vulcan project sync writes the server into .mcp.json when you chose an agent that reads it (Claude Code, omp or Copilot CLI). The other agents get their own MCP file; vulcan agent list shows which. The entry is:
{
"mcpServers": {
"atlas": {
"command": "bun",
"args": ["node_modules/.bin/vulcan", "atlas", "mcp", "--root", "."]
}
}
}To view the tools atlas provides, run vulcan atlas tools. Each description opens with when to call the tool and names your project:
$ bun node_modules/.bin/vulcan atlas tools
search When the user asks how something works in demo-app, how to build something in it, or about this project's conventions, search here before you answer from memory
get After `search`, read the hit here before you rely on it
symbol Before you import or call an export of demo-app, get its real signature, import path and source line here instead of recalling it
version When a version, an upgrade or an installed @venizia/* package comes up in demo-app, check here
changes When the user asks what changed, what a release added or what breaks on upgrade in demo-app, list the entries here
presets When you are asked to create a new app or package in demo-app, ask here which preset and which exact command to use before you write any fileTo search the knowledge bundle for invoice, send a search tool call:
$ printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"x","version":"0"}}}' '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search","arguments":{"query":"invoice"}}}' | bun node_modules/.bin/vulcan atlas mcp --root .
{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-06-18","capabilities":{"tools":{}},"serverInfo":{"name":"demo-app-atlas","version":"0.4.5"},"instructions":"Atlas holds the real code and docs of demo-app (this repository). ..."}}
{"jsonrpc":"2.0","id":2,"result":{"content":[{"type":"text","text":"{\"total\":1,\"returned\":1,\"hits\":[{\"id\":\"okf:overview/what-is-demo-app.md#\",\"corpus\":\"knowledge\",\"title\":\"What demo-app is\",\"headingPath\":\"What demo-app is\",\"anchor\":\"\",\"score\":-0.000001746031746031746,\"snippet\":\"# What demo-app is\\n\\ndemo-app turns an order into an invoice ... \",\"source\":\"demo-app\"}]}"}]}}These are the calls an agent makes in the editor. The first reply is cut with .... The instructions field of the first reply is what the agent tool adds to the agent's context (Claude Code does). The server name, source, and score show your own project name and bundle; version is the one you installed. The id okf:overview/what-is-demo-app.md# ends in # because the hit is the document opening chunk with no heading anchor. To fetch the whole document, send a get call with the # dropped:
$ printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"x","version":"0"}}}' '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get","arguments":{"id":"okf:overview/what-is-demo-app.md"}}}' | bun node_modules/.bin/vulcan atlas mcp --root .
{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-06-18","capabilities":{"tools":{}},"serverInfo":{"name":"demo-app-atlas","version":"0.4.5"},"instructions":"Atlas holds the real code and docs of demo-app (this repository). ..."}}
{"jsonrpc":"2.0","id":2,"result":{"content":[{"type":"text","text":"{\"id\":\"okf:overview/what-is-demo-app.md\",\"title\":\"What demo-app is\",\"headingPath\":\"What demo-app is\",\"body\":\"# What demo-app is\\n\\ndemo-app turns an order into an invoice. The invoice is numbered per calendar year and mailed as a PDF.\"}"}]}}The response returns the markdown body of the concept page.
Which agents are guarded
The guards in steps 1 and 2 run on every agent you picked, but how they run differs. vulcan project sync writes the wiring; Hooks has the detail.
| Agent | Guard | Status |
|---|---|---|
| Claude Code | hooks in .claude/settings.json (guards, session digest) | checked in real sessions |
| omp | .omp/hooks/pre/vulcan-guards.ts | checked with a real model (omp 18.8.9) |
| pi | .pi/extensions/vulcan-guards.ts; pi loads it after you trust the project | checked through pi 1.4.0's SDK with a scripted provider, not a real model |
| Antigravity | a vulcan-guards entry in .agents/hooks.json | checked with agy 1.4.7: a deny holds, and --dangerously-skip-permissions approves an ask |
| Codex | .codex/hooks.json; Codex runs it only after you trust it in /hooks | NOT VERIFIED; Codex cannot ask, so an ask is shown as a deny |
| Cursor | reads Claude's .claude/settings.json, no file written | NOT VERIFIED |
| Copilot (CLI, VS Code) | reads Claude's .claude/settings.json, no file written | NOT VERIFIED |
NOT VERIFIED means built from the agent's documentation and unit tests, never run in that agent. Do not rely on those guards yet.