feat(pi-workflow): reuse standard agent profiles

This commit is contained in:
jb
2026-08-26 22:51:20 -04:00
parent a4784b75c3
commit aa50f0fd16
12 changed files with 606 additions and 54 deletions
+19 -1
View File
@@ -46,7 +46,12 @@ export interface AgentProfile {
tools?: string[];
selection: ProfileSelection;
instructions: string;
source: "bundled" | "project";
source:
| "bundled"
| "project"
| "standard-package"
| "standard-global"
| "standard-project";
sourcePath: string;
resolvedPath: string;
digest: string;
@@ -446,6 +451,11 @@ export const MAX_CONCURRENCY = 32;
export const MAX_ASSIGNMENTS_PER_RUN = 1_024;
export const MAX_REVIEW_CYCLES = 20;
export interface StandardAgentConfig {
enabled: boolean;
roles: Record<string, ProfileRole[]>;
}
export interface WorkflowConfig {
concurrency: {
default: number;
@@ -454,6 +464,7 @@ export interface WorkflowConfig {
maxAssignmentsPerRun: number;
maxReviewCycles: number;
analysisTools: string[];
standardAgents: StandardAgentConfig;
worktrees: {
root: string;
};
@@ -467,6 +478,13 @@ export const DEFAULT_WORKFLOW_CONFIG: WorkflowConfig = {
maxAssignmentsPerRun: 128,
maxReviewCycles: 3,
analysisTools: [...ANALYSIS_TOOL_ALLOWLIST],
standardAgents: {
enabled: true,
roles: {
scout: ["discover"],
worker: ["implement"],
},
},
worktrees: {
root: ".worktrees",
},