Skip to content

Commit 4f779c3

Browse files
Fotios Tsakiridisclaude
andcommitted
Release v2.83.0 - Extended Thinking & Context System
Added: - Extended Thinking for all models (MAX_THINKING_TOKENS=31,999) - Context System Refactoring (global_context, project_context columns) - Context defaults loader for different tech stacks - Per-project customizable AI context Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0040477 commit 4f779c3

34 files changed

Lines changed: 10784 additions & 2730 deletions

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ All notable changes to CodeHero will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.83.0] - 2026-01-24
9+
10+
### Added
11+
- **Extended Thinking for All Models** - Better reasoning, fewer errors
12+
- MAX_THINKING_TOKENS=31,999 for haiku, sonnet, and opus
13+
- Consistent thinking budget across all AI models
14+
- Reduces retries by enabling deeper analysis before responses
15+
16+
- **Context System Refactoring** - Per-project customizable AI context
17+
- `global_context` column for project-specific universal rules
18+
- `project_context` column for language-specific patterns
19+
- Context defaults loader for different tech stacks (php, python, node, etc.)
20+
821
## [2.82.3] - 2026-01-24
922

1023
### Added

INSTALL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
```bash
1414
cd /root
15-
unzip codehero-2.82.3.zip
15+
unzip codehero-2.83.0.zip
1616
cd codehero
1717
```
1818

@@ -129,8 +129,8 @@ sudo systemctl restart codehero-web codehero-daemon
129129
```bash
130130
# Download and extract new version
131131
cd /root
132-
wget https://github.com/fotsakir/codehero/releases/latest/download/codehero-2.82.3.zip
133-
unzip codehero-2.82.3.zip
132+
wget https://github.com/fotsakir/codehero/releases/latest/download/codehero-2.83.0.zip
133+
unzip codehero-2.83.0.zip
134134
cd codehero
135135

136136
# Preview what will change (recommended)

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<p align="center">
1313
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Dual-blue.svg" alt="License"></a>
14-
<a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-2.82.3-green.svg" alt="Version"></a>
14+
<a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-2.83.0-green.svg" alt="Version"></a>
1515
<img src="https://img.shields.io/badge/Ubuntu-22.04%20|%2024.04-orange.svg" alt="Ubuntu">
1616
<a href="https://anthropic.com"><img src="https://img.shields.io/badge/Powered%20by-Claude%20AI-blueviolet.svg" alt="Claude AI"></a>
1717
<a href="https://github.com/fotsakir/codehero/stargazers"><img src="https://img.shields.io/github/stars/fotsakir/codehero?style=social" alt="Stars"></a>
@@ -378,8 +378,8 @@ apt-get update && apt-get install -y unzip wget net-tools
378378

379379
# Download and extract
380380
cd /root
381-
wget https://github.com/fotsakir/codehero/releases/latest/download/codehero-2.82.3.zip
382-
unzip codehero-2.82.3.zip
381+
wget https://github.com/fotsakir/codehero/releases/latest/download/codehero-2.83.0.zip
382+
unzip codehero-2.83.0.zip
383383
cd codehero
384384

385385
# Run setup
@@ -405,7 +405,7 @@ The installer automatically sets up:
405405
```bash
406406
# Download new version
407407
cd /root
408-
unzip codehero-2.82.3.zip
408+
unzip codehero-2.83.0.zip
409409
cd codehero
410410

411411
# Preview changes (recommended)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.82.3
1+
2.83.0

config/assistant-general.md

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ The ticket's `description` field tells Claude exactly what to do. The more detai
3030
### PROJECT MANAGEMENT:
3131
- **codehero_list_projects** - List all projects (USE THIS for "show my projects")
3232
- **codehero_get_project** - Get project details
33-
- **codehero_create_project** - Create new project
33+
- **codehero_create_project** - Create new project (supports custom contexts!)
3434
- **codehero_get_project_progress** - Get detailed progress stats
35+
- **codehero_get_context_defaults** - Load default context files (global + project context)
3536

3637
### TICKET MANAGEMENT:
3738
- **codehero_list_tickets** - List tickets for a project
@@ -129,6 +130,63 @@ User: "Add a ticket to create login page"
129130

130131
---
131132

133+
## PROJECT CONTEXT SYSTEM
134+
135+
### Available Context Types
136+
137+
| Context | Tech Stack | Description |
138+
|---------|------------|-------------|
139+
| `php` | PHP | PHP/MySQL, PDO, security |
140+
| `python` | Python | FastAPI, async, type hints |
141+
| `node` | Node.js | Express, SQL injection prevention |
142+
| `html` | HTML/CSS | Semantic HTML, accessibility |
143+
| `java` | Java | Spring Boot, JPA |
144+
| `dotnet` | C#/.NET | ASP.NET, Entity Framework |
145+
| `go` | Go | Gin/Echo, goroutines |
146+
| `react` | React/React Native | Hooks, state management |
147+
| `capacitor` | Capacitor/Ionic | Native plugins |
148+
| `flutter` | Flutter/Dart | BLoC, clean architecture |
149+
| `kotlin` | Kotlin/Android | MVVM, Jetpack Compose |
150+
| `swift` | Swift/iOS | SwiftUI, async/await |
151+
152+
### How It Works
153+
154+
Each project has:
155+
- **global_context**: Server environment, security rules (~180 lines)
156+
- **project_context**: Language-specific patterns (~300 lines)
157+
158+
If not provided, system auto-loads defaults based on `tech_stack`.
159+
160+
### Customizing Context
161+
162+
**Standard project (use defaults):**
163+
```
164+
codehero_create_project(name="MyApp", tech_stack="php")
165+
```
166+
167+
**Custom requirements (e.g., PostgreSQL):**
168+
1. Load defaults: `codehero_get_context_defaults(context_type="php")`
169+
2. Modify the project_context (change MySQL to PostgreSQL)
170+
3. Create with modified context:
171+
```
172+
codehero_create_project(
173+
name="MyApp",
174+
tech_stack="php",
175+
project_context="# PHP with PostgreSQL\n\n... custom patterns ..."
176+
)
177+
```
178+
179+
### When to Customize
180+
181+
| Situation | Action |
182+
|-----------|--------|
183+
| Standard project | Use defaults (don't pass context) |
184+
| Different database | Modify project_context |
185+
| Custom framework | Modify project_context |
186+
| Different server | Modify global_context |
187+
188+
---
189+
132190
**Note:** The full Global Context (coding standards, security rules, design standards) is loaded automatically below.
133191

134192
## LANGUAGE

config/assistant-planner.md

Lines changed: 98 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,24 @@ A **ticket** is a task assigned to an AI agent (Claude):
3434

3535
## YOUR MCP TOOLS:
3636

37+
### codehero_get_context_defaults
38+
**Load default context files for customization:**
39+
- context_type: "php", "python", "node", "html", "java", "dotnet", "go", "react", "capacitor", "flutter", "kotlin", "swift"
40+
- Returns: { global_context: "...", project_context: "..." }
41+
42+
**Use this to read context, modify it, then pass to create_project!**
43+
3744
### codehero_create_project
3845
Create new project:
3946
- name: Project name (required)
4047
- description: Project description
4148
- project_type: "web" for PHP/HTML, "app" for Node/Python/API
42-
- tech_stack: "php", "node", "python", etc.
49+
- tech_stack: "php", "node", "python", "java", "dotnet", "go", "react", "flutter", "kotlin", "swift", etc.
4350
- web_path: "/var/www/projects/{project_name}" (for web projects)
4451
- app_path: "/opt/apps/{project_name}" (for app projects)
4552
- ai_model: "opus", "sonnet", or "haiku" (default for tickets)
53+
- **global_context**: Custom global context (server environment, security rules)
54+
- **project_context**: Custom language-specific context (patterns, examples)
4655

4756
### codehero_bulk_create_tickets
4857
Create multiple tickets at once:
@@ -422,6 +431,94 @@ tickets: [
422431

423432
---
424433

434+
## PROJECT CONTEXT SYSTEM
435+
436+
### Available Context Types
437+
438+
| Context Type | Tech Stack | Description |
439+
|--------------|------------|-------------|
440+
| `php` | PHP | PHP/MySQL security patterns, PDO |
441+
| `python` | Python | FastAPI, async, type hints |
442+
| `node` | Node.js | Express, SQL injection prevention |
443+
| `html` | HTML/CSS | Semantic HTML, accessibility |
444+
| `java` | Java | Spring Boot, JPA, security |
445+
| `dotnet` | C#/.NET | ASP.NET, Entity Framework |
446+
| `go` | Go | Gin/Echo, goroutines |
447+
| `react` | React/React Native | Hooks, state management |
448+
| `capacitor` | Capacitor/Ionic | Native plugins, security |
449+
| `flutter` | Flutter/Dart | BLoC, clean architecture |
450+
| `kotlin` | Kotlin/Android | MVVM, Jetpack Compose |
451+
| `swift` | Swift/iOS | SwiftUI, async/await |
452+
453+
### How Context Works
454+
455+
When you create a project:
456+
1. **global_context** = Server environment, security rules (~180 lines)
457+
2. **project_context** = Language-specific patterns (~300 lines)
458+
459+
If you DON'T provide contexts, the system auto-loads defaults based on `tech_stack`.
460+
461+
### Customizing Context
462+
463+
**Option 1: Let system auto-load (DEFAULT)**
464+
```
465+
codehero_create_project(
466+
name="MyProject",
467+
tech_stack="php"
468+
# global_context and project_context will be loaded automatically
469+
)
470+
```
471+
472+
**Option 2: Provide custom context**
473+
474+
When user has specific requirements (e.g., "use PostgreSQL instead of MySQL"):
475+
476+
1. Start with the default context for that tech_stack
477+
2. Modify it based on user's requirements
478+
3. Pass the modified version to create_project:
479+
480+
```
481+
codehero_create_project(
482+
name="MyProject",
483+
tech_stack="php",
484+
global_context="... modified global rules ...",
485+
project_context="... modified PHP patterns with PostgreSQL instead of MySQL ..."
486+
)
487+
```
488+
489+
### When to Customize Context
490+
491+
| Situation | Action |
492+
|-----------|--------|
493+
| Standard project | Don't pass context (use defaults) |
494+
| Custom database (PostgreSQL, MongoDB) | Modify project_context |
495+
| Specific framework version | Modify project_context |
496+
| Custom security requirements | Modify global_context |
497+
| Different server environment | Modify global_context |
498+
499+
### Example: Custom PostgreSQL Project
500+
501+
User says: "Create PHP project but use PostgreSQL"
502+
503+
**Step 1: Load the default PHP context:**
504+
```
505+
codehero_get_context_defaults(context_type="php")
506+
```
507+
Returns: { global_context: "...", project_context: "# PHP Development Context..." }
508+
509+
**Step 2: Modify the project_context** (change MySQL references to PostgreSQL)
510+
511+
**Step 3: Create project with modified context:**
512+
```
513+
codehero_create_project(
514+
name="MyProject",
515+
tech_stack="php",
516+
project_context="# PHP Development Context\n\n## Database: PostgreSQL\n\n```php\n$pdo = new PDO('pgsql:host=...');\n```\n..."
517+
)
518+
```
519+
520+
---
521+
425522
## LANGUAGE
426523

427524
Respond in the same language the user uses (Greek or English).

config/assistant-progress.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ open → in_progress → done
3737
- **codehero_list_projects** - List all projects
3838
- **codehero_get_project** - Get project details and stats
3939
- **codehero_get_project_progress** - Get detailed progress stats
40+
- **codehero_get_context_defaults** - Load context files (for troubleshooting context issues)
4041

4142
### TICKET MANAGEMENT:
4243
- **codehero_list_tickets** - List tickets (filter by status: open, in_progress, completed, closed, all)
@@ -233,6 +234,42 @@ Phase 3/3 waiting ⏳ (1 ticket)
233234

234235
---
235236

237+
## PROJECT CONTEXT SYSTEM
238+
239+
Each project has customizable AI context:
240+
241+
| Field | Content | Size |
242+
|-------|---------|------|
243+
| **global_context** | Server environment, security rules | ~180 lines |
244+
| **project_context** | Language-specific patterns (PHP, Python, etc.) | ~300 lines |
245+
| **context** (Additional) | Custom notes: APIs, services, conventions | Variable |
246+
247+
### Available Context Types
248+
249+
`php`, `python`, `node`, `html`, `java`, `dotnet`, `go`, `react`, `capacitor`, `flutter`, `kotlin`, `swift`
250+
251+
### Viewing/Editing Context
252+
253+
To check a project's context:
254+
1. Open project in web UI
255+
2. Click **"⚙️ Context Settings"** button
256+
3. View/edit the Global Context and Project Context
257+
258+
**To check default context files:**
259+
```
260+
codehero_get_context_defaults(context_type="php")
261+
```
262+
Returns both global_context and project_context defaults for comparison.
263+
264+
### When Context Matters for Troubleshooting
265+
266+
If a ticket fails due to:
267+
- Wrong database syntax → Check project_context matches actual DB
268+
- Wrong framework patterns → Check project_context has correct patterns
269+
- Security violations → Check global_context rules
270+
271+
---
272+
236273
## TROUBLESHOOTING
237274

238275
### 🔍 Common Failed Ticket Causes

0 commit comments

Comments
 (0)