# Gojent > A small, strongly typed, standard-library-first agent runtime for Go with one streaming-first execution loop, typed tools, provider-neutral messages, and fail-closed tool policies. Gojent has zero third-party dependencies in its root module (`core/agent`, `core/llm`, `core/tool`, `core/session`, `tools`, `providers/mockllm`). Model adapters (`providers/google`, `providers/openai`, `providers/anthropic`), durable stores (`stores/sqlite`, `stores/postgres`), and the `mcp` client live in independent child Go modules. Status: Pre-1.0 beta (`v0.x`). Minor releases before `v1.0.0` may introduce breaking changes; pin explicit module versions in `go.mod` and check `CHANGELOG.md`. ## Getting Started - [Quickstart](https://gojent.com/docs/quickstart) ([markdown](https://gojent.com/docs/quickstart.md)): Install Gojent and run a strongly typed, streaming-first Go agent in minutes using key-free mockllm or a real model provider. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/core/agent - [Architecture](https://gojent.com/docs/architecture) ([markdown](https://gojent.com/docs/architecture.md)): Understand Gojent's four extension seams, immutable agent model, fail-closed guarantees, atomic persistence, and one-way module boundaries. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/core/agent ## Core Runtime - [Typed Tools](https://gojent.com/docs/core/tools) ([markdown](https://gojent.com/docs/core/tools.md)): Build schema-validated Go tools with tool.New, struct tag constraints, side-effect annotations, panic containment, and multimodal tool.Result outputs. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/core/tool - [Streaming & Runs](https://gojent.com/docs/core/streaming) ([markdown](https://gojent.com/docs/core/streaming.md)): Stream live text, reasoning, and tool events with Agent.Stream, consume Run.Events(), wait for completion, and cancel runs cleanly. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/core/agent - [Sessions & Stores](https://gojent.com/docs/core/sessions) ([markdown](https://gojent.com/docs/core/sessions.md)): Scope multi-tenant conversations with session.Session and persist transcripts atomically through the two-method session.Store contract. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/core/session - [Policies & Approvals](https://gojent.com/docs/core/policies) ([markdown](https://gojent.com/docs/core/policies.md)): Enforce fail-closed runtime guardrails, human-in-the-loop approvals, ordered policy chains, and agent-to-run option layering. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/core/agent - [Structured Output](https://gojent.com/docs/core/structured-output) ([markdown](https://gojent.com/docs/core/structured-output.md)): Constrain model responses to a strict JSON Schema generated from a Go type with GenerateStructured[T], WithOutputSchema[T], and Response.Unmarshal. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/core/agent - [Subagents & Composition](https://gojent.com/docs/core/subagents) ([markdown](https://gojent.com/docs/core/subagents.md)): Expose any Agent as a typed or compact tool with AsTool, AsToolWith, and AsTypedTool, with depth limits, shared budgets, policy inheritance, and event forwarding. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/core/agent - [Observability](https://gojent.com/docs/core/observability) ([markdown](https://gojent.com/docs/core/observability.md)): Observe every run lifecycle event with agent.Sink and agent.SinkFunc without altering execution, and wrap seams for metrics and tracing. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/core/agent ## Modules - [Ready-Made Tools](https://gojent.com/docs/modules/tools) ([markdown](https://gojent.com/docs/modules/tools.md)): Equip agents with sandboxed filesystem tools, managed foreground/background command execution, managed subagent lifecycles, web fetch and search, and in-memory task tracking. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/tools - [Model Providers](https://gojent.com/docs/modules/providers) ([markdown](https://gojent.com/docs/modules/providers.md)): Connect Google Gemini, OpenAI Responses and Chat Completions, Anthropic Messages, or mockllm behind the uniform llm.Model contract. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/core/llm - [Session Stores](https://gojent.com/docs/modules/stores) ([markdown](https://gojent.com/docs/modules/stores.md)): Persist conversation transcripts durably with stores/sqlite and stores/postgres, or run ephemeral tests with session.Memory. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/core/session - [MCP Client](https://gojent.com/docs/modules/mcp) ([markdown](https://gojent.com/docs/modules/mcp.md)): Connect stdio and Streamable HTTP Model Context Protocol servers to Gojent agents with allow/deny filtering, AuthHook, elicitation, catalog refresh, and host resources/prompts. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/mcp - [Codjent Sample App](https://gojent.com/docs/modules/codjent) ([markdown](https://gojent.com/docs/modules/codjent.md)): Explore Codjent, the reference ACP v2 stdio coding agent and Bubble Tea provider manager built on Gojent. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/codjent ## Guides - [Extending Gojent](https://gojent.com/docs/guides/extending) ([markdown](https://gojent.com/docs/guides/extending.md)): Implement custom llm.Model and session.Store adapters, verify behavior with llmtest.Run and sessiontest.Run, and wrap seams for middleware. · pkg: https://pkg.go.dev/github.com/ijaidev/gojent/core/llm - [Development & Releases](https://gojent.com/docs/guides/development) ([markdown](https://gojent.com/docs/guides/development.md)): Set up a local Gojent workspace, run per-module and cross-repo checks, enforce architecture boundaries, and tag independent module releases. ## Machine-Readable Endpoints - [Full Documentation Corpus](https://gojent.com/llms-full.txt): Concatenated canonical Markdown for all Gojent documentation pages. - [Documentation Overview](https://gojent.com/docs): Human-readable documentation index. - [Sitemap](https://gojent.com/sitemap-index.xml): XML sitemap for all HTML pages. - [Go Package Reference](https://pkg.go.dev/github.com/ijaidev/gojent): Authoritative exported Go symbol reference on pkg.go.dev. - [Source Repository](https://github.com/ijaidev/gojent): Apache-2.0 source code on GitHub.