omp packages

thoth-agents0.19.0

Adaptive multi-harness orchestration with five roles, runtime-autonomous AI-first execution routes, and external provider boundaries.

GitHub Actions Published 8 hours ago MIT ~20.1K downloads/mo

Works on omp

1 of 1 report says this package works on omp.

1 works0 broken

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 1

  • worksTested by omp packagesv0.18.0 · 1 day ago

    Tested on omp 19.4.1: `omp plugin install` succeeds and the package loads with no errors. It adds 5 skills. Its tools were not called.

Readme

Cyber-Egyptian illustration with Thoth at the center

Thoth-Agents

One conversation. The right specialists. A workflow that fits the task.

Adaptive agent orchestration for OpenCode, Codex, Claude Code, and Pi.

npm version CI status Node 22.19 or newer MIT License

Overview · Install · Get started · The team · Workflows · Documentation

[!WARNING] Thoth-Agents is under active development. Core concepts, workflows, and specifications are still evolving, and significant breaking changes may occur before a stable release.


Why thoth-agents

Describe what you want to build or fix. Thoth keeps the conversation together, directs specialists to discover and implement by default, and retains your goals, constraints, decisions, acceptance, and final synthesis in one root thread.

Small changes stay small. Larger changes get a specification, a plan, and verification you can follow—without manually coordinating every agent.

  • One conversation, four specialists. An adaptive Orchestrator coordinates their work and brings the results back to you.
  • Proportional process. Small, clear, low-risk work stays artifact-free; substantial work uses one ID-named record and proportionate verification.
  • Specialists execute by default. Explorer handles repository and external research, Designer handles presentation and creative work, Worker handles engineering, and Oracle reviews independently.
  • Models you can tune. Configure models per role to suit your workflow and the providers available in your harness.
  • Continuity between sessions. Published installs include setup of thoth-mem, the independent memory companion for reusable decisions and project knowledge. thoth-mem owns its own memory lifecycle, persistence, and storage; thoth-agents only invokes npx -y "thoth-mem@>=0.7.0" setup <harness> --json (adding --plan for dry-run). Only exit 0 with planned for dry-run or complete for apply is successful; see provider outcomes.

[!NOTE] OpenCode is the CLI's default harness, fully supported on OpenCode v2 (>=2.3.0). All four harnesses share the workflow and role design, but their permissions, delegation, and runtime capabilities are not identical. Your harness's trust and approval rules still apply.

Install

You need Node.js >=22.19, a supported harness already installed, and network access for setup. Authenticate your model providers in that harness separately. The commands below install at global/user scope.

Harness What you get Install command
OpenCode logo
OpenCode
OpenCode >=2.3.0 native v2 plugin, package skills, agent team, and memory setup. npx thoth-agents@latest install --agent=opencode
OpenAI logo — Codex
Codex
Native plugin plus the required global agent and instruction setup. Close Codex first. npx thoth-agents@latest install --agent=codex
Anthropic logo — Claude Code
Claude Code
Marketplace agents and skills, completed by the CLI's external skills and memory setup. npx thoth-agents@latest install --agent=claude
Pi logo
Pi
Native package, four specialists, delegation, research, theme, sidebar and background-task extensions, workflow skills, and memory setup. npx thoth-agents@latest install --agent=pi

Codex hooks require your trust; installation does not silently grant it. Consent during setup, or review and trust them in Codex via /hooks or the startup Trust all and continue prompt. Trusted hooks can run outside the sandbox.

Claude Code marketplace setup

The CLI registers a missing marketplace and installs or enables the plugin as needed. These commands are an optional manual alternative:

claude plugin marketplace add https://github.com/EremesNG/thoth-plugins.git --scope user
claude plugin install thoth-agents@thoth-plugins --scope user

[!TIP] Add --dry-run to any npx thoth-agents ... install command to preview setup without writing changes. After installation, restart your harness; Claude Code also supports /reload-plugins.

Inside Pi, use /subagents-model to edit named model and effort profiles for subagents and the orchestrator, stored separately from definitions at global or project scope. See subagent profile configuration. Both commands are registered by pi-subagents on pi-core's shared list-editor shell, with native CSI-u/kitty and legacy navigation keys and wheel support in regular and fullscreen TUI mode. /subagents-tools uses p to switch Global/Project scope, starting in Project when .pi/subagents.json has a non-empty agents object or a project definition shadows a global one; otherwise Global. Global save edits the global definition's tools even when a copy shadows it (with a warning). Project save edits only .pi/subagents.json agents.<name>.tools, e.g. {"add":["mcp__blender*"],"remove":["write"]}, preserving other JSON keys; global agents is ignored. Add patterns join definition/inherited defaults before expansion; remove patterns subtract afterward, before denials/native exclusions. Injected orchestrator controls remain governed by flags and disallowed_tools. In Project's picker the base is read-only: a adds an add-pattern, x adds a remove-pattern, e edits an overlay entry, d/Delete deletes it, and r clears the overlay. Global a/e/d add/edit/delete manual entries. The edit input is prefilled; Enter commits, Esc cancels, and Ctrl+U clears (empty edits require d/Delete instead). Picker Enter still goes back, and Project base entries remain read-only; Thoth supplies optional reset defaults and managed-specialist validation. s saves from the overview. Writes are atomic, stale-checked and backed up. Project c converts a shadowing copy after summarizing candidate add/remove entries and naming lost non-tools aspects (not their content), with a warning about future global-glob matches: d confirms, k/Esc cancels. It refuses if another same-name project copy would remain or the overlay would change the current selection against either global or copy. It writes the overlay before retiring the copy to .bak-<pid>-<uuid>; failure to retire reports selection-equivalent partial state. See the overlay reference. For Blender only here, add mcp__blender* in this project's overlay and configure the server only here, not globally; a glob alone cannot scope a globally configured server. Never grant the generic mcp gateway as a substitute. Manual rows show session match counts and case hints. Globs (including *) remain advanced, case-sensitive selections over all registered root tools; unmatched globs contribute nothing when a tool/server is not registered. Edit disallowed_tools manually for injected tools and trimming globs; only Oracle denies ask_orchestrator by default, while all four specialists keep notify_orchestrator. Child ask_orchestrator({ message }) carries blocking questions only; notify_orchestrator({ message }) records one-way progress or checkpoints and returns immediately without a root turn. Both are model-only direct calls, independently controlled by enable_ask_orchestrator and enable_notify_orchestrator (default true, global/project cascade) and denials. See tool selection controls.

Pi setup requires Pi >=1.5.0 and currently supports the default ~/.pi/agent root. See the Pi installation guide for runtime requirements, existing-package conflicts, and recovery. Thoth manages its separate Pi delegation runtime as package @thoth-agents/pi-subagents through npm:@thoth-agents/pi-subagents@>=0.3.0, the first release owning /subagents-tools. Upgrade both packages together and /reload if Pi reports missing or duplicate command ownership. Existing pi-subagents and pi-subagents-j0k3r installs need manual recovery through Pi's package manager before setup. Local checkout development uses pnpm run setup:pi:local, which points Pi at the fork under pi-packages/pi-subagents; publishing the fork is not required for that path. Pi extensions run with your user's system permissions; agent tool allowlists are not an OS sandbox.

Optional OpenCode multi-account plugin (manual install)

@thoth-agents/opencode-multi-codex lets you use ChatGPT accounts concurrently: account 1 uses openai, with additional accounts exposed as numbered providers such as openai-codex-2. Pin agents to different accounts, inspect quota, and rotate around usage-limit 429s. Manage accounts with /codex-add, /codex-remove, /codex-switch, and /codex-status.

Install it separately using the package guide; the thoth-agents CLI does not install or manage it. It requires OpenCode's legacy ChatGPT/Codex OAuth login; API keys and the newer ChatGPT token-sharing flow are not supported.

Optional Pi extensions (manual install)

The installer does not install or manage the Claude/Antigravity/Junie bridges, pi-openai-fast, or pi-askcodex. Install only those you want, then restart Pi:

pi install npm:@thoth-agents/pi-claude-bridge
pi install npm:@thoth-agents/pi-antigravity-bridge
pi install npm:@thoth-agents/pi-junie-bridge
pi install npm:@thoth-agents/pi-openai-fast
pi install npm:@thoth-agents/pi-askcodex

pi-askcodex adds the AskCodex delegation tool, not a model provider, and requires Codex Desktop with a working Codex login. See its package guide for requirements and approvals.

Authenticate Claude Code or the agy CLI separately. Claude rate-limit events from root and child sessions share pi-core's process-wide, account-wide registry (not a bus channel); affected subagent rows/details show active warnings and reset times without changing task status. Quota is on demand: /claude quota uses an experimental SDK API without sending a prompt; /agy quota shows Antigravity usage. Antigravity costs are API-equivalent estimates from an explicit catalog mapping, not subscription charges. The theme marks the total (sub) by default for claude-bridge, antigravity and junie. Junie requires its CLI installed and logged in with a JetBrains Account; /junie models refreshes its catalog and /junie quota checks balance on demand (inferred non-consuming /stats). See provider commands and caveats.

Pi package inventory

The thirteen first-party @thoth-agents/pi-* packages are:

Package Setup
@thoth-agents/pi-antigravity-bridge Optional/manual
@thoth-agents/pi-askcodex Optional/manual
@thoth-agents/pi-background-tasks Installer-managed
@thoth-agents/pi-claude-bridge Optional/manual
@thoth-agents/pi-contained-shell Installer-managed
@thoth-agents/pi-core Shared library; not installer-managed
@thoth-agents/pi-junie-bridge Optional/manual
@thoth-agents/pi-openai-fast Optional/manual
@thoth-agents/pi-questions-user Installer-managed
@thoth-agents/pi-sidebar Installer-managed
@thoth-agents/pi-subagents Installer-managed
@thoth-agents/pi-thoth-theme Installer-managed
@thoth-agents/pi-todo Installer-managed

For scopes, troubleshooting, or local checkout installation, see the installation guide. Local Pi checkout installs keep thoth-mem setup separate.

Get started

1. Check your installation

After setup completes, inspect the installed state:

npx thoth-agents@latest status

If setup reports a missing dependency or a manual action, resolve it before continuing. Package installation alone does not prove provider authentication or a successful live model request.

2. Initialize your project

Open your repository in the harness and invoke the installed thoth-init skill:

Harness In your agent conversation
OpenCode /thoth-init
Codex $thoth-init
Claude Code /thoth-agents:thoth-init
Pi Ask: Use the thoth-init skill to initialize this repository.

This creates only missing minimum .thoth/ governance, including .thoth/constitution.md, .thoth/specs/, and the change archive. It does not install plugins or dependencies and preserves existing project-owned governance and historical records.

3. Give Thoth a task

Start with a goal, not a list of agents to manage. For example:

Fix the broken documentation link with the smallest sufficient workflow.
Add CSV export to the reports page. Understand the existing filters, define how empty results behave, and resolve any material decision before a test-first implementation. Keep the work proportional.
Plan a migration from our current authentication system. Explore the risks, define acceptance, and resolve material decisions before implementation. If classification is substantial, keep the plan and acceptance in one `.thoth/changes/<id>.md` record.

Describe the desired outcome, constraints, and acceptance. The Orchestrator first builds proportional understanding, then uses the resume test to classify the change and select the fitting specialist.

Meet the team

One coordinator

Thoth as the Orchestrator Orchestrator · Keeps the work moving

Your main point of contact. Retains goals, constraints, decisions and acceptance while directing specialists. Direct consultation is limited to known sources and bounded questions.

The Orchestrator can handle a minimal authorized edit directly when the source, scope, and verification are known and no discovery or independent judgment is needed. For an unlocated edit, there is one exception per request: if you supply exact old and new text, it may run one literal search. Exactly one occurrence allows one replacement without changing logic or behavior, followed by focused verification without further discovery. Otherwise it delegates.

Research and review

Explorer Oracle
Anubis as the Explorer Ma'at as the Oracle
Finds the relevant evidence. Uses the repository for project-owned facts and external sources for third-party or current API facts, distinguishing official guidance from community examples. Challenges the result. Independently reviews plans and verifies changes when the workflow or risk requires it.

Design and implementation

Designer Worker
Hathor as the Designer Ptah as the Worker
Owns presentation and creative work in any medium. Implements UI/UX, TUI/CLI presentation, interaction and game feel, 3D, audio, and interface copy. Owns engineering of any size. Implements authoritative rules even in UI code, including validation, allowed ranges, data and state, persistence, networking, and builds.

Route by what owns the behavior, not by the symptom or file: on-screen drag clamping goes to Designer; the authoritative allowed range goes to Worker. Split mixed work at an agreed interface. If the cause or owner is unknown, Explorer locates it first, then the Orchestrator routes the work.

Explorer and Oracle are read-only. Implementation work has one writer per area; independent areas can proceed in parallel when the harness supports it. The Orchestrator shares only the relevant, non-sensitive parts of your request with each specialist. Specialists report what is visible in images without filling in unclear details. Designer and Worker check targets before destructive commands and report what changed, how they verified it, and what they skipped.

Proportional SDD

The phases are explore → resolve uncertainty → classify → plan → implement task by task → verify → archive. The first two phases establish behavior, intent, non-goals, and acceptance without forcing a document, specialist, or interview. Unresolved material decisions block classification.

Use the resume test: small only if a new session can resume from the original request and git diff alone and risk is contained. A named high risk forces substantial; file count never classifies. Small work uses a brief in-session plan and focused verification, without a persistent record or archive.

Root plans substantial work in one .thoth/changes/<id>.md record. At ready, offer optional Oracle plan review and keep Implement (Recommended) / Stop separate from it. After authorization, test first and verify each task unit; root commits each accepted unit locally and records its SHA in the task row. Push, PR, and merge require separate explicit authorization.

Final verification uses a fresh independent Oracle first to judge only named risks and regressions in what they touch; root checks other accepted outcomes. After current PASS and archive validation, move the record to .thoth/changes/archive/YYYY-MM-DD-<id>.md and apply only declared durable updates to .thoth/specs/. See the SDD guide for record sections, validator stages, and bounded review retries.

Shipped skills: thoth-init, thoth-sdd, thoth-constitution, thoth-archive, and plan-reviewer. The CLI also installs the mandatory external skills simplify, tdd, progressive-context-router, and grill-me.

Configure and update

Tune the team

Use the interactive CLI to inspect setup and configure role models:

npx thoth-agents@latest

Other CLI commands (run with npx thoth-agents@latest <command>):

  • list: list managed surfaces and actions.
  • sync: preview managed configuration sync.
  • model: preview role model/provider settings.

Add --apply to apply a reviewed sync or model plan.

Choose models your harness and provider account can access. OpenCode ships the openai model profile. Run /subagents-model inside OpenCode to edit named model/variant profiles for all five roles, including orchestrator. Selection is session → project pin → global active → read-only default. Profiles live in <opencode-config-dir>/thoth/profiles.json and <project>/.opencode/thoth/profiles.json; the CLI manages global profiles only. Other harnesses use their own model configuration and capability rules. In Claude Code, Explorer defaults to sonnet with medium effort.

In OpenCode, /subagents-tools edits global/project allow/ask/deny overrides for the four specialists, independently of model profiles. Project rules layer on top of global rules: the last matching rule wins, and an absent or empty project list inherits global rules. If a project relied on replacing the global list, review its effective permissions after upgrading. subagent stays locked. See the tool-permission guide and limits.

See Provider Configuration and Codex Model Customization.

Keep the complete installation current

Preview an update, then apply it explicitly:

npx thoth-agents@latest update --harness=opencode
npx thoth-agents@latest update --harness=opencode --apply

Replace opencode with codex, claude, or pi for your harness. Close Codex before applying its update, and restart the selected harness afterward.

An applied update refreshes the complete CLI-managed setup, including required skills and provider setup—not just the plugin. Native marketplace updates alone do not prove those other pieces are current. Use status to inspect the last complete CLI-managed installation and follow any reported recovery actions.

Upgrading from a release with Librarian

Explorer now handles both repository investigation and external research. Librarian is no longer a shipped role. Its models, effort and tool restrictions are not migrated.

  • Pi: The global Explorer merges all missing allowed tools, shipped or custom, from Thoth-owned Librarian files (including unedited files and retirement backups). A marker prevents reapplying the merge. Pi removes an unedited definition or renames an edited one to .md.bak without overwriting backups. A competing global Explorer defers the merge and retirement; a project-local Explorer definition stays unchanged and is noted in the warning. On startup, Pi also moves eligible tools.add entries from the current project's .pi/subagents.json overlay to Explorer and removes the retired overlay entry.
  • OpenCode: On initialization or refresh, eligible allow rules move to Explorer in the same global or project file, and the retired entry is removed. Rules that overlap Explorer deny or ask restrictions do not migrate.
  • Codex and Claude Code: No tool migration. Codex removes only an unedited Thoth-owned Librarian TOML and reports edited or unowned copies it preserves. Claude Code replaces its agent set through the native plugin manager.
Harness-specific maintenance

For Codex, npx thoth-agents@latest doctor --agent=codex provides read-only diagnostics. To remove attributable Codex surfaces, preview with npx thoth-agents@latest uninstall --agent=codex --dry-run, then omit --dry-run to apply.

For Pi, the first-party thoth-agents package remains exact and receipt-verified. The nine selected external packages use stable minimum-only >= ranges, so Pi's native package manager can update them independently without waiting for a Thoth release. Install and applied Update now include @thoth-agents/pi-thoth-theme, @thoth-agents/pi-background-tasks and @thoth-agents/pi-sidebar at >=0.3.0, plus @thoth-agents/pi-contained-shell at >=0.1.0 for Windows shell containment (a no-op on other platforms). Existing copies of these three packages from any source are preserved and verified without reinstalling when compatible; older copies are left untouched and block completion with manual upgrade guidance. Ambiguous sources fail closed. Status validates each installed manifest's package name and SemVer floor; newer stable versions are healthy, while prerelease, malformed, missing, or older versions are not. Re-running Install or applying Update migrates legacy exact sources for the other selected extensions through Pi while preserving package resource filters and unrelated settings.

Subagents (v2) and background tasks (v1) publish summary-only snapshots through pi-core's task channels. The status line uses thoth:subagents:usage, not the removed raw thoth:subagent-usage bus event. Upgrade pi-subagents and pi-thoth-theme to >=0.3.0 together and /reload to retain subagent cost display; the usage checkpoint discriminator is unchanged.

In Pi, /thoth-theme opens settings for icons, animation intensity, tool density, and module toggles. Visual settings apply live; module toggles require /reload. Opt-in tools.collapsed settings (frame | compact | line) let you keep framed cards or use compact tool rows, including subagent and todo cards. Expanded output is unchanged. See the theme guide.

The shared Pi Work panel uses pi-core's v2 data-only provider contract and discovery/action API. Upgrade pi-subagents, pi-background-tasks and pi-todo together to >=0.3.0, then /reload; first-owner arbitration hides incompatible sections in mixed v1/v2 installs. Subagent state is v2; background state, usage, requests and Render KIT remain v1. Todos support grouping, ordering, and archiving in compact views; completed-row limits preserve pending work. A compact Work summary remains visible when another component replaces the editor.

The Pi sidebar adds read-only Session, Workspace, Cost and discovered Todos/Subagents/Background panels in fullscreen and regular mode. /sidebar toggles, /sidebar panels lists ids for show/hide/order commands. Todo rows share compact counts with Work, group by status, and respect archive and completed-row limits. /sidebar resize resizes. /sidebar settings edits panel order, visibility, startup and default width; /sidebar cost opens task-cost curves against elapsed time per task, labeled by display name or a short task-summary name. Themed Agents/Background headers show static status-icon counts, omitting zero counts (Todos keeps completed/total), and detail commands; Workspace shows a ~-abbreviated path and tracked file/line changes versus HEAD. The Agents panel uses a two-line plan: identity, summary and elapsed on line one; a width-dependent priority prefix of metrics on line two. Lower-priority metrics are dropped as width shrinks. Only displayed source panels absorb their Work sections; hiding the sidebar restores them. Panel order/visibility and startup policy/default width live in ~/.pi/agent/thoth-sidebar.json. Subagent state v2 adds up to 100 cost-ranked persisted session summaries in history. Private Pi layout seams have guarded fallback; regular mode covers the live viewport, not historical scrollback. Update related extensions together to avoid mixed old UI owners.

Pi's question UI replaces the editor without covering chat. Panels size to content, capped at 45% of terminal height. Narrow previews start collapsed; p toggles them outside editors, and Alt+arrow keys scroll context. Tool context is limited to 500 characters; longer proposals belong in the response before the question. Ctrl+] collapses the question UI to a one-line dock and returns input to the editor; during an active run, Enter queues a steering message without answering the question. Ctrl+] re-expands with answers and drafts preserved, and the open tool-call card shows collapsed state. While open, Ctrl+] shadows editor jumpForward; collapsed Esc belongs to the editor or focused overlay. History/detail overlays close back to the expanded question or otherwise the editor; collapse and teardown preserve visible foreign-overlay focus. See question controls.

Documentation

User guides

Guide Use it to…
Installation Check prerequisites, preview setup, troubleshoot, and repair an installation.
Quick Reference Find commands, roles, skills, and workflow reminders.
SDD pipeline Understand routes, planning, review, verification, and archiving.
Skills and MCPs See the included workflows, research tools, and memory boundaries.
Provider Configuration Configure models and providers.
Codex Install Follow Codex-specific setup, activation, and trust requirements.
Codex Model Customization Adjust Codex specialist models.
Claude Code Install Follow marketplace setup and activation.
Pi Setup Check Pi dependencies, permissions, and recovery steps.

Technical guides

Working on thoth-agents itself? Start here rather than in the user setup above. Use pnpm@11.2.2 for local development.

Guide What it covers
Development Local build, verification, and harness development setup.
Architecture Repository structure and component responsibilities.
Codex Plugin Packaging Plugin contents, the global layer, and local synchronization.
Claude Code Plugin Packaging Native discovery, packaging, and ownership boundaries.
Codex Surface Validation Harness-specific validation evidence and limitations.
Agent Context Index Task-specific engineering and testing guidance.