2026-03-19 16:27:35 +03:00
---
title: Examples
description: Catalog of example extensions included with Kit.
---
# Extension Examples
Kit ships with a rich set of example extensions in the `examples/extensions/` directory. These serve as both documentation and starting points for your own extensions.
## UI and display
| Extension | Description |
|-----------|-------------|
2026-03-19 17:11:14 +03:00
| [`minimal.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/minimal.go ) | Clean UI with custom footer |
| [`branded-output.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/branded-output.go ) | Branded output rendering |
| [`header-footer-demo.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/header-footer-demo.go ) | Custom headers and footers |
| [`widget-status.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/widget-status.go ) | Persistent status widgets |
| [`overlay-demo.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/overlay-demo.go ) | Modal dialogs |
| [`tool-renderer-demo.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/tool-renderer-demo.go ) | Custom tool call rendering |
| [`custom-editor-demo.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/custom-editor-demo.go ) | Vim-like modal editor |
| [`pirate.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/pirate.go ) | Pirate-themed personality |
2026-03-19 16:27:35 +03:00
## Workflow and automation
| Extension | Description |
|-----------|-------------|
2026-03-19 17:11:14 +03:00
| [`auto-commit.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/auto-commit.go ) | Auto-commit changes on shutdown |
| [`plan-mode.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/plan-mode.go ) | Read-only planning mode |
| [`permission-gate.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/permission-gate.go ) | Permission gating for destructive tools |
| [`confirm-destructive.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/confirm-destructive.go ) | Confirm destructive operations |
| [`protected-paths.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/protected-paths.go ) | Path protection for sensitive files |
| [`project-rules.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/project-rules.go ) | Project-specific rules injection |
| [`compact-notify.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/compact-notify.go ) | Notification on conversation compaction |
2026-03-19 16:27:35 +03:00
## Interactive features
| Extension | Description |
|-----------|-------------|
2026-03-19 17:11:14 +03:00
| [`prompt-demo.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/prompt-demo.go ) | Interactive prompts (select/confirm/input) |
| [`bookmark.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/bookmark.go ) | Bookmark conversations |
| [`inline-bash.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/inline-bash.go ) | Inline bash execution |
| [`interactive-shell.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/interactive-shell.go ) | Interactive shell integration |
| [`notify.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/notify.go ) | Desktop notifications |
2026-03-19 16:27:35 +03:00
## Agent and context
| Extension | Description |
|-----------|-------------|
2026-03-19 17:11:14 +03:00
| [`tool-logger.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/tool-logger.go ) | Log all tool calls |
| [`context-inject.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/context-inject.go ) | Inject context into conversations |
| [`summarize.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/summarize.go ) | Conversation summarization |
| [`lsp-diagnostics.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/lsp-diagnostics.go ) | LSP diagnostic integration |
2026-06-09 16:18:10 +03:00
| [`usage-budget.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/usage-budget.go ) | Per-call usage callback (`OnLLMUsage` ), session state (`SetState` /`GetState` ), and enriched `OnAgentEnd` per-turn report |
2026-03-19 16:27:35 +03:00
2026-03-28 12:00:19 +03:00
## Bridged SDK APIs
These examples demonstrate the new bridged SDK APIs that give extensions access to internal Kit capabilities:
| Extension | Description |
|-----------|-------------|
2026-04-15 16:02:49 +03:00
| [`bridge-demo.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/bridge_demo.go ) | Comprehensive demo of all bridged APIs — tree navigation, skill loading, template parsing, and model resolution |
| [`conversation-manager.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/conversation-manager.go ) | Tree navigation (`GetTreeNode` , `GetCurrentBranch` , `NavigateTo` ), branch summarization (`SummarizeBranch` ), and fresh context loops (`CollapseBranch` ) |
| [`prompt-templates.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/prompt-templates.go ) | Frontmatter-driven templates with model fallback chains (`ResolveModelChain` ), skill injection (`InjectSkillAsContext` ), and template parsing (`ParseTemplate` , `RenderTemplate` ) |
2026-03-28 12:00:19 +03:00
2026-03-22 21:11:18 +03:00
## Themes
| Extension | Description |
|-----------|-------------|
| [`neon-theme.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/neon-theme.go ) | Custom theme registration and switching |
2026-03-19 16:27:35 +03:00
## Multi-agent
| Extension | Description |
|-----------|-------------|
2026-03-19 17:11:14 +03:00
| [`kit-kit.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/kit-kit.go ) | Kit-in-Kit sub-agent spawning |
| [`subagent-widget.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/subagent-widget.go ) | Multi-agent orchestration with status widget |
| [`subagent-test.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/subagent-test.go ) | Subagent testing utilities |
2026-03-19 16:27:35 +03:00
## Development
| Extension | Description |
|-----------|-------------|
2026-03-19 17:11:14 +03:00
| [`dev-reload.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/dev-reload.go ) | Development live-reload |
2026-03-20 13:18:46 +03:00
| [`tool-logger_test.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/tool-logger_test.go ) | Example extension tests (see [Testing ](/extensions/testing )) |
| [`extension_test_template.go` ](https://github.com/mark3labs/kit/blob/master/examples/extensions/extension_test_template.go ) | Copy-and-paste test template for your extensions |
2026-03-19 16:27:35 +03:00
## Subdirectory extensions
| Directory | Description |
|-----------|-------------|
2026-03-19 17:11:14 +03:00
| [`kit-kit-agents/` ](https://github.com/mark3labs/kit/tree/master/examples/extensions/kit-kit-agents ) | Multi-agent orchestration example |
| [`kit-telegram/` ](https://github.com/mark3labs/kit/tree/master/examples/extensions/kit-telegram ) | Telegram bot integration |
| [`status-tools/` ](https://github.com/mark3labs/kit/tree/master/examples/extensions/status-tools ) | Status bar tool examples |
2026-03-22 21:11:18 +03:00
## Project-local example
The Kit repository also includes a project-local extension at `.kit/extensions/go-edit-lint.go` that demonstrates running `gopls` and `golangci-lint` on Go file edits. This serves as an example of how to create extensions specific to a project by placing them in the `.kit/extensions/` directory.