An agent runs ONE command and is working: it announces presence, claims the open task addressed to it, and prints the task + its handoff + the next step. Removes the per-agent kickoff copy-paste. - src/cli/commands/start.ts: `agenthub start --agent <name> --role <role>`. "Addressed to <agent>" = task title starts with "<agent>:" OR a handoff has toAgent=<agent>. Claims it, prints task body + handoff + the review gate reminder. No addressed task → lists open role tasks to pick. Works on local + --server paths. - templates: implementer guides (AGENTS/CODEX/KIMI.md) now lead with "On your first turn, RUN `agenthub start …` — do not just summarize", so a fresh session self-onboards from one trigger word. - tests: start auto-claims the addressed task, ignores others, no-ops on empty queue; templates test updated for the new commands. 116/116 green. Bump 0.2.2 -> 0.3.0. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
17 lines
611 B
TypeScript
17 lines
611 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|
import { agentsMd, claudeMd, codexMd, kimiMd } from '../src/core/templates.js';
|
|
|
|
describe('templates', () => {
|
|
it('includes project name in AGENTS.md', () => {
|
|
expect(agentsMd('my-app')).toContain('my-app');
|
|
});
|
|
|
|
it('references agenthub commands', () => {
|
|
expect(claudeMd()).toContain('agenthub decision create');
|
|
// Implementer guides now onboard via `agenthub start` (which auto-claims)
|
|
// and submit via the review gate.
|
|
expect(codexMd()).toContain('agenthub start');
|
|
expect(codexMd()).toContain('agenthub task review');
|
|
});
|
|
});
|