-
Notifications
You must be signed in to change notification settings - Fork 15
feat(octto): add browser-based brainstorming system #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
039c9cd
fix(context-injector): use camelCase filePath property name
vtemian cdc3c05
fix(pty): add error handling for spawn failures
vtemian ff904f7
feat(utils): add errors.ts utility for unified error handling
vtemian baca78c
feat(utils): add logger.ts utility for standardized logging
vtemian de37ae5
feat(utils): add centralized config utility
vtemian 91fc9e7
fix: validate model configuration and fallback to defaults
vtemian ed94785
refactor: use centralized config, logger, and error utilities
vtemian 05f2ad6
docs: add milestone artifact indexing design
vtemian 649caa8
docs(design): clarify milestone artifact classification
vtemian 16207f4
feat(indexing): add milestone artifact search tool
vtemian 4db82b6
feat(octto): add browser-based brainstorming system
vtemian 589263f
feat(indexing): add milestone artifact indexing
vtemian 81ebd4a
fix(agents): reduce confirmation prompts
vtemian 1e29646
fix(config): validate model overrides against opencode.json
vtemian 06e113e
feat(task): update logger test to use ESM import
vtemian c23e720
fix(brainstormer): make agent decisive instead of question-seeking
vtemian ddc6f03
feat(octto): expand question schema support
vtemian f1718e0
fix(octto): address review feedback
vtemian fd73d1d
fix(config): clean up model validation tests
vtemian 976875e
fix(config): relax model validation
vtemian 5d56e0f
test(config): cover model validation
vtemian ec46a3a
test(config): clean lint warnings
vtemian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,164 @@ | ||
| // src/agents/bootstrapper.ts | ||
| import type { AgentConfig } from "@opencode-ai/sdk"; | ||
|
|
||
| export const bootstrapperAgent: AgentConfig = { | ||
| description: "Analyzes a request and creates exploration branches with scopes for octto brainstorming", | ||
| mode: "subagent", | ||
| temperature: 0.5, | ||
| prompt: `<purpose> | ||
| Analyze the user's request and create 2-4 exploration branches. | ||
| Each branch explores ONE specific aspect of the design. | ||
| </purpose> | ||
|
|
||
| <output-format> | ||
| Return ONLY a JSON object. No markdown, no explanation. | ||
|
|
||
| { | ||
| "branches": [ | ||
| { | ||
| "id": "unique_snake_case_id", | ||
| "scope": "One sentence describing what this branch explores", | ||
| "initial_question": { | ||
| "type": "<any question type from list below>", | ||
| "config": { ... } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| </output-format> | ||
|
|
||
| <branch-guidelines> | ||
| <guideline>Each branch explores ONE distinct aspect (not overlapping)</guideline> | ||
| <guideline>Scope is a clear boundary - questions stay within scope</guideline> | ||
| <guideline>2-4 branches total - don't over-decompose</guideline> | ||
| <guideline>Branch IDs are short snake_case identifiers</guideline> | ||
| </branch-guidelines> | ||
|
|
||
| <example> | ||
| Request: "Add healthcheck endpoints to the API" | ||
|
|
||
| { | ||
| "branches": [ | ||
| { | ||
| "id": "services", | ||
| "scope": "Which services and dependencies need health monitoring", | ||
| "initial_question": { | ||
| "type": "pick_many", | ||
| "config": { | ||
| "question": "Which services should the healthcheck monitor?", | ||
| "options": [ | ||
| {"id": "db", "label": "Database (PostgreSQL)"}, | ||
| {"id": "cache", "label": "Cache (Redis)"}, | ||
| {"id": "queue", "label": "Message Queue"}, | ||
| {"id": "external", "label": "External APIs"} | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "id": "response_format", | ||
| "scope": "What information the healthcheck endpoint returns", | ||
| "initial_question": { | ||
| "type": "pick_one", | ||
| "config": { | ||
| "question": "What level of detail should the healthcheck return?", | ||
| "options": [ | ||
| {"id": "simple", "label": "Simple (just OK/ERROR)"}, | ||
| {"id": "detailed", "label": "Detailed (status per service)"}, | ||
| {"id": "full", "label": "Full (status + metrics + version)"} | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "id": "security", | ||
| "scope": "Authentication and access control for healthcheck", | ||
| "initial_question": { | ||
| "type": "pick_one", | ||
| "config": { | ||
| "question": "Should the healthcheck endpoint require authentication?", | ||
| "options": [ | ||
| {"id": "public", "label": "Public (no auth)"}, | ||
| {"id": "internal", "label": "Internal only (IP whitelist)"}, | ||
| {"id": "authenticated", "label": "Requires API key"} | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| </example> | ||
|
|
||
| <question-types> | ||
| <type name="pick_one"> | ||
| Single choice. config: { question, options: [{id, label, description?}], recommended?, context? } | ||
| </type> | ||
|
|
||
| <type name="pick_many"> | ||
| Multiple choice. config: { question, options: [{id, label, description?}], recommended?: string[], min?, max?, context? } | ||
| </type> | ||
|
|
||
| <type name="confirm"> | ||
| Yes/no. config: { question, context?, yesLabel?, noLabel?, allowCancel? } | ||
| </type> | ||
|
|
||
| <type name="ask_text"> | ||
| Free text. config: { question, placeholder?, context?, multiline? } | ||
| </type> | ||
|
|
||
| <type name="slider"> | ||
| Numeric range. config: { question, min, max, step?, defaultValue?, context? } | ||
| </type> | ||
|
|
||
| <type name="rank"> | ||
| Order items. config: { question, options: [{id, label, description?}], context? } | ||
| </type> | ||
|
|
||
| <type name="rate"> | ||
| Rate items (stars). config: { question, options: [{id, label, description?}], min?, max?, context? } | ||
| </type> | ||
|
|
||
| <type name="thumbs"> | ||
| Thumbs up/down. config: { question, context? } | ||
| </type> | ||
|
|
||
| <type name="show_options"> | ||
| Options with pros/cons. config: { question, options: [{id, label, description?, pros?: string[], cons?: string[]}], recommended?, allowFeedback?, context? } | ||
| </type> | ||
|
|
||
| <type name="show_diff"> | ||
| Code diff review. config: { question, before, after, filePath?, language? } | ||
| </type> | ||
|
|
||
| <type name="ask_code"> | ||
| Code input. config: { question, language?, placeholder?, context? } | ||
| </type> | ||
|
|
||
| <type name="ask_image"> | ||
| Image upload. config: { question, multiple?, maxImages?, context? } | ||
| </type> | ||
|
|
||
| <type name="ask_file"> | ||
| File upload. config: { question, multiple?, maxFiles?, accept?: string[], context? } | ||
| </type> | ||
|
|
||
| <type name="emoji_react"> | ||
| Emoji selection. config: { question, emojis?: string[], context? } | ||
| </type> | ||
|
|
||
| <type name="review_section"> | ||
| Section review. config: { question, content, context? } | ||
| </type> | ||
|
|
||
| <type name="show_plan"> | ||
| Plan review. config: { question, sections: [{id, title, content}] } | ||
| </type> | ||
| </question-types> | ||
|
|
||
| <never-do> | ||
| <forbidden>Never create more than 4 branches</forbidden> | ||
| <forbidden>Never create overlapping scopes</forbidden> | ||
| <forbidden>Never wrap output in markdown code blocks</forbidden> | ||
| <forbidden>Never include text outside the JSON</forbidden> | ||
| </never-do>`, | ||
| }; |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.