Skip to content

Vid116/visioneer

Repository files navigation

Visioneer

An autonomous AI agent that learns and builds for you. Give it a goal like "learn chess", "research blockchain APIs", or "build a working prototype" — and it will research, plan, execute tasks, and create real artifacts.

Visioneer - Autonomous AI Agent Architecture

What This Is

An autonomous AI agent system designed for long-running learning and execution projects. Takes high-level directives ("learn piano", "build a product") and executes them over days/weeks/months.

Core Architecture

  • Three-layer agents: Command (human interface) → Vision (strategic) → Execution (operational)
  • Three-tier memory: Orientation (fast context) → Working (active state) → Knowledge (deep storage)
  • "Human-triggered, memory-persistent" operation model via Claude Code

Key Files

  • visioneer-technical-specification.md - Complete implementation spec
  • visioneer.config.json - System configuration
  • src/agent/cycle.ts - Agent loop implementation

Current State

Architecture designed and documented. Basic agent cycle exists. MCP servers for memory system need implementation.

Tech Stack

TypeScript, SQLite + sqlite-vss (vector search), MCP servers, Claude API

Location

C:/Visioneer/visioneer/

Quick Start

# Set a goal
npm run goal "Learn the basics of chess openings"

# Let it run
npm run agent:continuous

# Watch progress (optional, in another terminal)
npm run dashboard

That's it. The agent researches, learns, writes code, and stores knowledge automatically.

What It Does

  1. You set a goal — anything from learning a topic to building a prototype
  2. Agent plans tasks — breaks your goal into concrete steps
  3. Agent executes — researches the web, reads articles, writes code/docs
  4. Knowledge builds up — facts, insights, and artifacts accumulate
  5. You watch or intervene — monitor progress, answer questions if needed

Example Goals

  • "Learn the basics of chess" — researches openings, tactics, stores key concepts
  • "Research blockchain APIs for NFT tracking" — compares providers, documents findings
  • "Build a REST API for todo management" — writes actual working code
  • "Understand how transformers work in ML" — studies papers, creates explanations

Commands

Command What it does
npm run goal "..." Set a new goal
npm run goal Show current goal
npm run agent:continuous Run until done or blocked
npm run agent:cycle Run one task only
npm run dashboard Live progress view
npm run status Static status report
npm run answer List pending questions
npm run answer <id> "..." Answer a question
npm run db:reset Wipe everything, start fresh

Watching Progress

Live Dashboard

npm run dashboard

Shows real-time updates every 2 seconds:

  • Current goal and phase
  • Progress bar with task counts
  • Recent activity (web searches, tool use, completions)
  • Pending questions that need your input

Controls: q quit | r refresh | a answer questions

Static Status

npm run status

One-time snapshot showing:

  • Project — ID, creation date, vision, current phase
  • Current Goal — what the agent is working toward
  • Progress — completion status by area with progress bars
  • Active Priorities — what's being focused on
  • Tasks — counts by status (ready, in progress, blocked, done)
  • Open Questions — items needing your input
  • Recent Activity — last 5 actions taken
  • Knowledge — chunk counts by confidence level, recent learnings
  • Last Cycle — when it ran, what was completed, tools used
  • Quick Actions — common commands to run next

What It Produces

Everything is stored and persists across sessions:

  • Knowledge chunks — facts, insights, decisions (searchable)
  • Artifacts — code files, documents, research notes (in ./artifacts/<project-id>/)
  • Task history — what was planned, executed, completed
  • Activity log — timestamped record of all actions

Answering Questions

Sometimes the agent needs your input to continue:

# See what's pending
npm run answer

# Respond to a question
npm run answer abc123 "Use PostgreSQL instead of SQLite"

The agent will unblock and continue with your answer.

Tips

  • Let it runnpm run agent:continuous handles everything automatically
  • Watch the dashboard — see what it's researching and building in real-time
  • Answer quickly — blocked tasks wait for your input
  • Check artifacts — look in ./artifacts/ for generated code and docs
  • Cost awareness — each cycle uses ~$0.10-0.20 in API calls
  • Fresh startnpm run db:reset wipes everything if needed

Setup

Prerequisites

  • Node.js 18+
  • npm

Installation

git clone <repo>
cd visioneer
npm install

API Keys

Copy the example and add your keys:

cp .env.example .env

Required keys in .env:

ANTHROPIC_API_KEY=sk-ant-...    # Claude - the reasoning engine
OPENAI_API_KEY=sk-...           # Embeddings for semantic search
SERPER_API_KEY=...              # Web search (get free key at serper.dev)

Initialize

npm run db:init

Verify

npm run status

You should see "No active project" — ready to set your first goal!

How It Works (Technical)

Visioneer uses a three-layer architecture:

  1. Command Layer — interprets your goals, reports progress
  2. Vision Layer — maintains strategic coherence, plans tasks
  3. Execution Layer — does the work (research, writing, building)

Supported by a Memory System:

  • Orientation — compressed project context (always loaded)
  • Working Memory — active tasks, questions, blockers
  • Knowledge Store — semantic search over all learned content

The agent can use tools:

  • web_search — find information online
  • web_fetch — read full articles/documentation
  • write_artifact — create code files, documents
  • read_artifact — reference previously created files

See HANDOFF.md for full technical details.

Project Structure

visioneer/
├── src/
│   ├── agent/       # Core agent logic (cycle, execution, planning)
│   ├── cli/         # Command-line tools (dashboard, goal, status)
│   ├── db/          # SQLite + vector store
│   └── embedding/   # OpenAI embeddings integration
├── artifacts/       # Generated files (code, docs) by project
├── visioneer.db     # All persistent data
└── visioneer.config.json  # Settings

Related Projects

PixelIRL

An NFT-powered LED pixel display for bars and venues. Research and planning completed by Visioneer.

Location: C:\Visioneer\pixelirl\

What it is: A physical 8x8 LED matrix where each pixel can be owned and controlled via NFT. Installed in venues for zero cost, creates Instagram-worthy experiences.

Status: Research complete, hardware parts ordered, ready for build.

Key docs:

  • docs/guides/pixelirl-build-guide.html — Complete assembly with buy links
  • docs/pixelirl-presentation.html — Investor presentation
  • docs/pixelirl-executive-summary.md — One-page overview

License

MIT

About

Autonomous AI agent with multi-layer memory, MCP servers, and Claude API. Set a goal, it researches, plans, and executes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors