vellum-assistant / assistant
AGENTS.md1.4k starsChanged 5 months agoMITView on GitHub
For error handling conventions (throw vs result objects vs null), see docs/error-handling.md. Subdirectory-scoped rules live in local AGENTS.md files throughout src/, some of them nested several levels down. Read the one nearest the code you are changing plus any above it, and follow the nearest where two disagree. git ls-files ':(top)assistant/src/**/AGENTS.md' lists them from anywhere in the tree. When you introduce a new env var that the assistant process needs to read at runtime, update src/tools/terminal/safe-env.ts as well. safe-env.ts maintains…
- Deletes or force-pushes
Trending
More talk lately.thin dataabout the whole repository
Who's talking about vellum-ai/vellum-assistant
- @githubfeed.bsky.social“🚀 GitHub Intelligence Drop project-golem (JavaScript • 🟢) ⭐ 592 → …”Bluesky · May 13, 2026 · 1 likes
- sudosubin/agents.nix“agent-plugins.github.vellum-ai.vellum-assistant: init at 0.12.6”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.vellum-ai.vellum-assistant: init at 0.12.6”GitHub · Oct 4, 2026
- awesome-selfhosted/awesome-selfhosted-data“Add Vellum”GitHub · Sep 15, 2026
- janhq/awesome-local-ai“Add Vellum personal AI assistant”GitHub · Sep 15, 2026
The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 14
Talked about on GitHub and Bluesky (14 times).
On GitHub · 13
- Oct 4, 2026agent-plugins.github.vellum-ai.vellum-assistant: init at 0.12.6 — sudosubin/agents.nix0 reactions
- Oct 4, 2026agent-skills.github.vellum-ai.vellum-assistant: init at 0.12.6 — sudosubin/agents.nix0 reactions
- Sep 15, 2026Add Vellum — awesome-selfhosted/awesome-selfhosted-data0 reactions · 3 comments
- Sep 15, 2026Add Vellum personal AI assistant — janhq/awesome-local-ai0 reactions
- Sep 15, 2026Add Vellum personal AI assistant — mihaiwillberich/awesome-desktop-ai-assistants0 reactions
8 more on GitHub
- Sep 15, 2026Add Vellum personal AI assistant — punkpeye/awesome-mcp-clients0 reactions
- Sep 15, 2026Add Vellum personal AI assistant — elyase/awesome-personal-ai-assistants0 reactions
- Sep 14, 2026Add Vellum to alternatives and comparison table — T31K/awesome-openclaw-alternatives0 reactions
- Aug 26, 2026feat: send a canned denial when the gateway refuses a sender — vellum-ai/imessage0 reactions
- Aug 24, 2026feat: pick the iMessage provider from a dropdown — vellum-ai/imessage0 reactions
- Aug 24, 2026feat: add Linq as a selectable iMessage provider — vellum-ai/imessage0 reactions
- Aug 14, 2026feat: engine settings, Lightpanda, and a plugin browser skill — vellum-ai/browser0 reactions
- Aug 2, 2026vellum-ai — Viktor6886/evaself0 reactions
On Bluesky · 1
- May 13, 2026🚀 GitHub Intelligence Drop project-golem (JavaScript • 🟢) ⭐ 592 → https://github.com/Arvincreator/project-golem vellum-assistant… — @githubfeed.bsky.social1 likes and repost
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository96 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cli/AGENTS.mdAGENTS.md
- clients/AGENTS.mdAGENTS.md
- gateway/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- assistant/CLAUDE.mdCLAUDE.md
- gateway/CLAUDE.mdCLAUDE.md
- skills/assistant-migration/references/claude.mdCLAUDE.md
- add-mcp-integrationSkill
- cli-testingSkill
- releaseSkill
- updateSkill
- vellum-boundary-guardSkill
- vellum-change-reviewSkill
- vellum-feature-flag-rolloutSkill
- vellum-migration-checklistSkill
- vellum-pr-readinessSkill
- vellum-skill-authoringSkill
- vellum-test-selectionSkill
- vellum-user-facing-copySkill
- amazonSkill
- api-mappingSkill
- assistant-migrationSkill
- chat-complex-documentsSkill
- chatgpt-importSkill
- cli-discoverSkill
- conversation-launcherSkill
- daily-briefingSkill
- deepgram-voiceSkill
- deploy-fullstack-vercelSkill
- discord-app-setupSkill
- doordashSkill
- elevenlabs-voiceSkill
- email-setupSkill
- fish-audioSkill
- frontend-designSkill
- geo-auditSkill
- geo-writingSkill
- gmailSkill
- gmail-triggerSkill
- google-calendarSkill
- guardian-verify-setupSkill
- headless-claude-codeSkill
- inbox-cleanupSkill
- inbox-managementSkill
- influencerSkill
- linear-app-setupSkill
- llm-cost-optimizerSkill
- llm-provider-setupSkill
- macos-automationSkill
- mailgun-setupSkill
- mcp-setupSkill
- meme-generatorSkill
- memory-corpus-ingestSkill
- notificationsSkill
- notionSkill
- oura-setupSkill
- ouraSkill
- outlook-calendarSkill
- outlookSkill
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 1 is common, 0 are distinctive, and 1 is very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
When you introduce a new env var that the assistant process needs to read at runtime, update src/tools/terminal/safe-env.ts as well.
- Common: line 17
Default to including it: If the var doesn't contain secrets (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Assistant Service — Agent Instructions
For error handling conventions (throw vs result objects vs null), see docs/error-handling.md.
Subdirectory-scoped rules live in local AGENTS.md files throughout src/, some
of them nested several levels down. Read the one nearest the code you are
changing plus any above it, and follow the nearest where two disagree.
git ls-files ':(top)assistant/src/**/AGENTS.md' lists them from anywhere in
the tree.
Adding new environment variables
When you introduce a new env var that the assistant process needs to read at runtime, update src/tools/terminal/safe-env.ts as well.
safe-env.ts maintains the allowlist of env vars that are forwarded to agent-spawned child processes (bash tool, skill sandbox, etc.). Anything not on the list is stripped to prevent credential leakage. If your new var is needed by commands the agent runs, it must be added.
Default to including it. If the var doesn't contain secrets (e.g. a URL, a feature flag, a path, a mode string), add it. Only omit it if it carries credential material (tokens, passwords, private keys) — those must stay isolated to CES.
CES_BOOTSTRAP_SOCKET_DIR is forwarded so children can reach CES over IPC. CES_SERVICE_TOKEN and CES_CREDENTIAL_URL are also forwarded so children can fail over to CES HTTP until that transport is removed. Credential protection is rules-based access control inside CES, not socket-path secrecy (see root AGENTS.md).
Daemon startup philosophy
The daemon must never block startup due to subsystem failures (DB, Qdrant, plugins, feature flags, etc.). If an individual subsystem fails, log the error and continue in degraded mode so the process remains reachable for health checks and diagnostics.
Exception, occupied client-facing transports: A transport is not a subsystem. If either client-facing transport's address is taken (the IPC socket in ipc/assistant-server.ts, the runtime HTTP port in runtime/http-server.ts), the daemon exits with an EADDRINUSE-coded error so emitDaemonError reports PORT_IN_USE. Half a daemon is worse than none: missing IPC makes it unmanageable while its background jobs still write the shared database, and missing HTTP makes it read healthy over IPC while the gateway proxies /v1/* to a foreign listener. Bind failures that are not address collisions (permission denied, fd exhaustion) stay non-fatal.
DB migration readiness gating
DB migrations run asynchronously during startup: the HTTP server binds (so /healthz answers) before initializeDb() finishes, and readiness is tracked in src/daemon/daemon-readiness.ts (setDbMigrating → setDbReady/setDbMigrationFailed). No code may touch the database — getDb(), getSqlite(), drizzle queries, raw SQL — unless getDbMigrationReadiness().ready is true or its execution provably starts after initializeDb() settles in daemon/lifecycle.ts. Querying earlier hits a partially-migrated schema ("no such table"/"no such column").
Existing enforcement, which new code must not bypass:
- HTTP requests are gated per-route in
runtime/http-server.ts; IPC methods inipc/assistant-server.ts; both derive their exempt set fromDB_MIGRATION_READINESS_EXEMPT_OPERATIONSindaemon-readiness.ts(health/liveness probes plus in-memory diagnostics such asdebug/database— anything exempted must never touch the DB). - Message sinks (
processMessage,processMessageInBackground) guard viaassertDbMigrationsReadyForTurn(). - Background sweeps are started by lifecycle only after migrations settle (
startRuntimeHttpServerBackgroundSweeps). - The migration-repair surface (
admin/rollback-migrationsplus allmigrations/import*/ preflight transports and their job-status route) is additionally allowed in the terminalfailedstate only — seeDB_MIGRATION_FAILED_STATE_EXEMPT_OPERATIONS. Never widen this to therunningstate: a rollback or import would race the in-flight migration runner. A successful repair does not clear the failed latch — the daemon must be restarted to re-run migrations and become ready.
When adding a new background job, timer, signal handler, or transport entry point that reaches the DB, either start it after initializeDb() settles in lifecycle, or check getDbMigrationReadiness().ready (and skip/queue when unready) inside it. Do not add readiness waits to probe endpoints — /healthz must stay static and instant.
Post-execution hooks
Tool post-execution hooks (src/daemon/tool-side-effects.ts) run after a tool executor returns. They are an observation-and-notification layer only: refresh client-side state, broadcast events, kick off orthogonal background work (e.g. icon generation). Hooks must not re-do work the executor already performed, and must not attempt recovery when the executor failed — failures surface in the tool result for the LLM to act on.
Do not coordinate hook behaviour by re-parsing the tool's JSON response to infer what the executor did (e.g. "if field X is missing, retry step Y"). That couples the LLM-facing response shape to internal daemon logic and breaks silently when the response shape evolves. Keep the hook's logic independent of the result payload, or if the hook genuinely needs executor-internal state, pass it through a typed side channel — never through a JSON round-trip.
Shared mutable resources written by more than one caller (e.g. dist/ directories produced by compileApp()) must be serialised per-resource so concurrent callers cannot race on rm -rf + write sequences.
Conversation event delivery and turn presence
A Conversation has one event sink, fixed at construction and never rebound: top-level conversations are built with the SSE hub (broadcastMessage), subagents with the wrapper that re-envelopes their events under the parent. Emit conversation-level events (activity state, confirmation prompts, notifier output, out-of-turn pushes) through conversation.emit, which delivers to the sink and then to addEventObserver observers. Observers are for policy layered on delivery (the voice bridge auto-resolves approval prompts it has no UI for), never for delivery itself. Do not add a per-subsystem sender slot, a bind/restore step around a turn, or a manual broadcastMessage for something the conversation already emits: an emitter that runs outside a live turn (queue drain, ACP or subagent notification, summarize route, call notifiers) reaches every client because the sink is always live.
Presence (whether a human is present to see UI and answer prompts) is per-turn state, never derived from delivery. Every dispatch path declares it: isInteractive on runAgentLoop / processMessage / enqueueMessage, or a wake's clientless pin of currentTurnIsNonInteractive. A caller that omits it gets a non-interactive turn (approval-gated tools are denied rather than left waiting on a prompt nobody may answer). hasNoClient is a getter over the in-flight turn's presence with no setter, so a new dispatch path cannot inherit whatever the previous turn left behind; if you are reaching for a way to set it, declare interactivity on the turn instead.
Route architecture: shared ROUTES array
Routes in src/runtime/routes/ are being migrated to a shared ROUTES array that serves as the single source of truth for both the HTTP server and the IPC server. Each route module exports ROUTES: RouteDefinition[] (from routes/types.ts), and the aggregator routes/index.ts collects them.
- Handlers are transport-agnostic. They accept optional params and return plain data (objects/arrays/primitives). They never import HTTP types, return
Responseobjects, or referenceRequest. ThrowRouteErrorsubclasses (fromroutes/errors.ts) for error cases — the adapters map these to wire-format errors. - HTTP adapter (
routes/http-adapter.ts): wraps handlers inResponse.json(), mapsRouteErrorto HTTP status codes. - IPC adapter (
ipc/routes/route-adapter.ts): mapsoperationId→ IPC method name, passes handler through directly. - Dual exposure is intentional. Every route in the shared
ROUTESarray is served over both HTTP and IPC. This is by design — it enables the gateway to call the daemon over IPC instead of HTTP, eliminating JWT token exchange on those paths (ATL-309 → ATL-311). Do not flag IPC exposure of shared routes as unintentional surface area. RouteDefinitioncarries everything:operationId,endpoint,method,handler,policyKey?,summary?,description?,tags?,responseBody?. The HTTP adapter reads all fields; the IPC adapter only needsoperationIdandhandler.
CLI ↔ daemon communication protocol
The CLI and daemon communicate over a Unix domain socket using length-prefixed binary framing: each frame is a 4-byte big-endian length followed by a payload. Messages use a JSON envelope { id, method, params?, headers? } for requests and { id, result?, error?, headers? } for responses.
Three response shapes are supported:
- JSON-only: a single JSON frame (no
content-lengthortransfer-encodingheader). - Binary: a JSON envelope with
headers: { "content-length": "<n>" }followed by one binary frame of exactlynbytes. - Chunked streaming: a JSON envelope with
headers: { "transfer-encoding": "chunked" }followed by one or more binary frames, terminated by a zero-length frame.
The server auto-detects legacy newline-delimited JSON from old CLI clients and handles it transparently. New code must use length-prefixed framing via writeMessage() / IpcFrameReader from @vellumai/ipc-server-utils (packages/ipc-server-utils/src/ipc-framing.ts).
CLI ↔ daemon version skew
The CLI and daemon are always shipped and upgraded together — there is no version skew between them. When migrating a route to the shared ROUTES array and updating the CLI to send structured params, backward compatibility with older CLI versions is not required. Do not add compat shims for flat-param callers that no longer exist.
IPC-only routes
Some routes are IPC-only (defined in src/ipc/routes/, not in the shared array). These are tool/CLI-specific methods (e.g. wake_conversation, upsert_contact) that have no HTTP counterpart. They follow the existing pattern: define a *_IPC_METHODS map in src/ipc/routes/ and add it to the list AssistantIpcServer iterates in src/ipc/assistant-server.ts (there is no index file; each map is imported by hand).
The module-level dependency-injection pattern (registerFooDeps()) used by some IPC routes is a known antipattern. New IPC-only routes should avoid it.
Telemetry wire contract
Telemetry event types are defined by a platform-generated wire contract (src/telemetry/telemetry-wire.generated.ts) that src/telemetry/types.ts layers over, with pre-flush validation against it. Adding a new event type starts platform-side, not here. The mechanics, the drift guards, and the cross-repo ordering are documented next to the code they govern: see src/telemetry/AGENTS.md.
Daemon i18n
User-facing copy the daemon generates as a hardcoded constant goes through src/i18n/. Persist the message key. Resolve with t(key, locale) at the HTTP/CLI/channel edge. Never persist a translated string, and never match stored display strings back to keys. See src/i18n/AGENTS.md.
Code comments
When writing or updating comments, do not reference code that has been removed. Comments should describe the current state of the codebase, not narrate its history. Avoid phrases like "no longer does X", "previously used Y", or "was removed in PR Z" — future readers should not need to understand past implementations to understand the current code.
Test machinery isolation
Test machinery — the test preload, the preload verifier, and shared test helpers — must not reach into src/. Regular *.test.ts files may import production modules they exercise (the module under test, types, sibling utilities) like any normal consumer; the strict no-src/ rule applies only to infrastructure that runs before the per-test workspace override is established.
The rule exists because test machinery and production code have inverted invariants: production assumes the workspace exists and is real; tests assume the workspace is a per-process temp dir that's safe to destroy. When a preload or helper reaches into src/ to set up state, it pulls in import-time side effects before the workspace override is set — and a future change to either side can silently break the isolation the helper was supposed to provide. The May 2026 DB-ghost incidents (3 in 4 days) all traced back to preload-time code touching production state through this kind of coupling. Per-test-file imports run after preload and inside the workspace override, so they don't have this problem.
Concretely:
- Test helpers (e.g.
src/__tests__/*-test-helpers.ts) use only node stdlib,bun:test, and sibling helpers. If they need to manipulate shared state that production code also reads, both sides read/write a typed slot underglobalThis.vellumAssistant.*. The namespace shape is declared once, in the ambientsrc/vellum-assistant-namespace.d.ts(VellumAssistantNamespaceand its slot value types) — the helper and the production module both refer to those global types by name, so they agree on the shape without either importing the other. Because that declaration is ambient (pure compile-time type info that reaches into nosrc/module), referring to it adds nothing to a helper's runtime import graph, so the no-src/-imports invariant still holds. To add a slot: declare its value type in that.d.ts, add the optional property toVellumAssistantNamespace, and have the owning module plus its test helper reference those globals instead of declaring their own copies. - The test preload (
src/__tests__/test-preload.ts) is the strictest: it must not import fromsrc/at all. Its only static imports are node stdlib,bun:test, and helpers insrc/__tests__/. Importing from a source module risks running its import-time side effects before the workspace override is set. - The preload verifier (
src/__tests__/test-preload-verifier.ts) runs after the main preload and asserts the override took effect (VELLUM_WORKSPACE_DIRmust resolve underos.tmpdir()). - Destructive ops (e.g.
rmSync(dbPath, ...)) in tests must callassertNotLiveDb(path)fromsrc/__tests__/assert-not-live-db.jsimmediately before the destructive call. The check is a per-callsite belt to the preload-verifier suspenders.
When in doubt: if a piece of test infrastructure (preload / helper / verifier) can live in __tests__/ without reaching into src/, it must. Reach for source-code coupling only when there is no __tests__/-only alternative that achieves the same invariant. This restriction is about preload-time infrastructure, not the test files themselves.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

