Skip to main content

Crate eclipse_core

Crate eclipse_core 

Source
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, .env files 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 .env parser.
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 fetch tool.
http
The one place an unauthenticated HTTP GET leaves 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 fetch tool.
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 ChatProvider that tries a chain of providers in order.
runtime
The agent runtime: model <-> tool loop with session persistence.
sandbox
What a shell command 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_manage tool: 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 delegate tool: hand one job to a child agent on a route of its own.
tools_exec
The execute_code tool: code the model writes for one job and does not keep.
tools_memory
The memory tool: the agent writing to its own MEMORY.md.
tools_patch
patch — an edit, not a rewrite.
tools_plan
#657: the plan tool — one list of steps, kept in the session, read back by every surface.
tools_script
The script tool: 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_search tool: 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); and skill_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.