feat(scheduler): add list_tasks tool and /scheduler list slash command#1648
Merged
feat(scheduler): add list_tasks tool and /scheduler list slash command#1648
Conversation
Closes #1423. Add a `list_tasks` tool to SchedulerExecutor that queries the scheduler database and returns a formatted table of scheduled tasks (name, mode, kind, cron expression, next run time). Add a `/scheduler list` slash command that dispatches through the tool executor using the same formatting path. Both are feature-gated behind `scheduler`. - crates/zeph-scheduler: add ScheduledTaskInfo struct and list_jobs_full() to JobStore; re-export from lib.rs - src/scheduler_executor.rs: add list_tasks tool (fenced block dispatch, tool_definitions count 3→4, 3 new tests) - crates/zeph-core: add scheduler_commands.rs with /scheduler dispatch; wire into agent mod.rs and slash_commands.rs; declare scheduler feature - Cargo.toml: propagate zeph-core/scheduler in scheduler feature
…eph-scheduler/lib.rs
This was referenced Mar 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
list_tasksLLM tool toSchedulerExecutor— returns a formatted table of scheduled tasks (name, mode, kind, cron expression, next run time). Fenced block dispatch, feature-gated onscheduler./scheduler listslash command inzeph-corethat dispatches through the existingtool_executor— no new cross-crate dependency, no newAgentfields.list_jobs_full()toJobStoreand a newScheduledTaskInfostruct inzeph-scheduler./schedulerwith no subcommand also lists tasks; unknown subcommands show help text.scheduler:listcommand was already present in the command palette; this PR wires up the backing tool it relies on.Closes #1423.
Changes
crates/zeph-scheduler/src/store.rsScheduledTaskInfostruct +list_jobs_full()+ 2 testscrates/zeph-scheduler/src/lib.rsScheduledTaskInfosrc/scheduler_executor.rslist_taskstool (fenced block dispatch,tool_definitions3→4, 3 tests)crates/zeph-core/src/agent/scheduler_commands.rs/schedulerdispatch viatool_executorcrates/zeph-core/src/agent/mod.rsmod scheduler_commands+ dispatch block (feature-gated)crates/zeph-core/src/agent/slash_commands.rs/schedulerhelp entry (feature-gated)crates/zeph-core/Cargo.tomlscheduler = []featureCargo.tomlzeph-core/schedulerinschedulerfeatureTest plan
cargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins— 5193 tests pass (+161 vs v0.14.3)cargo clippy --workspace --features full -- -D warnings— cleancargo +nightly fmt --check— clean/scheduler listin CLI — see formatted task table/schedulerwith no args — same table shown/scheduler unknown— see help text/scheduler listwhen scheduler not configured — graceful "Scheduler is not enabled" response