Skip to content
pi-c Artifact [841a21e55f]
Login

Artifact [841a21e55f]

Artifact 841a21e55f32e936eee5d26470a487fc99bd2fecd73c883d262bf66e58b947a3:


# Tier of every file under src/ (.c, .h and committed .inc; generated .inc files excluded).
# Read docs/design/keel.md. Edit here, then: sh test/pic/tiers.sh --table  (paste into docs/dev/tiers.md).
# Columns are tab-separated. tier: core | bundled | client | root | data. clock: durability | os | vendor | pi | taste.
# allowance: 30
path	tier	seam	clock	reason
src/anthropic.c	bundled	provider	vendor	Anthropic request shape and stream decoding; pure over a provider interface
src/anthropic.h	bundled	provider	vendor	Anthropic adapter interface
src/bash.c	core	-	os	the bash tool: launches and supervises a command, records it
src/ca_bundle.inc	data	-	os	compiled-in CA roots; expires, so refreshed by re-vendoring
src/catalog_fetch.c	bundled	-	vendor	fetches a third party's catalog from inside pic; should become an explicit command
src/catalog.c	data	-	vendor	reads model-catalog rows from the user database; the facts are data
src/catalog.h	data	-	vendor	catalog row interface
src/commands.c	core	-	pi	the RPC command table
src/commands.h	core	-	pi	RPC command table interface
src/compact.c	bundled	context-policy	pi	Pi's compaction cut and prompts; called directly from loop.c until the seam exists
src/compact.h	bundled	context-policy	pi	compaction interface
src/context.c	bundled	prompt-assembly	taste	system prompt wording and the instruction-file convention
src/cred.c	core	-	os	sealed credential storage and unlocking
src/cred.h	core	-	os	credential store interface
src/events.c	core	-	pi	the JSON event protocol
src/events.h	core	-	pi	event protocol interface
src/export_html.c	bundled	-	taste	HTML view of a conversation; a converter over a read view
src/export_pi.c	bundled	-	pi	Pi session lines; hooks and ctx read them, so it may become core
src/gemini.c	bundled	provider	vendor	Gemini request shape and stream decoding
src/gemini.h	bundled	provider	vendor	Gemini adapter interface
src/help.c	bundled	-	taste	pic help over the compiled-in manual
src/help.h	bundled	-	taste	help interface
src/hooks.c	core	-	pi	the component host: journaled hook runs with safe defaults
src/hooks.h	core	-	pi	hook host interface
src/http.c	core	-	os	HTTP over the transport
src/http.h	core	-	os	HTTP interface
src/ignore.c	bundled	-	taste	ignore-file matching for discovery and search
src/ignore.h	bundled	-	taste	ignore interface
src/image.c	core	-	durability	content-addressed image storage
src/image.h	core	-	durability	image storage interface
src/import_claude.c	bundled	-	vendor	reads another product's private transcript format; should move out
src/import_pi.c	bundled	-	pi	reads Pi sessions into conversations
src/input.c	core	-	os	input and path helpers over the OS seam
src/input.h	core	-	os	input helpers interface
src/loop.c	core	-	durability	admission, effects, recovery, generations; still holds compaction triggers, pricing and error wording
src/main.c	root	-	durability	composition root: the one place allowed to name everything
src/model_catalog.inc	data	-	vendor	dated snapshot of the model catalog
src/models.c	bundled	-	vendor	model registry, compat switches, thinking levels, cost formula
src/models.h	bundled	-	vendor	model registry interface
src/net.c	core	-	os	TLS transport
src/net.h	core	-	os	transport interface
src/openai_chat.c	bundled	provider	vendor	OpenAI-compatible chat request shape and stream decoding
src/openai_chat.h	bundled	provider	vendor	chat adapter interface
src/openai_responses.c	bundled	provider	vendor	OpenAI responses request shape and stream decoding
src/openai_responses.h	bundled	provider	vendor	responses adapter interface
src/pic.h	core	-	durability	the shared header: store, entries, generations; still includes models.h
src/platform.c	core	-	os	the OS seam
src/platform.h	core	-	os	OS seam interface
src/procs.c	core	-	os	process supervision and process records
src/procs.h	core	-	os	process supervision interface
src/prompts.c	bundled	-	taste	prompt template discovery and expansion
src/prompts.h	bundled	-	taste	prompt template interface
src/provider_anthropic.c	bundled	provider	vendor	binds the Anthropic adapter to the provider seam
src/provider_chat.c	bundled	provider	vendor	binds the chat adapter to the provider seam
src/provider_fake.c	core	provider	durability	the scripted provider that lets core run with no component
src/provider_gemini.c	bundled	provider	vendor	binds the Gemini adapter to the provider seam
src/provider_http.c	core	provider	durability	shared POST, retries before first byte, key attachment; cache settings and the adapter switch still here
src/provider_http.h	core	provider	durability	provider seam interface
src/provider_responses.c	bundled	provider	vendor	binds the responses adapter to the provider seam
src/prune.c	core	-	durability	retention of stored images and entries
src/rpc.c	core	-	pi	the RPC server; still answers model, skill and template commands directly
src/rpc.h	core	-	pi	RPC server interface
src/search.c	bundled	-	pi	the grep, find and ls tools
src/skills.c	bundled	-	pi	skill discovery and expansion
src/skills.h	bundled	-	pi	skill interface
src/sqlar.c	core	-	durability	SQLite archive storage for blobs
src/sqlar.h	core	-	durability	archive storage interface
src/sse.c	core	-	os	server-sent-event framing
src/sse.h	core	-	os	SSE framing interface
src/store.c	core	-	durability	journal, schema, leases, migrations
src/toolpar.c	core	-	durability	parallel tool-call execution
src/toolpar.h	core	-	durability	parallel tool interface
src/tools.c	core	-	pi	the executor and the tool set
src/transform.c	core	-	durability	neutral content form; still converts from Anthropic's native form
src/tree.c	core	-	durability	the conversation tree over entries
src/tui/app.c	client	-	taste	the terminal interface's application; calls core and components directly
src/tui/atfile.c	client	-	taste	@file completion
src/tui/atfile.h	client	-	taste	@file completion interface
src/tui/clipboard.c	client	-	os	clipboard access
src/tui/clipboard.h	client	-	os	clipboard interface
src/tui/editor.c	client	-	taste	the input editor
src/tui/editor.h	client	-	taste	editor interface
src/tui/fuzzy.c	client	-	taste	fuzzy matching
src/tui/fuzzy.h	client	-	taste	fuzzy matching interface
src/tui/highlight.c	client	-	taste	syntax highlighting
src/tui/highlight.h	client	-	taste	highlighting interface
src/tui/keymap.c	client	-	pi	key actions and defaults
src/tui/keymap.h	client	-	pi	keymap interface
src/tui/markdown.c	client	-	taste	markdown rendering
src/tui/markdown.h	client	-	taste	markdown interface
src/tui/mjson.c	client	-	taste	JSON reader for themes and keybindings
src/tui/mjson.h	client	-	taste	JSON reader interface
src/tui/render.c	client	-	taste	screen rendering
src/tui/render.h	client	-	taste	rendering interface
src/tui/term.c	client	-	os	terminal control
src/tui/term.h	client	-	os	terminal interface
src/tui/theme_dark.inc	data	-	taste	the dark theme
src/tui/theme_light.inc	data	-	taste	the light theme
src/tui/theme.c	client	-	taste	themes
src/tui/theme.h	client	-	taste	theme interface
src/tui/themes.c	client	-	taste	theme discovery
src/tui/themes.h	client	-	taste	theme discovery interface
src/tui/transcript.c	client	-	taste	transcript layout
src/tui/transcript.h	client	-	taste	transcript interface
src/tui/tui.h	client	-	taste	entry point of the terminal interface
src/tui/view.c	client	-	taste	view model
src/tui/view.h	client	-	taste	view interface
src/tui/viewport.c	client	-	taste	scrolling viewport
src/tui/viewport.h	client	-	taste	viewport interface
src/tui/width.c	client	-	os	character widths
src/tui/width.h	client	-	os	width interface
src/userdb.c	core	-	durability	the user database
src/userdb.h	core	-	durability	user database interface
src/xfer.c	core	-	os	transfer of the store between machines
src/xfer.h	core	-	os	transfer interface