Skip to content

Commit 835b40e

Browse files
authored
Merge pull request #75 from nathfavour/master
🚀 release: fix install bug and enhance checksum verification
2 parents 5e33d32 + 2fa9d1b commit 835b40e

111 files changed

Lines changed: 24417 additions & 5911 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.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# 🏗️ Skill: Architectural Integrity
2+
3+
This skill ensures that VibeAuracle maintains its "Modular Monolith" structure and Hexagonal Architecture principles.
4+
5+
## 🎯 Objective
6+
Prevent tight coupling between the cognitive core (`brain`) and infrastructure adapters (UI, Providers, Tools).
7+
8+
## 🛠️ Instructions
9+
10+
### 1. Hexagonal Boundaries
11+
- **Core Logic**: Keep `internal/brain` pure. It should define interfaces for what it needs, not import specific implementations from `internal/model` or `internal/sys` unless necessary for types.
12+
- **Dependency Inversion**: Use factories or registry patterns (see `internal/model/model.go`) to inject dependencies.
13+
14+
### 2. Workspace Hygiene
15+
- When adding new capabilities, consider if they belong in an existing module or deserve a new subdirectory in `internal/`.
16+
- Maintain `go.work` consistency.
17+
18+
### 3. TUI Decoupling
19+
- The UI (`cmd/vibeaura/chat_ui.go`) should strictly be a consumer of the Brain's output.
20+
- Avoid putting business logic or tool execution logic directly into the TUI's `Update` function.
21+
22+
## ✅ Verification
23+
- Check for circular dependencies using `go list`.
24+
- Ensure new features are accompanied by tests in the relevant module.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# 🩺 Skill: Agentic Self-Healing
2+
3+
This skill manages the "Doctor" system that automatically detects and resolves project issues.
4+
5+
## 🎯 Objective
6+
Create a resilient engineering environment where the AI proactively fixes its own errors or system inconsistencies.
7+
8+
## 🛠️ Instructions
9+
10+
### 1. Issue Detection
11+
- Monitor the `doctor` channel for signals from various modules (Brain, TUI, Tooling).
12+
- Implement specialized "Healers" in `internal/doctor` for common failure modes (e.g., build errors, git conflicts).
13+
14+
### 2. Recursive Correction
15+
- When an execution fails (e.g., `shell_exec` returns non-zero), the Brain should invoke the `self-healing` logic to analyze the error and generate a fix.
16+
- Ensure loop detection is active to prevent infinite retry-fail cycles.
17+
18+
### 3. Safety First
19+
- Self-healing actions that involve significant filesystem changes or destructive commands MUST require user intervention/approval.
20+
21+
## ✅ Verification
22+
- Test healers with simulated failures (see `internal/brain/self_healing.go`).
23+
- Ensure the `doctor` successfully routes issues to the active agent runtime.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# ⚡ Skill: System Intimacy
2+
3+
This skill focuses on deepening the agent's awareness of the hardware and operating system environment.
4+
5+
## 🎯 Objective
6+
Enable the agent to make intelligent decisions based on real-world system constraints (CPU, VRAM, CWD, OS).
7+
8+
## 🛠️ Instructions
9+
10+
### 1. Environment Awareness
11+
- Use `sys.Monitor` to get real-time snapshots.
12+
- When generating plans, always consider the user's OS (Arch Linux/KDE focus) and available resources.
13+
14+
### 2. Filesystem Abstraction
15+
- Always use `sys.FS` for file operations to ensure potential sandboxing and consistency.
16+
- Prefer `sys_patch` over full file rewrites for large files to save tokens and minimize system I/O.
17+
18+
### 3. Resource-Aware Inference
19+
- If VRAM is low, the agent should proactively suggest switching to a smaller local model or a cloud provider.
20+
21+
## ✅ Verification
22+
- Verify that system snapshots are correctly integrated into the prompt context in `internal/brain/brain.go`.
23+
- Ensure tool executions like `shell_exec` are logged and monitored for resource spikes.

.github/workflows/deploy-docs.yml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,21 @@ on:
88
- 'docs/**'
99
workflow_dispatch:
1010

11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
1117
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1218
# However, do NOT cancel in-progress runs as we want to allow every deployment to complete.
1319
concurrency:
1420
group: "pages"
1521
cancel-in-progress: false
1622

17-
permissions:
18-
contents: write
19-
2023
jobs:
21-
deploy:
22-
name: Deploy to GitHub Pages
24+
build:
25+
name: Build Docusaurus
2326
runs-on: ubuntu-latest
2427
steps:
2528
- name: Checkout
@@ -42,12 +45,19 @@ jobs:
4245
run: npm run build
4346
working-directory: docs
4447

45-
- name: Deploy to GitHub Pages
46-
uses: peaceiris/actions-gh-pages@v4
48+
- name: Upload artifact
49+
uses: actions/upload-pages-artifact@v3
4750
with:
48-
github_token: ${{ secrets.GITHUB_TOKEN }}
49-
publish_dir: ./docs/build
50-
force_notifier: true
51-
user_name: 'github-actions[bot]'
52-
user_email: 'github-actions[bot]@users.noreply.github.com'
53-
commit_message: "docs: deploy to GitHub Pages [skip ci]"
51+
path: ./docs/build
52+
53+
deploy:
54+
name: Deploy to GitHub Pages
55+
needs: build
56+
runs-on: ubuntu-latest
57+
environment:
58+
name: github-pages
59+
url: ${{ steps.deployment.outputs.page_url }}
60+
steps:
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v4

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ jobs:
8181
# Generate metadata.json
8282
echo "{\"version\": \"$VERSION\", \"commit\": \"$COMMIT\", \"date\": \"$BUILD_DATE\"}" > dist/metadata.json
8383
84+
# Generate checksums.txt
85+
echo "Generating checksums..."
86+
(cd dist && sha256sum vibeaura-* metadata.json > checksums.txt)
87+
8488
- name: Update rolling tags
8589
if: github.ref == 'refs/heads/release'
8690
env:

.gitignore

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,18 @@ target
2929
*.dll
3030
*.so
3131
*.dylib
32-
vibeaura
33-
vibeaura_local
34-
vibeaura_check
32+
/vibeaura
33+
/hello-world
34+
/vibeaura_local
35+
/vibeaura_check
36+
/vibeaura_test
37+
/vibeaura_new
3538
/cmd/vibeaura/vibeaura
3639
/cmd/vibeaura/vibe
3740
/cmd/vibeaura/vibeaura_new
38-
/vibeaura_new
41+
/cmd/vibeaura/vibeaura_test
3942
**/vibeaura_new
43+
**/vibeaura_test
4044
bin/
4145
dist/
4246
build/

AGENTS.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# 🤖 VibeAuracle Agentic Context
2+
3+
Welcome, Agent. You are operating within **VibeAuracle**, a Distributed, System-Intimate AI Engineering Ecosystem. This project is built by and for AI-augmented engineers who value deep integration with the underlying operating system and hardware.
4+
5+
## 🌌 Project Essence
6+
7+
VibeAuracle is not just a CLI; it's a "God-tier" engineering companion that unifies the terminal, the IDE, and the AI assistant into a single, keyboard-centric experience.
8+
9+
### Core Philosophy
10+
1. **System Intimacy**: The agent must be aware of the environment (CWD, CPU, VRAM, OS) before suggesting or taking action.
11+
2. **Modular Runtimes**: We support multiple agentic engines (Internal Vibe loop, official Copilot SDK, and custom personas).
12+
3. **Keyboard-First**: The UI (TUI) is optimized for speed and fluidity, using the Bubble Tea framework.
13+
4. **Hexagonal Architecture**: The core logic (`internal/brain`) is decoupled from adapters (providers, tools, UI) to allow infinite extensibility.
14+
15+
## 🛠️ Development Guidelines
16+
17+
### For AI & Human Contributors
18+
- **No Binaries in Git**: NEVER commit binaries, executables, or build artifacts to the repository.
19+
- **Build Isolation**: All local builds must be directed to the `/build/` directory (which is git-ignored). Create the directory if it does not exist.
20+
- **Strict Go Patterns**: We use Go 1.25+ Workspaces. Maintain decoupling between modules.
21+
- **Security First**: Never expose secrets. Use the `vault` module. Tool execution requires explicit intent awareness.
22+
- **TUI Integrity**: UI changes must adhere to the Bubble Tea (TEA) pattern. Styling is done via Lipgloss.
23+
- **Agentic Responsibility**: When acting as an agent, prioritize `executeToolCalls` for multi-step tasks. Use the official Copilot SDK runtime (`/agent /sdk`) for high-stakes engineering.
24+
25+
## 🧠 Specialized Skills
26+
27+
We maintain localized expertise in `.agent/skills/`. Refer to these for specific domain knowledge:
28+
29+
1. **arch-integrity**: Maintaining the modular monolith and hexagonal boundaries.
30+
2. **sys-intimacy**: Leveraging and extending the system monitoring and filesystem abstraction.
31+
3. **self-healing**: Implementing and refining the recursive doctor/healer loop.
32+
33+
## 🗺️ Architectural Mapping
34+
35+
- `cmd/vibeaura`: The TUI and CLI entry point.
36+
- `internal/brain`: The cognitive orchestrator (The Brain).
37+
- `internal/copilot`: Bridge to the official GitHub Copilot SDK.
38+
- `internal/sys`: Hardware awareness and filesystem abstraction.
39+
- `internal/model`: Unified interface for multiple AI providers (Ollama, OpenAI, GitHub).
40+
- `pkg/vibe`: Public SDK for extensions.
41+
42+
---
43+
*"We build tools that feel like an extension of the mind, not just the hands."*

README.md

Lines changed: 43 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
<img src="./assets/vibeaura.png" width="128" alt="Vibe Auracle Logo" />
33

44
# vibe auracle
5-
**Distributed, System-Intimate AI Engineering Ecosystem**
5+
**Aura vibe with the coolest CLI coding oracle**
6+
7+
*VibeAuracle aims for total model-intimacy: a unified gateway for every AI in existence—from Claude Code and Copilot to its native Auracle agent.*
8+
9+
> [!IMPORTANT]
10+
> **🔮 AURACLE MODE**: Press `Ctrl + Y` to enable an autonomous, human-like agentic loop that independently analyzes and improves your repository. It assumes its own personality to handle issues and patterns with zero user interference.
611
712
<img src="./assets/shot.png" width="100%" alt="Vibe Auracle TUI Screenshot" />
813

@@ -14,15 +19,49 @@
1419

1520
---
1621

22+
## 🚀 Quick Install
23+
24+
### 🐧 Linux / 🍎 macOS / 🤖 Android
25+
```bash
26+
curl -fsSL https://raw.githubusercontent.com/nathfavour/vibeauracle/release/install.sh | sh
27+
```
28+
29+
### 🪟 Windows
30+
```powershell
31+
iex (irm https://raw.githubusercontent.com/nathfavour/vibeauracle/release/install.ps1)
32+
```
33+
34+
> [!TIP]
35+
> **Trust but Verify:** You can always clone and build manually from source, or download our pre-built releases. Every release is built directly from source via GitHub Actions and includes checksums for security.
36+
37+
> **Pro Tip:** One install is all you need. It auto-updates by default, so you only really need `vibeaura update` if you somehow went through the trouble of disabling its autonomy.
38+
39+
---
40+
41+
## 🧠 Why? (The Motivation)
42+
There are lots of reasons—some selfish—for me building this. I realized I spend so much time coding and wanted to optimize for three reasons:
43+
44+
1. **Agentic Future**: It will clearly be the future of software development.
45+
2. **Speed**: Models will always be faster than humans. In human history, speed has always been a factor for 90% of innovation.
46+
3. **Control**: I code so much I need to control what goes within the tools I use, instead of blindly relying on closed source tools.
47+
48+
Vibeaura is a lifelong project for me. Almost a decade ago, I told my brother "passive productivity" was the goal—I want to be able to work in my sleep. Coming from a mathematics and computer science background, building this is my pursuit of that ultimate efficiency.
49+
50+
> [!TIP]
51+
> **Why Go?**: I simply love the ease of development and distribution. When I head to a project, the first thing I look for is how clean and easy it is to install and uninstall. That’s why I went through the trouble of implementing one of the most sophisticated distribution, install, update, and uninstall pipelines possible; you need not think; just install and start vibing.
52+
53+
---
54+
1755
## 🌌 The Vision
1856
**vibe auracle** unifies the terminal, the IDE, and the AI assistant into a single, keyboard-centric interface. It's built for engineers who value **system-intimacy**—where the AI isn't just a chatbot, but a co-pilot with deep access to your hardware, configuration, and environment.
1957

2058
## 🤖 Modular Agentic Runtimes
2159
VibeAuracle is a multi-engine orchestrator. Choose the runtime that fits your task:
2260

23-
- **🎨 Vibe Agent (`/agent /vibe`)**: Our artisan internal loop. Highly transparent, uses custom heuristic loop-detection, and optimized for system-intimate tasks.
61+
- **🔮 Auracle (`/agent /auracle`)**: Our artisan internal loop (formerly Vibe Agent). Highly transparent, uses custom heuristic loop-detection, and optimized for system-intimate tasks.
2462
- **🚀 Copilot SDK Agent (`/agent /sdk`)**: Native GitHub Copilot SDK runtime. Delegates multi-step reasoning to the official GitHub agentic engine for deep tool-intimacy and secure, high-stakes engineering.
25-
- **👤 Custom Agent (`/agent /custom`)**: User-defined agent personas. Register specialized agents with custom system prompts and restricted toolsets to create focused experts for specific workflows.
63+
> *I say **native** out of gratitude: coming from a third-world country, the GitHub Education plan provided tools I could never have afforded, giving me the headstart that made me who I am today.*
64+
- **🌌 Agentic Vibes (`/agent /custom`)**: Specialized **Vibes** that come with their own agentic capabilities. Register specialized personas with custom system prompts and restricted toolsets to create focused experts for specific workflows.
2665

2766
Use the `/agent` command in the TUI to toggle between engines on the fly.
2867

@@ -35,22 +74,6 @@ Use the `/agent` command in the TUI to toggle between engines on the fly.
3574

3675
---
3776

38-
## 🚀 Quick Install
39-
40-
### 🐧 Linux / 🍎 macOS / 🤖 Android
41-
```bash
42-
curl -fsSL https://raw.githubusercontent.com/nathfavour/vibeauracle/release/install.sh | sh
43-
```
44-
45-
### 🪟 Windows
46-
```powershell
47-
iex (irm https://raw.githubusercontent.com/nathfavour/vibeauracle/release/install.ps1)
48-
```
49-
50-
> **Pro Tip:** One install is all you need. Keep the vibes fresh with `vibeaura update`.
51-
52-
---
53-
5477
## 🛠️ Usage
5578
| Command | Description |
5679
|---------|-------------|
@@ -76,4 +99,4 @@ We love community "Vibes"! Check out [CONTRIBUTING.md](./CONTRIBUTING.md) to add
7699

77100
<div align="center">
78101
<sub>Built with 💜 for the future of engineering.</sub>
79-
</div>
102+
</div>

anyisland.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "vibeaura",
3+
"version": "0.1.0",
4+
"description": "Distributed, System-Intimate AI Engineering Ecosystem",
5+
"repository": "github.com/nathfavour/vibeauracle",
6+
"install_dir": "~/.local/bin",
7+
"build": {
8+
"toolchain": "go",
9+
"steps": [
10+
"CGO_ENABLED=0 go build -v -o vibeaura ./cmd/vibeaura"
11+
],
12+
"bin": "vibeaura"
13+
},
14+
"runtime": {
15+
"dependencies": [
16+
"git",
17+
"xclip"
18+
],
19+
"daemon": false,
20+
"pulse": true,
21+
"update_command": "vibeaura update"
22+
}
23+
}

0 commit comments

Comments
 (0)