env

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package env provides environment awareness for both humans (ok doctor) and the AI agent (system-prompt injection). The Context function returns a concise, agent-readable summary of the runtime environment that is folded into the cache-stable system-prompt prefix so every LLM turn sees it at zero per-turn cost. The Summary function mirrors it in human-facing form.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context(cfg ...*config.Config) string

Context returns a concise, agent-readable environment report injected into the system prompt. The agent uses it to adapt behaviour: which tools work, whether it can prompt the user, what OS it's on, etc. Pass an optional pre-loaded Config to avoid re-parsing.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL