feat: Knowledge Extraction — spec + implementation workflow#14
Closed
khaliqgant wants to merge 2 commits intomainfrom
Closed
feat: Knowledge Extraction — spec + implementation workflow#14khaliqgant wants to merge 2 commits intomainfrom
khaliqgant wants to merge 2 commits intomainfrom
Conversation
Spec: docs/knowledge-extraction-spec.md - Agents attach knowledge annotations to file paths at write time - Path-scoped queries: 'what do we know about packages/billing/**?' - Auto-extraction from diffs (imports, env vars, test frameworks) - Trajectory retrospective mining for lessons/conventions - Relay broker injects relevant knowledge into agent task preambles - Builds on existing FileSemantics.properties model, no new database Workflow: workflows/relayfile-knowledge-extraction.ts - 7 steps, 4 agents (2 Claude architect/reviewer, 2 Codex builders) - Phase 1: D1 storage + API routes + SDK methods - Phase 2: Diff-based auto-extractors - Phase 3: Trajectory integration - Follows NightCTO workflow lessons: granular steps, output-constrained, Codex builders
| "description": "CLI for relayfile — real-time filesystem for humans and agents", | ||
| "bin": { | ||
| "relayfile": "bin/relayfile" | ||
| "relayfile": "scripts/run.js" |
Contributor
There was a problem hiding this comment.
🟡 package-lock.json not updated after bin path change, can break npm ci
The package.json bin entry was changed from bin/relayfile to scripts/run.js, but the root package-lock.json still records the old value ("relayfile": "bin/relayfile" at package-lock.json:531). Since packages/relayfile is an npm workspace member (declared in root package.json:workspaces), running npm ci or npm install at the repo root may fail or produce incorrect bin symlinks because the lockfile metadata is out of sync with the actual workspace package.json.
Prompt for agents
Run `npm install` (or `npm install --package-lock-only`) at the repository root to regenerate the root package-lock.json so that the workspace entry for packages/relayfile reflects the new bin path `scripts/run.js` instead of the stale `bin/relayfile`. The current stale entry is at package-lock.json line 531.
Was this helpful? React with 👍 or 👎 to provide feedback.
Member
Author
|
Closing — premature feature spec, will revisit when core is stable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Knowledge Extraction for Relayfile
Problem
When multiple agents work on the same codebase, each starts cold. Agent 3 discovers conventions, dependencies, and gotchas — but agent 7, starting 20 minutes later, has none of this context.
Solution
File-path-scoped knowledge annotations that agents write (explicitly or auto-extracted from diffs/trajectories) and query before starting work. The relay broker can inject relevant knowledge into task preambles automatically.
What's included
docs/knowledge-extraction-spec.md— full design covering data model, API, extraction strategies, broker integrationworkflows/relayfile-knowledge-extraction.ts— 7-step implementation workflow (2 Claude + 2 Codex agents)Key design decisions
Relationship to other specs
Not included (future phases)