-
Notifications
You must be signed in to change notification settings - Fork 0
Reading Paths
Audience-based tours through the wiki. Each path is short on purpose — pick the one that matches why you are reading, walk it in order, and you end the walk with a complete mental model for your role.
If you are editing the wiki and add a page that belongs in one of these tours, update this file.
You have heard of stud-cli and want to know what it is.
- First Run flow — what the very first invocation looks like (provider setup + project-trust prompt). Grounds the rest of the path in a concrete experience.
- Vision — problem, philosophy, non-goals.
- Glossary — the vocabulary used everywhere else. Skim; come back as needed.
- High-Level Architecture — one diagram of the whole system.
- Extensibility Boundary — what is extensible vs. core.
- Default Chat flow — an end-to-end turn with no SM attached. Concretizes the diagram.
After this you should be able to answer: What does stud-cli do that existing tools do not? What is core vs. extension? How does one turn actually flow?
You want to write a provider, tool, hook, UI, logger, command, Session Store, or Context Provider.
- Vision and Extensibility Boundary — make sure your idea is an extension and not a core change.
-
Glossary — especially
attached,loaded,active,bundled,default,immutable. - Contract Pattern — the meta-shape every extension implements.
- Extension Lifecycle — init / activate / deactivate / dispose and reload safety.
- Host API — what your extension can request from core.
- Validation Pipeline — load-time checks and severity.
- Configuration Scopes — which layer your extension ships in and how overrides work.
-
The contract for your category:
-
Providers — and Provider Params for the
defaultParamsshape and per-adapter native fields. - Tools
- Hooks
- UI
- Loggers
- State Machines
- Commands
- Session Stores
- Context Providers
-
Providers — and Provider Params for the
-
Subagent Sessions — read if your tool, hook, or UI may interact with delegated child sessions, or if your provider should expect concurrent requests from the same parent session's subagents. The bundled
delegatetool is the reference example. - Versioning and Compatibility — how your contract version interacts with core versions.
- Conformance and Testing — what contract tests you should run.
- A matching reference extension, when available, under
reference-extensions/. - Prompt Caching — required reading if you write a Provider or Protocol Adapter; optional but useful for Context Provider authors who shape the system layer.
Before shipping, also read anything under security/ that applies to your category — especially Secrets Hygiene if you touch env or config, and LLM Context Isolation if you contribute to context.
You want to drive a deterministic workflow where the LLM is an executor, not the orchestrator.
- Vision — the deterministic-workflow philosophy.
-
Glossary — especially
stage,stage definition,stage execution,orchestrator session,turn stage,attached,completionTool,turnCap. - State Machines contract — the Stage pipeline; SM authority; cardinality (one attached).
- SM Stage Lifecycle — the six steps per stage (Setup → Init → CheckGate → Act → Assert → Exit).
- Stage Definitions — the markdown + frontmatter format you write.
-
Stage Executions — how a stage runs inside the orchestrator session;
grantStageTool; fan-out and joins; strict cancel. - Execution Model and Message Loop — the turn stages that compose inside each stage execution.
- Hook Taxonomy — per-call guard hooks are orthogonal to your SM; the SM owns workflow, guards own argument-sensitive policy.
-
Command Model — commands are orthogonal to SM; the user can always run
/save,/resume, etc. - Extension State — how your SM's state rides the session.
- Security Modes and Tool Approvals — stage-level precedence over mode.
- Determinism and Ordering — what is deterministic and what is not (compaction, sampling, retries, user approvals, clock).
- Context Providers contract — sanctioned way to feed facts into the LLM's view.
- Concurrency and Cancellation — stage cancellation scope and the strict-cancel rule for parallel fan-out.
- State Machine Workflow flow and Ralph case study — concrete walkthroughs.
- LLM vs SM Orchestration — side-by-side comparison.
After this you should be able to answer: What does my SM own? What does a stage look like on disk? What does Act see? What happens when a stage fails or a sibling is cancelled? How does state survive a resume?
You are reviewing stud-cli for deployment, audit, or threat-model purposes.
- Vision and Extensibility Boundary — know the attack surface.
- Trust Model — the overall posture.
- Project Trust — the first-run prompt; trust list.
- Extension Isolation — v1 is in-process, no sandbox. Read this explicitly.
- Extension Integrity — signing, checksums, pinning — what is and is not available in v1.
- LLM Context Isolation — env / settings never enter the LLM by default.
- Secrets Hygiene — env provider; settings.json permissions; project-env commit footgun; session-manifest secret ban.
- Security Modes — mode is session-fixed.
- Tool Approvals — SM precedence + mode gate + interactor; subagent envelope and child-session approvals.
-
Subagent Sessions — the user-approved spawn envelope; what an orchestrator LLM can and cannot launder through
delegate. Read in tandem with the Subagent Delegation flow. - MCP Trust — server startup inherits project trust.
-
Sandboxing — container guidance for
yolo; what core does not enforce in v1. -
Audit Trail — durable record of authoritative actions; subagent attribution chain (
parentSessionId/subagentId/depth). - Project First-Run Trust flow — trust prompt in context.
- Headless Run flow — headless + SM / headless + yolo / headless + ask (error). Subagent IP requests follow the same uniform emit-and-halt rule.
After this you should be able to answer: What is trusted by default? What is the blast radius of a malicious extension in v1? Where can secrets leak? What is audited?
You run stud-cli somewhere, possibly headless, and you want the mental model to operate it.
- Vision — non-goals especially.
- Project Root — cwd only, no walk-up.
- Configuration Scopes — bundled / global / project.
- Extension Discovery — how layers combine at startup.
- Extension Reloading — what can and cannot hot reload.
- Headless and Interactor — SM-attached vs. interactor-required cases.
- Session Lifecycle, Session Manifest, Persistence and Recovery.
- Determinism and Ordering — what is reproducible and what is not.
- Prompt Caching — what stud-cli caches across turns, where the cache invalidates, what observability fields land on the usage bag. Material for cost and latency budgeting.
- Observability and Audit Trail — where signal comes from.
- Health and Diagnostics — startup diagnostics, extension health.
- Session Resume flow — crash → resume with manifest validation; drift.
- Scope Layering flow — override and extend across bundled, global, project.
You want to understand the whole thing, in order.
Read in directory order, depth-first, following the plan's writing sequence:
-
overview/— Vision, Glossary, High-Level Architecture, Extensibility Boundary. -
core/— the kernel. -
contracts/— the normative surfaces. -
context/,security/,operations/,runtime/— cross-cutting. -
providers/,integrations/— backends. -
reference-extensions/— examples. -
flows/,case-studies/— end-to-end stories that tie everything together.
When you add a new page:
- If it belongs in Path 1–5, add it at the right step.
- If it belongs only to Path 6, add it to its directory group there.
- If it does not belong to any path, ask whether the page should exist at all.
- Execution Model
- Message Loop
- Concurrency and Cancellation
- Error Model
- Event and Command Ordering
- Event Bus
- Command Model
- Interaction Protocol
- Hook Taxonomy
- Host API
- Extension Lifecycle
- Env Provider
- Prompt Registry
- Resource Registry
- Session Lifecycle
- Session Manifest
- Persistence and Recovery
- Stage Executions
- Subagent Sessions
- Contract Pattern
- Versioning and Compatibility
- Deprecation Policy
- Capability Negotiation
- Dependency Resolution
- Validation Pipeline
- Cardinality and Activation
- Extension State
- Conformance and Testing
- Providers
- Provider Params
- Tools
- Hooks
- UI
- Loggers
- State Machines
- SM Stage Lifecycle
- Stage Definitions
- Commands
- Session Store
- Context Providers
- Settings Shape
- Trust Model
- Project Trust
- Extension Isolation
- Extension Integrity
- LLM Context Isolation
- Secrets Hygiene
- Security Modes
- Tool Approvals
- MCP Trust
- Sandboxing
- Configuration Scopes
- Project Root
- Extension Discovery
- Extension Installation
- Extension Reloading
- Headless and Interactor
- Determinism and Ordering
- Launch Arguments
- Network Policy
- Platform Integration
Tools
UI
Session Stores
Loggers
Providers
Hooks
Context Providers
Commands
- First Run
- Default Chat
- Tool Call Cycle
- Hook Interception
- Guard Deny Reproposal
- State Machine Workflow
- SM Stage Retry
- Hot Model Switch
- Capability Mismatch Switch
- Session Resume
- Session Resume Drift
- Approval and Auth
- Interaction Timeout
- Headless Run
- Parallel Tool Approvals
- Subagent Delegation
- Scope Layering
- Project First-Run Trust
- Reload Mid-Turn
- Compaction Warning
- MCP Remote Tool Call
- MCP Prompt Consume
- MCP Resource Bind
- MCP Reconnect