Condukt.Context (Condukt v1.4.1)

Copy Markdown View Source

Loads project instructions and local skills from the active sandbox.

Condukt automatically looks for local instruction files such as AGENTS.md and reusable workflows under .agents/skills/*/SKILL.md. The discovered instructions are appended to the configured system prompt so agents can adapt to the project they are running in.

Discovery routes through Condukt.Sandbox, so the files are read from wherever the active sandbox lives: the host filesystem for Sandbox.Local, the virtual filesystem for Sandbox.Virtual, or inside the pod for Sandbox.Kubernetes.

Summary

Functions

compose_system_prompt(base_prompt, project_instructions_prompt)

discover(sandbox_or_root)

Loads project instructions and skills.

Accepts a Condukt.Sandbox handle (the canonical form, used by Condukt.Session) or a host filesystem path (convenience form for tests and scripts: builds a transient Sandbox.Local rooted there and delegates).

empty()