Pi extension for async subagent delegation with truncation, artifacts, and session sharing
This report summarizes scanner evidence for nicobailon/pi-subagents, a TypeScript project with 4,111 GitHub stars. SynthScan examined 275,071 lines of code across 818 source files, recording 1072 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 3.9 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 1067 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 1062 finding(s).
Which changes need focused human review? 1072 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1072 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | index.ts | 12 | export default function registerSubagentExtension(pi: ExtensionAPI): void { | CODE |
| LOW | tools/oxlint/anti-slop/shared/reflect-method.ts | 24 | export function isGlobalReflectMethodCall( | CODE |
| LOW | tools/oxlint/anti-slop/shared/dictionary-types.ts | 142 | function isEffectivelyEmptyTypeLiteral(type: ESTree.TSTypeLiteral): boolean { | CODE |
| LOW | tools/oxlint/anti-slop/shared/dictionary-types.ts | 146 | function isEffectivelyEmptyInterface( | CODE |
| LOW | tools/oxlint/anti-slop/shared/dictionary-types.ts | 158 | function resolvedSubstitutionArgument( | CODE |
| LOW | tools/oxlint/anti-slop/shared/dictionary-types.ts | 307 | export function classifyUnsafeDictionaryValue( | CODE |
| LOW | tools/oxlint/anti-slop/shared/dictionary-types.ts | 467 | export function isPopulatedObjectExpression(expression: ESTree.Expression): boolean { | CODE |
| LOW | tools/oxlint/anti-slop/shared/dictionary-types.ts | 480 | export function isKnownEvidenceExpression(expression: ESTree.Expression): boolean { | CODE |
| LOW | …ols/oxlint/anti-slop/shared/lexical-type-parameters.ts | 14 | function collectInferTypeParameterNames( | CODE |
| LOW | …ols/oxlint/anti-slop/shared/lexical-type-parameters.ts | 34 | export function lexicalTypeParameterNames( | CODE |
| LOW | tools/oxlint/anti-slop/rules/no-widen-then-assert.ts | 18 | function unwrapExpressionParentheses(expression: ESTree.Expression): ESTree.Expression { | CODE |
| LOW | tools/oxlint/anti-slop/rules/no-widen-then-assert.ts | 143 | function isDefinitelyNarrowerRecordType(type: ESTree.TSType): boolean { | CODE |
| LOW | tools/oxlint/anti-slop/rules/no-widen-then-assert.ts | 171 | function resolvedVariableForIdentifier( | CODE |
| LOW | …s/oxlint/anti-slop/rules/no-chained-type-assertions.ts | 6 | function isTypeAssertionExpression(node: ESTree.Node): node is TypeAssertionExpression { | CODE |
| LOW | …s/oxlint/anti-slop/rules/no-chained-type-assertions.ts | 10 | function unwrapParenthesizedExpression(expression: ESTree.Expression): ESTree.Expression { | CODE |
| LOW | …s/oxlint/anti-slop/rules/no-chained-type-assertions.ts | 27 | function isOutermostAssertionInChain(node: TypeAssertionExpression): boolean { | CODE |
| LOW | …s/oxlint/anti-slop/rules/no-chained-type-assertions.ts | 39 | function isForbiddenAssertionChain(node: TypeAssertionExpression): boolean { | CODE |
| LOW | tools/oxlint/anti-slop/rules/no-known-value-widening.ts | 125 | function isDictionaryAccumulatorTarget(destination: WideningTarget): boolean { | CODE |
| LOW | …/anti-slop/rules/no-conditional-empty-object-spread.ts | 16 | function isConditionalEmptyObjectSpread(node: ESTree.Expression): boolean { | CODE |
| LOW | …ls/oxlint/anti-slop/rules/no-unsafe-dictionary-type.ts | 60 | function isInsideTypeAliasDeclaration(node: ESTree.Node): boolean { | CODE |
| LOW | …ols/oxlint/anti-slop/rules/no-shape-in-symbol-names.ts | 6 | function containsForbiddenSymbolName(name: string): boolean { | CODE |
| LOW | test/unit/schemas.test.ts | 136 | function hasAnyOfArrayWithStringItems(schema: JsonSchemaNode | undefined): boolean { | CODE |
| LOW | test/unit/agent-frontmatter.test.ts | 28 | function createNestedLinkedWorktree(): { repo: string; worktree: string } { | CODE |
| LOW | test/unit/agent-frontmatter.test.ts | 43 | function writeLinkedWorktreePackage(repo: string): { packageAgentName: string; packageAgentPath: string; settingsPath: s | CODE |
| LOW | test/unit/fleet.test.ts | 39 | function writeForegroundHistoryFile(resultsDir: string, run: { runId: string }): void { | CODE |
| LOW | test/unit/host-peer-runtime-imports.test.ts | 28 | function extractStaticImportSpecifiers(source: string): string[] { | CODE |
| LOW | test/unit/workflow-resume-hint.test.ts | 91 | function writeManagedWorktreeHandoff(root: string, childRunId: string): void { | CODE |
| LOW | test/unit/worktree.test.ts | 85 | function assertRetainedHookFailure(error: unknown, message: RegExp): true { | CODE |
| LOW | test/unit/async-interrupt-action.test.ts | 121 | function createWorkflowForegroundControl( | CODE |
| LOW | test/unit/herdr-inspector.test.ts | 24 | function sessionRootsFromRunCommand(command: string): string[] { | CODE |
| LOW | test/integration/fork-context-execution.test.ts | 63 | function makeSessionManagerRecorder(options: SessionStubOptions = {}) { | CODE |
| LOW | test/integration/fork-context-execution.test.ts | 134 | function makeExecutorWithDiscoverAgents(discoverAgentsImpl: typeof discoverAgents, config: Record<string, unknown> = {} | CODE |
| LOW | test/integration/fork-context-execution.test.ts | 202 | function makeForkingSessionManagerRecorder(options: { sessionFile: string; leafId: string }) { | CODE |
| LOW | test/integration/fork-context-execution.test.ts | 273 | function makeSignedThinkingSessionManager(childSessionFile: string) { | CODE |
| LOW | test/integration/async-job-tracker.test.ts | 149 | function createNativeSupervisorHarness(sessionId: string) { | CODE |
| LOW | test/integration/async-job-tracker.test.ts | 177 | function startSupervisorAttentionRun(asyncRoot: string, runId: string, timers: { tick(ms: number): void }) { | CODE |
| LOW | test/integration/slash-commands.test.ts | 233 | async function captureSlashCommandParams( | CODE |
| LOW | test/support/runner-child-session-factory.ts | 11 | export default function createRunnerChildSessionFactory() { | CODE |
| LOW | test/support/single-execution-fixture.ts | 283 | export function installSingleExecutionHooks() { | CODE |
| LOW | test/support/async-execution-fixture.ts | 609 | export function installAsyncExecutionHooks(): void { | CODE |
| LOW | test/support/async-result-timeout-evidence.ts | 5 | export function asyncResultTimeoutEvidence(asyncDir: string, id: string): string[] { | CODE |
| LOW | test/support/asking-child-session-factory.ts | 9 | export default function askingChildSessionFactory(): ChildSessionFactory { | CODE |
| LOW | src/extension/doctor.ts | 115 | function formatConfiguredSessionDir(input: DoctorReportInput): string { | CODE |
| LOW | src/extension/doctor.ts | 190 | function formatActiveAsyncCapacitySection(input: DoctorReportInput): string[] { | CODE |
| LOW | src/extension/doctor.ts | 199 | function formatPermissionSystemSection(): string[] { | CODE |
| LOW | src/extension/doctor.ts | 221 | function formatWorkflowScriptSection(): string[] { | CODE |
| LOW | src/extension/steering-notices.ts | 21 | export function handleSubagentSteeringNotice(input: { | CODE |
| LOW | src/extension/control-notices.ts | 38 | export function handleSubagentControlNotice(input: { | CODE |
| LOW | src/extension/schemas.ts | 30 | function isTopLevelParameterDescription(path: string[]): boolean { | CODE |
| LOW | src/extension/schemas.ts | 317 | export function createSubagentParamsSchema(disabled?: DisabledFeatureSurface): typeof SubagentParams { | CODE |
| LOW | src/extension/rpc.ts | 396 | function normalizeTargetParamsFromRecord(input: Record<string, unknown>): Pick<SubagentParamsLike, "id" | "runId" | "dir | CODE |
| LOW | src/extension/rpc.ts | 856 | export function registerSubagentRpcBridge(options: RegisterSubagentRpcBridgeOptions): { | CODE |
| LOW | src/extension/fanout-child.ts | 61 | function resolveNestedControlRoute(config: ChildRuntimeConfig): NestedRoute | undefined { | CODE |
| LOW | src/extension/fanout-child.ts | 80 | function createNestedControlInboxState(): NestedControlInboxState { | CODE |
| LOW | src/extension/fanout-child.ts | 84 | function startNestedControlInboxListener(pi: ExtensionAPI, state: SubagentState, route: NestedRoute, inboxState: NestedC | CODE |
| LOW | src/extension/fanout-child.ts | 152 | export default function registerFanoutChildSubagentExtension(pi: ExtensionAPI, childConfig: ChildRuntimeConfig): void { | CODE |
| LOW | src/extension/subagent-options.ts | 18 | export function flattenSubagentToolOptions(params: Record<string, unknown>, disabled?: DisabledFeatureSurface): Subagent | CODE |
| LOW | src/extension/tool-description.ts | 90 | export function buildSubagentToolPromptMetadata(config: Pick<ExtensionConfig, "toolDescriptionMode"> = {}, disabledFeatu | CODE |
| LOW | src/extension/tool-description.ts | 95 | export function resolveToolDescriptionMode(config: Pick<ExtensionConfig, "toolDescriptionMode">, options?: ToolDescripti | CODE |
| LOW | src/extension/tool-description.ts | 134 | function loadCustomToolDescription(options?: ToolDescriptionOptions): string | undefined { | CODE |
| 1002 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CHANGELOG.md | 2903 | - Removed exported `resolveSessionRoot()` function and `SessionRootInput` interface. These were introduced by PR #46 but | CODE |
| MEDIUM | docs/workflows.md | 1 | # Workflows and orchestration | COMMENT |
| MEDIUM | docs/workflows.md | 5 | ## Recommended orchestration pattern | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/unit/workflow-detach-reconcile.test.ts | 367 | const status = { ...pausedWorkflow("placeholder", { runId: undefined, sessionFile }), runId: workflowRunId, sessionId: | CODE |
| LOW | test/unit/workflow-detach-reconcile.test.ts | 388 | const status = { ...pausedWorkflow("placeholder", { runId: undefined, sessionFile: undefined }), runId: workflowRunId, | CODE |
| LOW | test/unit/workflow-detach-reconcile.test.ts | 413 | const status = { ...pausedWorkflow("placeholder", { runId: undefined, sessionFile: undefined }), runId: workflowRunId, | CODE |
| LOW | test/unit/workflow-detach-reconcile.test.ts | 438 | const status = { ...pausedWorkflow("placeholder", { runId: undefined, sessionFile: "/tmp/replacement-child.jsonl" }), | CODE |
| LOW | src/runs/background/subagent-runner-bootstrap.ts | 80 | throw new Error("Invalid runner configuration: 'placeholder' must be a string."); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/extension/rpc.ts | 735 | async function handleRequest( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/shared/fork-context.ts | 1 | // Forking a parent transcript into a child copies the parent's assistant messages verbatim, signed | COMMENT |