Skip to content

TODO

  • Per-agent todo lists - view a delegated agent's tasks, mark items done, jump into its session, and ask for the current state (OpenCode-style)
  • Recurring tasks carry their own role - each job carries its own role and skills, so behavior like "make doc changes per AGENTS.md" is encoded once instead of re-prompted every time
  • Runtime pluginization - make models, tools, skills, sessions, sandboxes, storage, loops, scheduling, and the UI replaceable plugins, and move the REPL to a plugin. Five replaceable layers: access, orchestration, capability, model, storage
  • One runtime, many agents - position Polyglav as an agent harness for fleets, not a single assistant
  • ACP inward and outward - speak the Agent Client Protocol so Polyglav can host and be hosted by other harnesses, alongside MCP
  • Commands as tools - expose slash commands to the model as permission-gated tools to configure roles, teams, and skills, with command access limited per permission
  • Markdown catalogue for teams and skills - store them as Markdown (front matter) referenced from JSON, with roles already done, in one catalogue directory
  • Hidden files and allowed paths - hide secrets and config from tools by default, and restrict visible paths to allowed roots
  • Context policy - keep user prompts until the task is done, cut unused references and tool results immediately, add a recall tool for role and team memory, enforce a configurable context limit, and offload large tool results to .polyglav/tmp/ referenced from the session log
  • Context UI polish - context trim, highlighting, and context desaturation
  • Open WebUI and OpenTUI connectors - drive Polyglav from external chat and terminal UIs
  • Tool-call quality enhancer - steer tool calling toward correct, cheaper calls (for example web-search parameters that find the right references) and better results
  • PlantUML plugin - an external plugin that draws configurations and workflows as node diagrams instead of ASCII
  • UI commands - keep /clear and /new, and persist error logs
  • Feedback - capture operator feedback on a run or answer and feed it back into memory and skills
  • Plugin management UI - list, enable, disable, install, and update plugins from a UI surface, not only slash commands
  • Model picker - /models autocomplete and a direct numeric selection of a model
  • Centralized static strings - move hardcoded prompts and static strings into one module
  • Code cleanup pass - a dedicated pass over the core for dead code, naming, and rough edges
  • Edge / offline store-and-forward buffering - offline-capable agents with local buffering for unreliable connectivity (enterprise use case)
  • Immutable agent config - polyglav serve agents must never be able to change their own configuration, permissions, or tool list (control-plane rule from the use-case reference architecture)
  • Hash-chained / tamper-evident audit log - additive on session logs (enterprise.md recommendation), hash-chained append or WORM storage
  • Single-purpose agent fleet with "one agent per process, scoped to a folder" as the headline pattern. README + docs/fleet.md set the niche
  • Fleet and swarm orchestration - fleet: supervisor running many scoped polyglav serve instances with port allocation, health checks, restart policy, and per-agent config generation. Swarm: /agent types, auditor agents, and generate > check > correct
  • Add ReadTheDocs documentation
  • Citations / source attribution - return URL + snippet with every answer
  • Bookmarks - /bookmark add/remove/list for session pinning
  • Interactive data analysis - CSV querying, SQL execution, code eval in REPL
  • Notebook mode - persistent editable cells with run outputs
  • Hybrid web + local RAG - vector store (FAISS/Weaviate), embeddings, local document search
  • Command palette / fuzzy search - CTRL-P style history search
  • Topic-aware ranking - classifier for query intent to weight search results
  • Self-update - polyglav update (Pi pi update --self analogue)
  • Standalone binary build - Pi-style release script producing a single executable (contentious for a zero-dep Python package)
  • Opt-in telemetry contracts - vendor-neutral event schema (OpenCode, Pi @earendil-works/pi-telemetry). Decide whether it fits the no-telemetry stance
  • Plugin registry / marketplace - discoverable plugin sharing (OpenClaw ClawHub analogue). PyPI entry-point source is a prerequisite
  • Session encryption at rest - key a session log with a passphrase or OS keystore so a disk copy is not readable, weighed against losing grep and export over the logs
  • API TLS and client certificates - terminate TLS in the server for deployments without a reverse proxy, so the JSON API is never reachable over plaintext

Open

  • [ ] Skill version archive - store each skill revision with a version, timestamp, and hash under .polyglav/skills/.versions
  • [ ] Skill version commands - add /skills versions, /skills restore, and /skills diff
  • [ ] Learn command - draft a skill from a verified session and save it locally or globally
  • [ ] Skill promotion - copy a local skill to ~/.config/polyglav/skills with its source and timestamp
  • [ ] Skill auto-enhancement - after a verified run, a gated conclusion stage writes or patches local skills only
  • [ ] Mypy widening - clean up the 48 findings in src/polyglav/engine.py and move the module into the CI allowlist, then widen module by module until the core is covered. Optional narrowing dominates the list
  • [ ] Ruff rule widening - the narrow E9/F63/F7/F82 selection passes, and the next tiers are real debt: 45 unused imports, 27 redefined-while-unused, 7 unused variables, 43 nested with statements, and 3 implicit string concatenations in collection literals
  • [ ] Apple FM tool relay - give the apple-fm provider tool calling without core changes. Register one relay fm.Tool per advertised schema, record the requested call, return a placeholder, discard the SDK's follow-up text, emit the captured call as a tool_calls event, then re-ask with the real tool result folded into the prompt. Needs an apple_fm_tools config flag, costs one extra generation per tool round, and forces non-streaming respond() for every turn, so it stays off by default
  • [ ] Apple FM native tool streaming - drop the relay once the SDK can emit tool calls from stream_response, keeping the same provider contract and removing the opt-in flag
  • [ ] apple-fm chat provider - BaseProvider subclass named apple-fm with model on-device and base URL local://apple-fm, streaming cumulative SDK snapshots as deltas, trimming the prompt to the 4096-token window, ignoring tools and reasoning, mapping temperature and max_tokens to GenerationOptions, and answering _fetch_models, list_models, and check_connection from is_available()
  • [ ] on_device tool - bundled polyglav-core-apple-fm plugin (lazy apple-fm-sdk import) with an on_device tool that takes prompt, optional text, and optional max_tokens, runs a fresh SDK session, caps the input, and returns the unavailability reason when Apple Intelligence is off or the model is not ready
  • [ ] Apple FM docs and tests - docs/providers.md row and section, docs/plugins.md bundled list, docs/testing.md row, the default plugins entry in config.py, and mocked apple_fm_sdk tests for snapshot diffing, trimming, availability errors, and the tool result shape
  • [ ] Composer plugin (nice-to-have) - a bundled plugin role that turns an under-specified request into a team by asking clarifying questions and saving it, per VISION.md
  • [ ] Ordered resource-scoped permission rules - replace the category-only permission map with an ordered list of {action, resource, effect} rules. action is a permission category (edit, read, bash, web, call, delegate, skill, ask, mcp, vcs), resource is a path, command prefix, URL, query, skill id, or role id, effect is allow/ask/deny, resources accept */? wildcards, and the last matching rule wins so a broad rule precedes its exceptions. ToolPolicy evaluates the rules per call after grants and before the mode cap, and an action that touches several files is denied if any file is denied. A role declares its own rule list, so file, folder, command, and URL access is enforced by policy rather than a prompt
  • [ ] Agent kind and default agent - a role declares whether it may run as the root or managed agent, be delegated to, or both, and a default_agent config names the role a fresh session starts as. The mode stays root-only, and the kind governs role selection, listing, and whether a sub-agent may be called
  • [ ] Agent presentation and limits - a role carries color (prompt and status accent), hidden (omit from listings and the delegation catalog), and disabled (remove a lower-layer role), plus a per-role step cap that drops the tool schema on the final step and asks the model to summarize
  • [ ] Durable approvals and a hard-deny layer - a confirm offers once/always/reject, always saves a project-scoped rule that survives the sub-agent run, an exact-args approval records the specific command or path rather than the whole tool, and a policy layer can turn any allow/ask into deny but never grant
  • [ ] Markdown catalogue for teams and skills - extend the JSON-index plus Markdown-body model to teams and skills, with one catalogue directory and migration from the JSON files
  • [ ] Per-agent request overlays - a role sets request headers and a JSON body overlay applied to its provider calls, for per-agent temperature or routing, with providers that ignore them degrading gracefully
  • [ ] Dev tool fallback - code_lint/code_format report a clear setup hint when the configured linter/formatter (ruff) is absent, and honor the dev.lint_cmd/dev.format_cmd overrides
  • [ ] Shared codebase research across roles - a role consults a shared research note (or memory) so roles do not re-read the same files
  • [ ] Tester loop scope - the tester runs only the related tests during the loop and the whole suite once, as a role-prompt change
  • [ ] Prompt brevity budget - every role prompt states a short output budget and a fixed report shape, so a report is a few lines instead of an essay
  • [ ] Docs writer commits each added task - the docs writer commits the tasks right after the operator's prompt and then works through the single points one at a time
  • [ ] Committer as a callable stage - a run calls the committer to land the current state as one commit with a correct message, so a long run does not accumulate uncommitted work
  • [ ] Researcher role with fresh context - a researcher role template with web access, started fresh for every task so research never inherits stale context
  • [ ] .polyglav directory layout - decide and document the reserved subfolders and file names under .polyglav/
  • [ ] Skill definition - a skill holds tool, language, or framework instructions, not a project description
  • [ ] Skill catalog review - rework the project and local skills against that definition, add a python skill and a polyglav skill, and move project-description text into AGENTS.md
  • [ ] AGENTS.md as the project description - keep it the single project description and update it when the structure, conventions, or extension points change
  • [ ] Leader PM posture - the leader holds the whole picture, pushes back on a request that breaks the project, and concretizes an ambiguous prompt until the requirement is synced instead of guessing
  • [ ] memorize as a tool - memory writes happen through a tool an agent calls, triggered by the operator's prompt, not only through the slash command
  • [ ] Add memory references and self-improvement - bounded summaries point at full artifacts, and a write-scoped conclusion stage distills finished runs into role memory and skills
  • [ ] Saved-session catalog in /load - /load lists and loads saved sessions so an operator can reattach to a prior agent after a restart, while /runs stays a read-only history
  • [ ] Fix the PyPI long-description screenshot - the image fails to load on the package page
  • [ ] Fix opencode permission rejection - the provider stops when a permission is rejected instead of continuing
  • [ ] Exact-args permission grants - approve the specific command (not just the tool), and let an always grant live beyond the current sub-agent run
  • [ ] Relocate job run sessions under .polyglav/jobs/<name>/ (kept in sessions/ for now)
  • [ ] Per-job report destination - a report_url (or connector list) on a job so different jobs report to different endpoints, instead of one global report.webhook
  • [ ] Full file_* namespace extension - if file_glob/file_grep prove better with most models, extend the prefix to list_dir/glob/grep (old names stay aliases)
  • [ ] Tool spec polish - rename grep.glob -> include (alias glob), add examples and prefer-web_fetch guidance to tool descriptions
  • [ ] Job event hooks - the scheduler emits typed transitions (proposed, approved, will_run, executing, verified, failed, timeout, waiting_approval) to registered services. Channel-agnostic core, first consumers are the connectors and the operator API
  • [ ] Add inbound run triggers - accept webhook events that start a run or answer a job question
  • [ ] Add job notifications and outbound connectors - one event stream over a stdlib webhook, then email and Telegram, with approve, reject, run, and disable routed to the jobs API
  • [ ] Add the jobs and fleet control surface - GET /jobs and POST /jobs//approve|reject|run|disable on polyglav serve, a fleet-wide list --root, and a stdlib web Control UI on the same API
  • [ ] Role directory scan for export/import - read .polyglav/roles/*.md (front-matter roles) to import and export roles to Markdown, paralleling the sessions Markdown export/import
  • [ ] Auto team selection - the assistant picks roles, teams, and skills from the registries for a task and delegates in sequence (team orchestration as a user-facing pattern, e.g. "compare with competitors" -> Researcher > Writer > Referencer > Editor)
  • [ ] Add agent status - one /status surface for sessions, runs, jobs, fleet health, and configured agents across machines
  • [ ] Remote channels - command agents from messaging apps (OpenClaw channels parity):
  • [ ] Channel gateway - one adapter surface over the engine/serve API
  • [ ] Telegram adapter - long-polling bot, send + receive
  • [ ] WhatsApp adapter - business-API HTTP channel
  • [ ] More adapters (Discord, Signal, email)
  • [ ] Remote auth + session scoping + headless deny
  • [ ] Session recall - full-text search across past sessions (grep/index over .polyglav/sessions/) so an agent can answer from its own history
  • [ ] Tool dry-run mode - propose tool args/effects without executing (enterprise tool-gateway requirement)
  • [ ] Context-aware cross-plugin tool router - virtual tool names (open, search, ...) dispatch per-argument to the matching plugin handler via register_handler(name, match=...) (e.g. open https://... > polyglav-core-web, open ../... > polyglav-core-fs), with merged schemas and args-aware policy accessors
  • [ ] Grep text index - internal bundled plugin (stdlib) that indexes converted text files for local search, bridging toward the vector store
  • [ ] Agent folder watcher - internal bundled plugin (stdlib threading + pathlib polling) that detects new files in an agent's folder and triggers their processing (e.g. convert new PDFs on arrival), scoped capability, no deps
  • [ ] Add content ingestion - cache web and PDF results under .polyglav/files, scrape full pages, and convert local or remote PDFs to text
  • [ ] Externalize the bundled plugins (polyglav-core-web/fs/exec) into separate versioned repositories, while the bundled copies stay the shipped defaults. Global/local plugins of the same name already override them
  • [ ] PyPI plugin source - discover installed plugin packages via importlib.metadata entry points (polyglav.plugins group)
  • [ ] Shared plugin virtualenv - one venv for all plugin dependencies, injected at import
  • [ ] Per-plugin virtualenv isolation - ~/.config/polyglav/plugins/<name>/.venv. The loader injects its site-packages at import (strongest dependency separation)
  • [ ] Auditor agents - sub-agents that review/check a produced output (tests, code review, fact-check)
  • [ ] Generate > check > correct orchestration - run a main agent, an auditor, and a fix pass in a loop until passing
  • [ ] Custom system prompts per session
  • [ ] code_debug / compile - pdb/gcc/rustc wrappers (test/lint/format landed as code_test/code_lint/code_format)
  • [ ] docs_search - local grep + DuckDuckGo for documentation lookups
  • [ ] Workspace sessions - tools write into a scoped --workspace dir, optional --git sync
  • [ ] Sandboxed exec - namespace/container isolation for run_command (documented, planned for a later version)
  • [ ] /agent types - interactive type selection/run UX (type registry, sub-engine, and call landed. The /agent command itself remains)
  • [ ] Add multiuser API and queue - a fleet-level central model layer with request queues and per-token rate limits
  • [ ] Headless web API plugin-first - stdlib http.server fallback, richer framework (FastAPI) via the dependency plugin
  • [ ] Enterprise plugins (stdlib-first, third-party deps optional):
  • [ ] Data ingestion - read_stream / write_stream (MQTT, OPC-UA, Modbus)
  • [ ] Time-series - anomaly_detect (z-score), forecast
  • [ ] Model inference - model_infer / predict_failure (ONNX)
  • [ ] Optimization - optim_schedule (scheduling / linear programming)
  • [ ] SCADA control - scada_command (OPC-UA registers)
  • [ ] Reporting - report_gen (Markdown/PDF, email/BI push)
  • [ ] Audit logging + metrics (/metrics) for enterprise deployments
  • [ ] Onboarding wizard (polyglav wizard) for data-source / MES interface setup
  • [ ] RBAC - role-based access control for enterprise deployments
  • [ ] Queue-based scaling - many sensor and chat feeds without blocking the loop
  • [ ] Add session interchange - Markdown import and shareable or published sessions