When an agent works on a task, it produces artifacts — code diffs, test results, PR links, log files, screenshots. Currently AO captures only basic session logs. Everything else is lost or scattered across the filesystem.
Goose's session module at crates/goose/src/session/:
| File | What It Does | AO Equivalent |
|---|---|---|
session_manager.rs | Full session lifecycle — create, resume, list, search | AO has session-manager but no artifact tracking |
extension_data.rs | Stores arbitrary extension data per session | AO has nothing — this is exactly what artifacts need |
chat_history_search.rs | Full-text search across session histories | AO can't search past sessions |
diagnostics.rs | Session health diagnostics and debugging | AO has basic status only |
Additionally, Goose has:
tool_monitor.rs — Monitors tool execution in real-timetool_inspection.rs — Inspects and validates tool resultsconversation/tool_result_serde.rs — Serialization for tool resultsCore types from the research doc:
interface SessionArtifact {
id: string;
sessionId: string;
type: 'diff' | 'test-result' | 'log' | 'pr' | 'screenshot' | 'file' | 'custom';
name: string;
path: string; // relative to session artifact dir
mimeType: string;
size: number;
createdAt: string;
metadata: Record<string, unknown>;
}
interface ArtifactManifest {
sessionId: string;
schemaVersion: 1;
artifacts: SessionArtifact[];
summary: { totalSize: number; count: number; };
}
Path utility: ~/.agent-orchestrator/artifacts/{sessionId}/manifest.json
New file: packages/core/src/artifact-service.ts
interface ArtifactService {
addArtifact(sessionId: string, artifact: CreateArtifactInput): Promise<SessionArtifact>;
getArtifacts(sessionId: string): Promise<SessionArtifact[]>;
getArtifact(sessionId: string, artifactId: string): Promise<SessionArtifact | null>;
deleteArtifact(sessionId: string, artifactId: string): Promise<void>;
getArtifactContent(sessionId: string, artifactId: string): Promise<Buffer>;
}
Storage: file-based (default). Each session gets a directory. Manifest tracks all artifacts.
Hook into session lifecycle:
ao artifacts list <session-id> # List artifacts for a session
ao artifacts show <session-id> <id> # Show artifact details
ao artifacts export <session-id> # Export all artifacts as zip
ao artifacts search <query> # Search across all sessions
GET /api/sessions/:id/artifacts # List artifacts
GET /api/sessions/:id/artifacts/:aid # Get artifact detail
GET /api/sessions/:id/artifacts/:aid/raw # Download raw content
POST /api/sessions/:id/artifacts # Add artifact manually
New panel in SessionDetail.tsx:
Triggered automatically:
After agent completes, run verification:
Output: verification score per session (green/yellow/red)
Orchestrator uses artifacts to make decisions:
| Feature | AO (current) | AO (with artifacts) | Goose | OpenHands |
|---|---|---|---|---|
| Session history | Basic logs | Full artifact trail | Chat history + tool results | Full workspace snapshot |
| Diff tracking | None | Auto-captured | Via extension data | Full file tree |
| Verification | None | Score per session | Tool inspection | SWEBench integration |
| Search | None | Full-text search | Chat history search | Yes |
ao artifacts list works from CLI