Scheduled agent workflows: model access and headless agent runs in jobs

Open
#133 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
go, kubernetes

Research direction

Read the plans for #132 and inspect how agent app pods use internal/agenthelper to serve models at 127.0.0.1:7690/model. First resolve the open choices around model access, approval, prompt and workspace controls, per-run limits, and run history; the issue gives no files or tests to start from. Done means scheduled jobs can run approved headless agent work with bounded model use and observable results.

Written by the indexing model from the issue text.

Description

type: enhancement 💅🏼

Summary

Let a person schedule work that a coding agent does unattended. Examples: "every Monday at 8am, read my GitHub and calendar and email me my focus areas for the week", or "every night, triage new issues and draft labels". It should run as a job, with the connector calls it may make approved once (#132), and with access to a model.

Today only coding agent apps can use the model. Their pods run the agent helper (internal/agenthelper), which holds the model key and serves the model at 127.0.0.1:7690/model. Jobs have no model route and no helper.

Depends on

#132: jobs that make approved connector calls. That work plans to give job pods the same helper agent apps have, so connector calls go through it and the job's code never holds the token. This issue builds on that.

Scope to work out

  • Model access for jobs. Part of the approved plan, like the connector calls. Should it use the platform model, the owner's own key, or either (as agent apps do today)?
  • Headless agent runs. A job whose command is a coding agent run (for example pi -p "<prompt>"), on an agent template, with the prompt saved with the job. How the prompt, skills and working folder are fixed and approved.
  • Cost and limits. Model spend per run, and a token or time cap per run. Show the spend in the run history.
  • Varying behaviour. An agent run can do different things each time, but only within the approved calls (#132). Org connector policy still applies to every call.
  • Observability. Run history shows the agent's transcript or a summary, the connector calls it made, and the model usage.

Out of scope

Plain scripts that make connector calls without a model are covered by #132.

Dominant language
Go
Stars
5
Forks
0
Avg merge
21h 13m
Merged PRs (30d)
53

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nebari-dev/tapas

All issues in nebari-dev/tapas

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.