Skip to content
lambdelta-devPublic

About

Lambdelta agent

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

lda — the lambdelta agent

A local agent daemon. One process, many workspaces, a browser UI, and a SQLite history tree per workspace. Each turn chooses its model, reasoning effort and profile; a profile grants plugin capabilities (read/create/write/delete) that the agent reaches through a single Starlark tool. A persona sets intent (one built-in, default).

The agent can also ask help for on-demand documentation of any native tool or Starlark method (help("fs.read_file")). The app is a DSH-style workspace shell: a persistent left tree lists every workspace, with its chats, *_pl.star pipelines and questions underneath. Chat is the default view; opening a pipeline renders its read-only definition and lets you start a background run. A pipeline file is the only source of truth — the browser never edits its structure.

The native question tool is a reusable workspace Q&A layer. It takes a context summary plus a standalone question; a high-similarity stored answer is returned immediately, otherwise the turn stops at an open question. The workspace Questions view lists open and answered entries, stores each answer under a unique id, and can retry the asking chat with the answer in context. Lookup uses locally computed feature-hashed vectors (no embedding provider is configured); exact or lightly edited context+question pairs match strongly. Forked chats show a Forked from link back to the parent, and a chat's context panel lists its forks. The chat header's Actions menu contains Undo last message; it removes only the final completed or failed turn, restores its prompt and model/effort/profile selections, and leaves the composer ready to send again.

Run

cargo run -p lda            # writes ~/.config/lda on first run, then serves

Open http://127.0.0.1:7331, create a workspace (its root defaults to the daemon's current working directory; a missing root is created with its parents after you confirm the warning), and put a pipeline file in its root (for example hello_pl.star). The overview shows its steps and dependencies; press Run to start a background run. Parameters are supplied in the run dialog. Profiles, personas, models and the real turn engine are the same as for chat; the classic transcript UI is at /chat.

Provider keys: the system keyring first (service lda, user = provider), then the provider env var (OPENROUTER_API_KEY, DEEPSEEK_API_KEY, ANTHROPIC_API_KEY), then ~/.config/lda/env as KEY=value. Ollama needs no key.

The workspace shell: chats in the main pane, pipelines in the left tree

A pipeline opened from the workspace tree: gated run, one branch skipped

A turn: script, stdout, result, audit, and the per-turn selection caption

The complete system prompt, disclosed under the user message

Development (isolated, disposable)

./start.sh runs a dev instance whose config, workspaces and history databases all live under the repo's tmp/, so nothing touches ~/.config or ~/.local/share:

./start.sh              # http://127.0.0.1:7341
./start.sh --fresh      # wipe tmp/dev/{config,data}/lda and scaffold again
./start.sh --port 7350  # bind elsewhere

It seeds a workspace root at tmp/sandbox/ (with hello.txt and todo.md) and auto-loads provider keys from ./.env, $LDA_ENV_FILE, or the sibling ../ledgelark/lambdelta/.env — a path is printed, never the keys.

Path Contents
tmp/dev/config/lda/ config.toml, models.toml, profiles/, personas/
tmp/dev/data/lda/ one directory per workspace, each with workspace.toml + history.db
tmp/sandbox/ the filesystem root to pick when creating a workspace

--port sets LDA_BIND, which overrides config.toml's bind (still loopback-only). tmp/ is git-ignored.

Layout

  • crates/lda-core/ — config, workspaces, store, summaries, turns, kernel, pipelines
  • crates/lda-plugins/ — the capability model, Starlark host, and the bundled plugins
  • crates/lda/ — the axum daemon and routes
  • ui/shell.html, ui/shell.js — the workspace tree (/) and pane host
  • ui/index.html — the chat transcript (/chat, embedded in the shell)
  • ui/pipeline.html, ui/pipeline.js — the read-only pipeline overview (/pipeline, embedded in the shell), JointJS vendored in ui/vendor/joint.min.js (MPL-2.0)
  • CONTEXT.md — the project's vocabulary; PLAN.md — schema, API, milestones
  • docs/adr/ — decisions worth remembering

GPL-3.0-only. The plugin subsystem is ported from ledgelark; see NOTICE. vendor/rig-core is rig-core 0.46.0 with an upstream catalog-data panic downgraded to a warning — see vendor/README.md; remove the [patch.crates-io] entry when a fixed release ships.

About

Lambdelta agent

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages