Skip to content

Commit e73ded4

Browse files
FL4TLiN3claude
andauthored
docs: update concept page with architecture diagram and fix broken links (#734)
* docs: update concept page with architecture diagram and fix broken links - Add 5-layer architecture diagram from README - Add design philosophy note about existing standards - Fix 8 broken LinkCard hrefs to point to existing pages - Remove links to non-existent pages (context-windows, delegations, memory, checkpoints, container-isolation, env-vars-secrets) - Add links to runtime, boundary-model, sandbox-integration, and isolation-by-design pages - Improve LinkCard descriptions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * docs: align concept card sections with architecture diagram layers - Add Interface layer cards (CLI, runtime embedding, observability) - Reorder sections to match diagram: Interface → Runtime → Context → Definition → Infrastructure - Add one-line description per layer - Add State management, Error handling, Deployment cards - Rewrite all card descriptions to be specific and concrete Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 29317cc commit e73ded4

File tree

1 file changed

+57
-18
lines changed

1 file changed

+57
-18
lines changed

docs/understanding-perstack/concept.mdx

Lines changed: 57 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,79 @@ Perstack is built on a concept called **Expert Stack** — the harness that enab
1111
> [!NOTE]
1212
> The name "Perstack" combines the Latin word "perītus" (meaning "expert") with "stack". Perstack = Expert Stack.
1313
14-
## Expert Stack
14+
## Expert Stack
1515

16-
Perstack organizes the complexity of micro-agents harness design into a simple stack model:
16+
An agent harness needs a broad set of capabilities — almost like an operating system. Perstack organizes them into a simple stack with clear separation of concerns:
1717

18-
### Definition
18+
```
19+
┌──────────────────────────────────────────────────────────────────-┐
20+
│ Interface │
21+
│ CLI · Event streaming · Programmatic API │
22+
├──────────────────────────────────────────────────────────────────-┤
23+
│ Runtime │
24+
│ Agentic loop · Event-sourcing · Checkpointing · Tool use │
25+
├──────────────────────────────────────────────────────────────────-┤
26+
│ Context │
27+
│ System prompts · Prompt caching · AgenticRAG · Extended thinking │
28+
├──────────────────────────────────────────────────────────────────-┤
29+
│ Definition │
30+
│ Multi-agent topology · MCP skills · Provider abstraction │
31+
├──────────────────────────────────────────────────────────────────-┤
32+
│ Infrastructure │
33+
│ Sandbox isolation · Workspace boundary · Secret management │
34+
└──────────────────────────────────────────────────────────────────-┘
35+
```
36+
37+
Most of the features above are not new ideas. Perstack takes the usual harness building blocks — tool use, delegation, checkpointing, prompt caching, etc. — makes them easy to operate, puts them on top of standards you already know (MCP, TOML, Docker, SSE), and ships them as one runtime. Where cost or operational burden demands it, Perstack introduces its own take — micro-agents being the first example.
38+
39+
### Interface
40+
41+
The top layer exposes Perstack to users and applications.
1942

2043
<CardGrid>
21-
<LinkCard title="Experts" href="/understanding-perstack/experts">Purpose-specific micro-agents.</LinkCard>
22-
<LinkCard title="Skills" href="/references/skills">MCP tools (file ops, exec, custom MCP servers).</LinkCard>
23-
<LinkCard title="Providers" href="/references/providers-and-models">LLM providers and models.</LinkCard>
24-
<LinkCard title="perstack.toml" href="/references/perstack-toml">Declarative definition of experts, skills, and providers.</LinkCard>
44+
<LinkCard title="CLI" href="/docs/references/cli/">Interactive TUI (`start`), headless JSON output (`run`), log inspection, and expert management.</LinkCard>
45+
<LinkCard title="@perstack/runtime" href="/docs/guides/adding-ai-to-your-app/">Embed the runtime directly in TypeScript apps for serverless and custom integrations.</LinkCard>
46+
<LinkCard title="Observability" href="/docs/operating-experts/observing/">Real-time activity log, token metrics, and delegation tree.</LinkCard>
47+
</CardGrid>
48+
49+
### Runtime
50+
51+
The execution engine that drives the agentic loop.
52+
53+
<CardGrid>
54+
<LinkCard title="Runtime" href="/docs/understanding-perstack/runtime/">9-state machine — generate, call tools, delegate, resolve, and finish.</LinkCard>
55+
<LinkCard title="Events" href="/docs/references/events/">Step-level event-sourcing for full execution observability and replay.</LinkCard>
56+
<LinkCard title="State management" href="/docs/using-experts/state-management/">Checkpoints, resume, and job hierarchy.</LinkCard>
57+
<LinkCard title="Skill management" href="/docs/operating-experts/skill-management/">Dynamic skill lifecycle — connect, discover tools, execute, disconnect.</LinkCard>
2558
</CardGrid>
2659

2760
### Context
2861

62+
What each expert sees and knows during execution.
63+
2964
<CardGrid>
30-
<LinkCard title="Context windows" href="/understanding-perstack/context-windows">The context in which experts operate.</LinkCard>
31-
<LinkCard title="Workspace" href="/understanding-perstack/workspace">The shared workspace in which experts operate.</LinkCard>
32-
<LinkCard title="Delegations" href="/understanding-perstack/delegations">The delegation of tasks to other experts.</LinkCard>
33-
<LinkCard title="Memory" href="/understanding-perstack/memory">The memory of the expert stack.</LinkCard>
65+
<LinkCard title="Workspace" href="/docs/using-experts/workspace/">The shared filesystem where experts collaborate — not conversation history.</LinkCard>
66+
<LinkCard title="Error handling" href="/docs/using-experts/error-handling/">Retries, provider-specific error normalization, and retryability detection.</LinkCard>
3467
</CardGrid>
3568

36-
### Runtime
69+
### Definition
70+
71+
How you declare what experts do and how they collaborate.
3772

3873
<CardGrid>
39-
<LinkCard title="Event-sourcing" href="/references/events">The event-sourcing of the expert stack.</LinkCard>
40-
<LinkCard title="Checkpoints" href="/references/checkpoints">The checkpoints of the expert stack.</LinkCard>
41-
<LinkCard title="Skill management" href="/references/skill-management">The skill management of the expert stack.</LinkCard>
74+
<LinkCard title="Experts" href="/docs/understanding-perstack/experts/">Purpose-specific micro-agents with a single responsibility.</LinkCard>
75+
<LinkCard title="perstack.toml" href="/docs/references/perstack-toml/">Declarative config — experts, skills, providers, and global defaults.</LinkCard>
76+
<LinkCard title="Skills" href="/docs/making-experts/skills/">MCP tools — file ops, exec, custom MCP servers.</LinkCard>
77+
<LinkCard title="Providers" href="/docs/references/providers-and-models/">LLM providers, models, and model tier selection.</LinkCard>
4278
</CardGrid>
4379

4480
### Infrastructure
4581

82+
Isolation and security boundaries that make agents safe to operate.
83+
4684
<CardGrid>
47-
<LinkCard title="Container isolation" href="/understanding-perstack/container-isolation">The container isolation of the expert stack.</LinkCard>
48-
<LinkCard title="Workspace boundaries" href="/understanding-perstack/workspace-boundaries">The workspace boundaries of the expert stack.</LinkCard>
49-
<LinkCard title="Env vars/secrets" href="/understanding-perstack/env-vars-secrets">The env vars/secrets of the expert stack.</LinkCard>
85+
<LinkCard title="Sandbox integration" href="/docs/understanding-perstack/sandbox-integration/">Container isolation with Docker — multi-arch, non-root, ~74 MB.</LinkCard>
86+
<LinkCard title="Boundary model" href="/docs/understanding-perstack/boundary-model/">Workspace boundaries, path validation, and symlink traversal prevention.</LinkCard>
87+
<LinkCard title="Isolation by design" href="/docs/operating-experts/isolation-by-design/">Environment sandboxing, secret management, and exec protection.</LinkCard>
88+
<LinkCard title="Deployment" href="/docs/operating-experts/deployment/">Container images, `perstack install`, and production deployment patterns.</LinkCard>
5089
</CardGrid>

0 commit comments

Comments
 (0)