Skip to content

Commit 92f1b85

Browse files
Merge branch 'main' into outlook-search-quote-escape
2 parents 9fa8de4 + c4a4fef commit 92f1b85

481 files changed

Lines changed: 8599 additions & 104368 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/agents/blender-specialist.md

Lines changed: 0 additions & 88 deletions
This file was deleted.

.claude/agents/cli-developer.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,7 @@ Follow [`CLAUDE.md`](../../CLAUDE.md) → "How You Communicate".
4141
| `gaia` / `gaia-cli` | `gaia.cli:main` | Main dispatcher |
4242
| `gaia-mcp` | `gaia.mcp.mcp_bridge:main` | Standalone MCP bridge |
4343

44-
**Hub-package binaries** (NOT core `setup.py` entries — they ship from their own hub wheels under `hub/agents/<id>/python/`):
45-
46-
| Script | Entry | Hub package |
47-
|--------|-------|-------------|
48-
| `gaia-code` | `gaia_agent_code.cli:main` | `gaia-agent-code` (`hub/agents/code/python/`) |
49-
| `gaia-emr` | `gaia_agent_emr.cli:main` | `gaia-agent-emr` (`hub/agents/emr/python/`) |
44+
**Hub-package binaries** (NOT core `setup.py` entries — they ship from their own hub wheels under `hub/agents/<id>/python/`). None ship today: per-task agents were collapsed into skills, so a new capability is a `SKILL.md`, not a new binary.
5045

5146
## Current top-level subcommands
5247

.claude/agents/docker-specialist.md

Lines changed: 0 additions & 87 deletions
This file was deleted.

.claude/agents/gaia-agent-builder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ The registry discovers packaged agents by scanning the `gaia.agent` entry-point
101101

102102
### 4. CLI (optional)
103103
- [ ] Add a subparser in `src/gaia/cli.py` and document in `docs/reference/cli.mdx` — see `cli-developer` for the pattern
104-
- [ ] Standalone binary? Declare `console_scripts` in the hub package's own `pyproject.toml` — NOT a core `setup.py` entry (e.g. `hub/agents/code/python/` declares `gaia-code = gaia_agent_code.cli:main`)
104+
- [ ] Standalone binary? Declare `console_scripts` in the hub package's own `pyproject.toml` — NOT a core `setup.py` entry
105105

106106
### 5. Tests (required)
107107
- [ ] `hub/agents/<id>/python/tests/test_<id>_agent.py` — instantiation + tool registration + mocked-LLM response

.claude/agents/jira-specialist.md

Lines changed: 0 additions & 91 deletions
This file was deleted.

.claude/agents/prompt-engineer.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ say each point once. The prompt text itself is always shown in full.
1919

2020
- Writing or refactoring `_get_system_prompt()` for a GAIA agent
2121
- Tightening `@tool` docstrings (these are the LLM's tool-use spec)
22-
- Authoring routing instructions for `RoutingAgent`
2322
- Designing eval-judge prompts for `src/gaia/eval/`
2423
- Debugging underperforming agents via prompt-only changes
2524

@@ -37,7 +36,6 @@ say each point once. The prompt text itself is always shown in full.
3736
| Tool descriptions | `@tool` docstring inside `_register_tools` |
3837
| Prompt assembly | `_compose_system_prompt` / `_format_tools_for_prompt` in `src/gaia/agents/base/agent.py` |
3938
| Chat defaults | `src/gaia/chat/prompts.py` |
40-
| Routing | `hub/agents/routing/python/gaia_agent_routing/agent.py` |
4139

4240
Concrete agents live under `hub/agents/<id>/python/gaia_agent_<id>/``src/gaia/agents/` is framework-only.
4341

.claude/skills/driving-the-tui/SKILL.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,37 @@ and is bearer-token authenticated (token in `~/.gaia/tui/control.json`, mode
2020
host's LAN address. Launch it in **its own Terminal window** — a long-lived
2121
process started from a background tool call gets SIGKILLed (exit 137).
2222

23+
### Launch it in Windows Terminal, never bare `cmd.exe`
24+
25+
**A `cmd.exe` window spawned by `Start-Process` lands in legacy conhost, which
26+
reports no colour support — and the TUI then renders with no colour and no
27+
syntax highlighting at all.** It is not a rendering bug and it is not the
28+
capture stripping ANSI; the process genuinely emits zero escape sequences.
29+
30+
The chain: `theme.Init()` and `components.PrimeRenderer()` resolve the palette
31+
once at startup (`prepareTerminal`, `internal/ui/app.go`). `detectStyle()
32+
(components/markdown.go)` returns `styles.NoTTYStyle` when the terminal reports
33+
no colour, glamour then drops every chroma token, and `answerPanelStyle` paints
34+
each code line one flat grey. Everything *looks* right except that code blocks
35+
are monochrome — which reads as "syntax highlighting is broken".
36+
37+
Launch through `wt.exe` so the console is Windows Terminal (truecolor):
38+
39+
```bash
40+
powershell.exe -NoProfile -Command \
41+
"Start-Process wt.exe -ArgumentList @('new-tab','--title','GAIA','cmd.exe','/k','<abs path>\run.bat')"
42+
```
43+
44+
Two traps in that line: a `--title` containing a space breaks `wt`'s own
45+
argument parsing (`error 0x80070002`), so keep it one word; and put the env vars
46+
(`GAIA_TUI_HOME`, `PYTHONPATH`, `GAIA_AGENT_LOG`) inside the `.bat`, because a
47+
new tab handed to an already-running Windows Terminal inherits *that* process's
48+
environment, not your shell's.
49+
50+
To check colour rather than guess: `GET /control/v1/screen?format=ansi` and
51+
count `\x1b`. Zero on a frame that should be styled means the profile
52+
degraded — relaunch under `wt.exe`.
53+
2354
## Endpoints
2455

2556
`/control/v1/``status` · `screen` · `keys` · `text` · **`wait`** · `frames` · `resize`
@@ -41,8 +72,11 @@ where `ask` types, submits, and blocks on `gone streaming`.
4172
- **Always `screen 0 999`.** A cropped capture once produced a fabricated
4273
"uninstall silently does nothing" — the status line is the second-to-last row.
4374
- **`resize` FIRST** or cols/rows are 0 and everything wraps wrongly.
44-
- **`format=plain` strips ANSI.** You cannot judge colour or styling from a
45-
capture. Read the renderer's source for `lipgloss` calls instead.
75+
- **`format=plain` strips ANSI** — but `format=ansi` does not, and it is the
76+
fastest way to settle a colour question. Count `\x1b` in the result: a styled
77+
frame returns dozens (a healthy header is
78+
`\x1b[1;38;2;181;224;141mGAIA`), and **zero means the colour profile
79+
degraded at launch** — see the Windows Terminal note above, not a renderer bug.
4680
- **Check the screen you are actually on** before sending keys. Keys sent to the
4781
wrong screen do nothing and read as "the binding is broken".
4882
- `screencapture` is blocked on this machine. Use the control API text.

0 commit comments

Comments
 (0)