Commit Graph
12 Commits
Author SHA1 Message Date
Krishna Kumar 2119b7bf23 Fix Stage 1 field name consistency - use 'response' instead of 'content'
The MCP server was reading 'content' but the deployed API returns 'response'
for Stage 1 results. This caused empty responses in the iOS app.
2025-12-30 04:28:24 -06:00
Krishna Kumar 3f2915629e Fix Railway entry point - re-export FastAPI app from backend.main 2025-12-30 04:00:55 -06:00
Krishna Kumar 2b2207035c Fix ResponseValidationError: change response field to content
FastAPI validation was failing because stage1 results used 'response'
field but Pydantic expected 'content'. Changed field name in:
- stage1_collect_responses: returns content instead of response
- stage2_collect_rankings: references result['content']
- stage3_synthesize_final: references result['content']
- MCP server: reads resp.get("content", "") for content_blocks
2025-12-30 03:54:02 -06:00
Krishna Kumar 8f05b67887 Add content_blocks to council_query for structured UI display
- Add content_blocks array to council_query return with model responses
  and synthesis result for rendering as UI cards
- Add MODEL_DISPLAY_NAMES mapping and get_display_name helper for
  user-friendly model names in the UI
- Update Python version to 3.13 for compatibility
- Refactor FastAPI endpoints for cleaner error handling
2025-12-20 08:35:12 -06:00
Krishna Kumar 23b2d6b52e Revert "Remove council_query tool to force stage-by-stage usage"
This reverts commit 93a70bb195.
2025-12-17 22:02:35 -06:00
Krishna Kumar 93a70bb195 Remove council_query tool to force stage-by-stage usage
The all-in-one council_query tool returned everything as a single blob,
preventing the iOS app from displaying individual model responses as
separate content blocks. By removing it, the agent must now use:

- council_stage1_collect (individual responses)
- council_stage2_rank (peer rankings)
- council_stage3_synthesize (final synthesis)

Each stage call generates a separate tool_result, enabling granular
display in the UI.
2025-12-16 15:18:21 -06:00
Krishna Kumar 153dcff69d Add MCP server for council integration
- Add mcp_server package with 7 tools proxying to FastAPI:
  - council_query (full 3-stage process)
  - council_stage1_collect, stage2_rank, stage3_synthesize
  - council_conversation_create, list, get
- Add individual stage endpoints to FastAPI (/api/council/stage1, stage2, stage3)
- Update council models to use valid OpenRouter identifiers
- Add mcp>=1.0.0 dependency
2025-12-16 12:54:29 -06:00
karpathy 92e1fccb1b readme tweaks 2025-11-22 15:35:19 -08:00
karpathy 8affe1d794 add vibe code warning 2025-11-22 15:31:11 -08:00
karpathy 87b4a178ec a bit more progressive update and single turn 2025-11-22 15:24:47 -08:00
karpathy 827bfd3d3e Label maker add 2025-11-22 15:08:53 -08:00
karpathy eb0eb26f4c v0 2025-11-22 14:27:53 -08:00