{"modulePath":"github.com/memcode-ai/memcode","version":"v0.56.16","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package agent\n\nPackage agent holds the agent runtime and its supporting subsystems.\n\nThe hub is the runtime package (internal/agent/runtime), which owns the Session: the agent loop, tool dispatch, plan-mode lifecycle, cost ledger, and introspection. Supporting sub-packages are leaves below it:\n\n  - acceptance — reconciles prior agent work against git (did edits survive?).\n  - compaction — summarizes old turns when the context window fills.\n  - edit       — anchored search/replace edit application + hashing.\n  - focus      — tracks the active subsystem focus for context scoping.\n  - input      — parses user input routing (steer/queue/interrupt/shell).\n  - jobs       — detached background agent jobs.\n  - mood       — the session's mood (display state derived from turn history).\n  - permissions — the bash-command risk classifier and permission modes.\n  - protocol   — the stream-json machine control protocol adapter.\n  - room       — the room reducer (aggregates events into display state).\n  - secrets    — redaction of secrets before model calls.\n  - tools      — tool definitions and dispatch table.\n\nThe dependency graph is a clean DAG: runtime is the hub; the leaves depend on it (or on nothing), never the reverse.\n\n","path":"github.com/memcode-ai/memcode/internal/agent","name":"agent","synopsis":"Package agent holds the agent runtime and its supporting subsystems.","isRedistributable":true}
