Expand description
Core library for eclipse: configuration, sessions, LLM provider, tools and runtime.
Re-exports§
pub use error::Error;pub use error::Result;pub use runtime::Agent;pub use runtime::AgentEvent;pub use runtime::JudgementStatus;pub use runtime::MemoryStatus;pub use runtime::RunResult;pub use runtime::Typed;pub use runtime::Validator;
Modules§
- approvals
- Durable approvals: the pending tool calls of a run, and the answer when it arrives.
- atomic
- Write a file without ever leaving it half-written.
- attachments
#499: pictures on disk — the original at full size, and a copy small enough for the wire.- auth
- The dashboard’s human door: a username and a password, and the hash that stands in for the password on disk.
- cancel
- Cooperative cancellation for a run.
- cassette
- A cassette is one run’s provider traffic, recorded and replayed.
- commands
- The slash commands, in one table.
- compact
- Compaction: compile a conversation into a handoff, deterministically.
- config
- TOML configuration with XDG-style paths,
.envfiles and environment overrides. - context
- Context-window management: bound what is sent to the model per request.
- context_
files - Layered context files:
AGENT.md,USER.md,MEMORY.md. - contextbar
- The context bar: how much of the model’s window the last prompt took, drawn the same way wherever it is read.
- cron
eclipse cron: prompts that run on a timer.- diff
#656: one parse of a unified diff, in core, for three surfaces to draw.- doctor
eclipse doctor: reach for each thing that can be wrong, and say what to do about it.- dotenv
- Strict, dependency-free
.envparser. - error
- flares
#171: a flare run — N read-only sibling agents on one task, and the merge of what they said.- goals
#172:/goal— one standing goal, worked on across turns.- hooks
- In-process hooks into the agent loop: the extension point the loop did not have.
- html
- A small, std-only HTML-to-text converter for the
fetchtool. - http
- The one place an unauthenticated HTTP
GETleaves this process. - interpolate
${VAR}substitution for configuration values.- judge
#340: a third approval mode, where the aux route answers allow / deny / escalate.- loops
#173:/loop— one prompt, re-entered into this session on an interval.- mcp
- MCP: model tools from a server that speaks JSON-RPC, over a pipe or over HTTP.
- memory
MEMORY.md: the durable facts the agent learned, and the budget that keeps them honest.- message
- OpenAI-compatible chat message types.
- migrate
- Moving an install that predates the one-directory layout into it.
- naming
- Naming a session: a name derived from the opening message, and the one bounded model call that may replace it.
- netguard
- SSRF protection for the
fetchtool. - palette
- The colours, in one place.
- paste
- Big pastes, and the one rule about what “big” means.
- plans
#657: the plan a session keeps — the steps, their order, and which one is being done.- plugins
- Plugins: how the agent is extended without editing it.
- problems
#505: what the loaders complained about, in one answer.- prompt_
blocks - The standing instructions that ride after the configured system prompt (
#244). - provider
- OpenAI-compatible chat-completions client. The endpoint and key come only from config.
- reasoning
- How much a model thinks, and where the number goes.
- redact
- Finding secrets in a string and replacing them with a marker that says what was there.
- risk
- Which commands are dangerous enough to stop and ask about, and which are not.
- router
- Model routes: a
ChatProviderthat tries a chain of providers in order. - runtime
- The agent runtime: model <-> tool loop with session persistence.
- sandbox
- What a
shellcommand can reach once it runs. - session
- Session storage: one SQLite database per state directory, one row per message.
- skills
- Skills: procedures kept as files, found in several places, offered to the model as an index.
- stream
- Server-sent-events parsing and assembly of streamed chat-completion chunks.
- tasks
- Background tasks: a run that outlives the prompt (#225).
- token
- Random secrets (dashboard auth token, approval and login-session ids).
- tools
- Tool registry, dispatch and the built-in (gated) tools.
- tools_
bridge - The tool bridge: a program the agent wrote, calling the agent’s own tools.
- tools_
cron - The
cronjob_managetool: the agent scheduling work for later. - tools_
defer tool_search,tool_describe,tool_call— reaching a tool the model was not given.- tools_
delegate - The
delegatetool: hand one job to a child agent on a route of its own. - tools_
exec - The
execute_codetool: code the model writes for one job and does not keep. - tools_
memory - The
memorytool: the agent writing to its ownMEMORY.md. - tools_
patch patch— an edit, not a rewrite.- tools_
plan #657: theplantool — one list of steps, kept in the session, read back by every surface.- tools_
script - The
scripttool: workflows the agent writes once and then calls by name. - tools_
search search_files: find where a pattern appears, without reading files one at a time.- tools_
session - The
session_searchtool: read the archive that a compiled handoff cites. - tools_
skills - The skill tools:
skill_view, which loads a skill (or a file it links) into the conversation;skill_search, which finds one the index had no room to name (#350); andskill_manage, which lets the agent write one. - update
- What an install knows about itself, and the notice that says a newer commit exists.
- usage
- What one provider call cost, and what the session has cost so far.
- vision
- Sight: what the harness does with a picture on a turn (
#346). - yolo
/yolo: approvals off for this session, visibly.