Skip to content

Commit 5795602

Browse files
committed
chore: checkpoint all current workspace changes
1 parent 23e11e8 commit 5795602

75 files changed

Lines changed: 7099 additions & 2859 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.

.agent/rules/000-bootstrap.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@
22
trigger: always_on
33
---
44

5-
# 000: BOOTSTRAP & PROTOCOL CHECK
6-
**CRITICAL: Mandatory Pre-flight Check.**
5+
# 000-bootstrap.md: Agent Genesis Directive
76

8-
Before starting any task, you must verify the following from `AGENTS.md`:
7+
## Core Operating Procedure
8+
1. **Initialize Context:** On the first turn of every session, read only `AGENTS.md` at the repo root to understand the system architecture and active specialist agents.
9+
2. **Standardization Protocol:** All implementation must align with the `StandardizationAgent` logic defined in `src/ai/agents/StandardizationAgent.ts`.
10+
3. **Lazy Load Rules:** Do NOT read all files in `.agent/rules/` by default. Instead, identify the relevant rules based on the task (e.g., read `ai-provider-standards.md` only for AI-related tasks).
911

10-
1. **Workspace Context**: Identify if you are working in `frontend` or `container`.
11-
2. **Installation Protocol**: You MUST use `pnpm add <pkg> --filter <package>` from the root. Never install at root without `-w`.
12-
3. **SDK Enforcement**: Verify you are using `@google/genai` (New SDK) and NOT `@google/generative-ai` (Legacy).
13-
4. **Backend/Frontend Sync**: If modifying Drizzle schemas, ensure `frontend/src/db` is the target as per the "Schema Sync" section.
12+
## Environment Constraints
13+
- **Primary IDE:** Google Antigravity.
14+
- **Runtime:** Cloudflare Workers (workerd).
15+
- **Stack:** Hono (API), Astro 6 (Frontend), Drizzle ORM (D1 Data Layer).
16+
- **Architecture:** Unified Worker Assets with Cloudflare AI Gateway routing.
1417

15-
**STOP**: If you have not explicitly read `AGENTS.md` in this session, do so now.
18+
## Code Output Rules
19+
- ALWAYS respond with full end-to-end code for the modified module.
20+
- NEVER use shortcuts or "rest of code" comments.
21+
- Ensure `integer('id').generatedAlwaysAsIdentity()` is used for all Drizzle primary keys per 2026 standards.

.agent/rules/000-core-directive.md

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

.agent/rules/ai-providers.md

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

.agent/rules/alerts.md

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

.agent/rules/cloudflare-stack.md

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

.agent/rules/hygiene-standards.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
trigger: on_demand
3+
---
4+
5+
# Hygiene Standards
6+
7+
- **Ignore Compliance:** Never attempt to read or modify files listed in `.antigravityignore`.
8+
- **Artifact Management:** Temporary tree dumps (`*_tree.txt`) and `.bak` files must be deleted immediately after a successful deployment.
9+
- **Rule Consolidation:** If a new rule is added that overlaps more than 50% with an existing rule, they must be merged to maintain a tight token budget.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Workflow: Workspace Context Optimization
2+
3+
## Context
4+
Project Sentinel is experiencing context overflow. This workflow applies the Claude Code cleanup plan to optimize the Google Antigravity IDE environment.
5+
6+
## Steps
7+
1. Create `.antigravityignore` at repo root with the optimized patterns.
8+
2. Collapse `.agent/rules/000-bootstrap.md` and `.agent/rules/000-core-directive.md` into the new Genesis Directive.
9+
3. Remove duplicate rule files:
10+
- `rm .agent/rules/ai-providers.md`
11+
- `rm .agent/rules/alerts.md`
12+
- `rm .agent/rules/cloudflare-stack.md`
13+
4. Clean root-level artifacts:
14+
- `rm 20260330_tree.txt wrangler.log frontend-test-results.json`
15+
- `rm wrangler.jsonc.bak.*`
16+
5. Trigger Re-indexing:
17+
- Run command `Antigravity: Restart Agent Service`
18+
- Run command `Antigravity: Refresh Index`

.antigravityignore

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# .antigravityignore - Fleet Immune System Context Filter
2+
3+
# --- Core Noise ---
4+
node_modules/
5+
**/node_modules/
6+
dist/
7+
**/dist/
8+
.git/
9+
.wrangler/
10+
.astro/
11+
12+
# --- User Mandated Exclusions ---
13+
# Exclude the entire documentation history to prevent token bloat
14+
docs/
15+
# Exclude Claude-specific worktrees and metadata
16+
.claude/**
17+
.claude/worktrees/**
18+
.copilot/
19+
20+
# --- Agent Skill Caches (2-4 MB each) ---
21+
.agent/skills/cloudflare/
22+
.agent/skills/stitch/
23+
24+
# --- Large Data & Token Chokers ---
25+
# The conversations.json file is ~6k lines; definitely skip this.
26+
conversations.json
27+
conversations_backup.json
28+
frontend-test-results.json
29+
results.json
30+
example-pr-events.json
31+
*.zip
32+
pbcopy
33+
34+
# --- Logs & Tree Dumps ---
35+
# Skip the massive tree dumps and debug logs
36+
*_tree.txt
37+
tree.txt
38+
**/tree.txt
39+
*.log
40+
wrangler-debug.txt
41+
42+
# --- Build & Lock Files ---
43+
# Agents rarely need to "read" the lockfiles; they just need to run pnpm install
44+
pnpm-lock.yaml
45+
package-lock.json
46+
bun.lock
47+
48+
# --- Generated Types & Build Artifacts ---
49+
worker-configuration.d.ts
50+
public/_astro/
51+
*.bak.*
52+
53+
# --- Environment & Package Caches ---
54+
.pnpm-store/
55+
.venv/
56+
tmp/
57+
58+
# --- Database Snapshots ---
59+
# Snapshot JSONs in migrations are huge and confuse Drizzle agents
60+
migrations/**/meta/
File renamed without changes.

container/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
# =====================================================================================
1212

1313
# Stage 1: Extract OpenCode CLI
14-
FROM docker.io/cloudflare/sandbox:0.8.0-opencode AS opencode-stage
14+
FROM docker.io/cloudflare/sandbox:0.8.1-opencode AS opencode-stage
1515

1616
# Stage 2: Use the Python variant as the main base image
1717
# This completely avoids Python path/module corruption by keeping the native OS environment intact.
18-
FROM docker.io/cloudflare/sandbox:0.8.0-python
18+
FROM docker.io/cloudflare/sandbox:0.8.1-python
1919

2020
# --- Install System Dependencies ---
2121
RUN apt-get update && apt-get install -y --no-install-recommends \

0 commit comments

Comments
 (0)