feat: extract-takes as first-class gbrain command (spec)#858
Closed
garrytan-agents wants to merge 1 commit into
Closed
feat: extract-takes as first-class gbrain command (spec)#858garrytan-agents wants to merge 1 commit into
garrytan-agents wants to merge 1 commit into
Conversation
Adds REFACTOR-PROMPT.md — full spec for building `gbrain extract-takes` as a first-class CLI command. Architecture: repo-first. Takes are extracted by LLM and written as markdown table sections (gbrain:takes:begin/end markers) directly into brain page .md files. DB is a read cache populated by gbrain sync. DB can be nuked and rebuilt from repo at any time. Includes: - CLI interface spec (--slug, --type, --force, --concurrency, --dry-run) - Full extraction prompt (proven on 100K+ takes) - Marker format, holder attribution rules, weight calibration - Real examples from production brain pages - Sync integration spec (markdown → DB) - Extension pattern for facts/hunches/bets (same gbrain:X:begin/end markers)
4 tasks
Owner
|
Closing — shipped in v0.28.0.\n\nextract-takes shipped as src/core/cycle/extract-takes.ts + migration v0_28_0.ts. The spec doc became the implementation.\n\nThanks for the agent-fork PR. Closing because the work is already on master. |
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.
What
Adds
REFACTOR-PROMPT.md— the full spec for buildinggbrain extract-takesas a first-class CLI command.Architecture
Repo-first. Takes are extracted by LLM and written as markdown table sections (
gbrain:takes:begin/endmarkers) directly into brain page.mdfiles. DB is a read cache populated bygbrain sync. DB can be nuked and rebuilt from repo at any time.Spec includes
--slug,--type,--force,--concurrency,--dry-rungbrain syncintegration (markdown → DB)gbrain:X:begin/endmarkers)Context
~3,910 brain pages already have takes in this format. ~24K more need extraction. The previous approach wrote directly to DB which got purged during a schema migration. This spec ensures the repo is always the system of record.
Next step
Feed this spec to Claude Code to implement the actual command.
Need help on this PR? Tag
@codesmithwith what you need.