Commit Graph

12 Commits

Author SHA1 Message Date
9af5da620f Update UI spec for append_to_conversation and thinking support
Updated app_spec_ikario_rag_UI.txt to document new 8th MCP tool and thinking feature:

CHANGES:
- Updated from 7 to 8 MCP tools (added append_to_conversation)
- Added route: POST /api/memory/conversations/append
- Documented thinking field support for LLM reasoning capture
- Added appendToConversation() function in Memory Service Layer
- Updated Chat Integration with thinking examples
- Added tests for append_to_conversation with thinking
- Updated success criteria and constraints (8 tools)

KEY ADDITIONS:
- Format message with thinking documented
- Auto-create behavior explained
- Extended Thinking integration guidelines
- Distinction: add_conversation (complete) vs append_to_conversation (incremental)

8 sections modified with complete documentation.
Spec ready for issue creation.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-25 19:44:24 +01:00
283eee687c Fix Extended Thinking critical bug and optimize default parameters
CRITICAL BUG FIXED:
- max_tokens vs thinking_budget_tokens API constraint violation resolved
- Changed max_tokens from 4096 to 8192 (App.jsx:4747)
- Changed thinking_budget_tokens from 10000 to 6144 (App.jsx:4749)
- Updated database default from 10000 to 6144 (server/db/index.js:243)
- Result: 8192 > 6144  API constraint satisfied

FRONTEND FIX:
- Fixed SSE data mapping for thinking content (App.jsx:5565-5566)
- Changed from data.thinking_signature to data.thinking.signature
- Changed from fullThinking to data.thinking.content with fallback
- ThinkingBlock now displays and persists correctly after streaming

CONFIGURATION:
- Extended Thinking disabled by default (was true for testing)
- Optimal defaults: max_tokens=8192, thinking_budget=6144 (6K)
- User-tested configuration validates 6K thinking budget ideal

DATABASE UPDATES:
- Updated 10+ existing conversations to thinking_budget_tokens=4096
- New conversations default to 6144 tokens
- Thinking content now saves and persists correctly

TESTING:
-  Manual test with Whitehead philosophy question successful
-  ThinkingBlock displays with blue UI and brain icon
-  Expand/collapse functionality works
-  Signature verification indicator shows
-  Content persists after streaming and page reload

ISSUES COMPLETED:
- TEAMPHI-194: ThinkingBlock Component (validated)
- TEAMPHI-195: ThinkingBlock Integration (fully functional)
- TEAMPHI-199: Streaming Handler (data mapping fixed)

Progress: 60% → 80% complete

Files modified:
- generations/my_project/src/App.jsx (lines 4747-4749, 5565-5566)
- generations/my_project/server/db/index.js (line 243)
- project_progress.md (comprehensive update)
- fix_thinking_budget.py (database migration script)
- check_thinking_budget.py (verification script)

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-25 19:44:24 +01:00
dbba327e59 Add Extended Thinking specification for Claude API integration
Created comprehensive spec for integrating Claude's Extended Thinking feature into
the my_project application. This spec follows the standard XML .txt format used
by the project's initializer agents.

Key features (15 total):
- Backend thinking parameter support in API routes
- SSE streaming for thinking_delta events
- Database storage for thinking_content and thinking_signature
- Conversation-level thinking settings (enable/disable + budget)
- Frontend ThinkingBlock component for collapsible display
- Settings panel integration (toggle + budget slider)
- Thinking badge in conversation list
- Token tracking and usage stats for thinking
- Tool use compatibility (thinking preservation)
- Error handling for thinking timeouts
- Complete user documentation

Technologies:
- Claude API thinking parameter: { type: "enabled", budget_tokens: 1024-200000 }
- Server-Sent Events (SSE) for streaming thinking deltas
- SQLite database extensions (2 new columns per table)
- React components with blue color scheme for thinking blocks
- @anthropic-ai/sdk already installed

Database changes:
- conversations: enable_thinking, thinking_budget_tokens
- messages: thinking_content, thinking_signature

Model support: Claude 4+ (Sonnet 4.5, Haiku 4.5, Opus 4.5/4.1/4, Sonnet 4)

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-25 19:44:24 +01:00
8f4c0884cc Add Extended Thinking feature specification
Created comprehensive spec for integrating Claude's Extended Thinking capability
into the Claude.ai Clone project. This feature enables enhanced reasoning for
complex tasks by exposing Claude's step-by-step thought process.

Specification includes:
- Complete architecture (backend + frontend)
- 6-phase implementation plan (12-16h estimated)
- Full code examples for all components
- Streaming thinking deltas handling
- ThinkingBlock React component design
- Settings UI for thinking toggle and budget control
- Database schema modifications for thinking storage
- Token management and pricing considerations
- Tool use compatibility (thinking block preservation)
- Testing checklist and best practices
- User documentation

Key features:
- Collapsible thinking blocks with real-time streaming
- Per-conversation thinking toggle
- Adjustable thinking budget (1K-32K tokens)
- Visual indicators (badges, animations)
- Full compatibility with existing memory tools
- Proper handling of summarized thinking (Claude 4+)
- Support for redacted thinking blocks

Implementation phases:
1. Backend Core (2-3h)
2. Frontend UI (3-4h)
3. Streaming & Real-time (2-3h)
4. Tools Integration (2h)
5. Polish & Optimization (2h)
6. Testing & Deployment (1-2h)

Models supported:
- Claude Sonnet 4.5, 4 (summarized thinking)
- Claude Opus 4.5, 4.1, 4 (summarized + preserved blocks)
- Claude Haiku 4.5 (summarized thinking)

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-25 19:44:24 +01:00
0b370b74ba Merge branch 'main' of https://github.com/davidblanc347/linear-coding-agent 2025-12-25 12:53:32 +01:00
2e33637dae Update framework configuration and clean up obsolete specs
Configuration updates:
- Added .env.example template for environment variables
- Updated README.md with better setup instructions (.env usage)
- Enhanced .claude/settings.local.json with additional Bash permissions
- Added .claude/CLAUDE.md framework documentation

Spec cleanup:
- Removed obsolete spec files (language_selection, mistral_extensible, template, theme_customization)
- Consolidated app_spec.txt (Claude Clone example)
- Added app_spec_model.txt as reference template
- Added app_spec_library_rag_types_docs.txt
- Added coding_prompt_library.md

Framework improvements:
- Updated agent.py, autonomous_agent_demo.py, client.py with minor fixes
- Enhanced dockerize_my_project.py
- Updated prompts (initializer, initializer_bis) with better guidance
- Added docker-compose.my_project.yml example

This commit consolidates improvements made during development sessions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-25 12:53:14 +01:00
bf790b63a0 Add specification for Markdown support in Library RAG
New feature specification to add native Markdown (.md) file support:
- Skip OCR for .md files (0€ cost vs ~0.003€/page for PDF)
- Process Markdown directly through LLM pipeline
- Maintain full compatibility with existing PDF workflow
- Includes 10 features, 5 implementation steps, comprehensive tests

This will enable users to upload pre-digitized philosophical texts
in Markdown format without incurring OCR costs while still benefiting
from LLM-based metadata extraction, TOC generation, semantic chunking,
and Weaviate vectorization.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-25 12:46:07 +01:00
25571ca7b6 Add MCP Ikario Memory extension specification for Claude.ai Clone
Created comprehensive spec for integrating Ikario RAG MCP client into existing
Claude.ai Clone project. Features Tool Use API for autonomous memory management.

Key features (10 total):
- MCP client connection and wrapper services (backend)
- Memory API routes (/api/memory/*) (backend)
- Tool Use API integration with save_memory and search_memories tools (backend)
- Tool execution handler and enriched system prompt (backend)
- Manual save button in chat interface (frontend)
- Memory search panel in sidebar (frontend)
- Memory status indicator in header (frontend)
- Automatic conversation backup (backend)

Technologies:
- @modelcontextprotocol/sdk for MCP client
- Claude Tool Use API for autonomous memory operations
- ChromaDB via MCP for semantic search (managed by Ikario RAG server)
- Minimal SQLite changes (1 column addition)

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-18 00:50:23 +01:00
e13e0fa261 Dockerize my_project (ports 4300/4301) and update API base URL 2025-12-15 13:55:57 +01:00
ca47f2bc56 Stop autonomous agent after Linear project is feature-complete 2025-12-15 13:16:00 +01:00
e14f045b42 Add guide and template for creating new applications 2025-12-14 00:59:50 +01:00
a310d4b3cf Initial commit: Linear-integrated autonomous coding agent with Initializer Bis support 2025-12-14 00:45:40 +01:00