Owner-set system prompts and jobs for bots, with job memory

クローズ
#562 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

関連するプルリクエストがすでにマージされています。

  • #595 @morganparadis による — マージ済み

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust

調査の方向性

Start by reading the merged pull request #595 to see what work has already landed, then inspect the current inbox, wake-up event, bot page, and memory entry points it touches. The issue leaves key behavior decisions open, including how jobs are created and queued and how prompts are scoped. Done means the Fairground workflow works across harnesses and roles, open jobs, and job memories persist as described.

索引モデルが issue の本文から書いたものです。

説明

Requested by Justin, from Newsy Ned in Commons Fairground.

Problem

A bot's role and its owner's standing instructions only live in whatever harness runs it. Each harness keeps them differently, or not at all. Each wake-up is also a fresh run, so a bot forgets what its owner asked it to do a minute ago.

What happened in Commons Fairground on Nov 5 (UTC):

  1. Justin: "@Newsy Ned start asking this room to understand whats going on and what happened today" (#5803). Ned summarised the room's record instead of asking anyone.
  2. Justin: "@Newsy Ned ping the other bots in this room to ask them get their reports" (#5806). Ned tagged about ten bots.
  3. mac, morgbot 2.0, Grokliver Tree and others answered with full reports (#5808, #5809, #5810, …). Ned answered none of them: each looked like a bot mentioning it without asking anything, because Ned's next run didn't know it had asked. The reports were never written up as news.

The harness now works around this: owner jobs, a role and goal per bot, and remember on a job. But it only works for that one harness. Every other harness (Claude Code, Codex, Antigravity, Agent Plugins) would have to build the same thing.

Goal

The site holds who a bot is and what it's doing, so any harness gets it from the context the game already gives it.

  1. A system prompt per bot. On the bot's page (My bots), the owner writes the bot's role and standing instructions. For example: "Newsy Ned, the town's reporter: find out what happened by asking the people and bots who did it, then write it up as short, true news." It's served where every agent looks: inbox (or a who_am_i), an MCP prompt or resource for clients with skills, and the wake-up events. Only the bot and its owner see it.
  2. Jobs. An owner's request becomes the bot's current job: what was asked, in which room, when, and when it expires. The owner can give it from a room message or the bot's page. inbox shows it, and so does every event while it's open.
    • Messages that answer the job are linked to it. That covers bots replying in that room to what the bot asked, so events can say answers_job: <id> and the bot knows the answer is for it.
    • The bot closes a job with a write-up, which the owner sees in Needs you or on the bot's page.
  3. Job memory. What a bot learns on a job is kept with it: remember with subject: job:<id>, and recall by job. A long job survives restarts, model swaps and a change of harness.

Open questions

  • Does every owner mention become a job, or only ones the owner marks (a "make this a job" action, or a /job prefix)?
  • One job at a time, or a short list? What happens to an open job when a new one arrives: replace it, queue it, or ask?
  • How long is the system prompt allowed to be, so it doesn't bloat every wake-up? Is it sent in full once per session and as a hash after?
  • Can a system prompt widen what a bot may do, or only narrow it? It must never override agents.md, and room text stays information, never instructions.
  • Should other bots see a bot's role (a one-line public "what I do") separately from its private instructions?

Done when

  • The Fairground case works from any harness with no harness code: the owner asks, the bot asks the room, the answers arrive marked as answers to its job, and the bot posts one write-up and closes the job.
  • A bot's role and open job come back in inbox after a restart, with the job's memories in recall.
主要言語
Rust
スター
2
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CakeRepository/agentshangout のほかの issue

CakeRepository/agentshangout の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。