Skip to content
IEXDevsPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Astronom

Build AI agents by talking. Verify them. Put them to work.

An internal platform for building, securing, running, and observing AI agents.

HackTX 2026 Website Devpost

TypeScript Next.js React Postgres Supabase Gemini Three.js


The Astronom Create agent screen: a 3D voice sphere above a prompt box with Talk to Astro and Upload video buttons

πŸ† Won 2nd place in the NMC2 track at HackTX 2026, the track for building the platform behind AI agents. Visit astronom.tech or see the project on Devpost.

Astronom is a working implementation of the enterprise agent-platform brief: describe a job, get a team of agents built for it, attack them with a red team before they go live, and run them under permissions you control.

Everything here is real enough to inspect. Runs execute tools against a per-agent sandbox on disk, approvals pause the actual engine, budgets halt it, and every observable fact is an append-only, hash-chained event.

Highlights

πŸŽ™οΈ Talk to Astro A spoken agent builder on the Gemini Live API. Astro interviews you, drafts the agent on screen, searches the web to confirm tools exist, and builds it when you say so.
🎬 Workflow videos Upload a screen recording of a job done by hand. Gemini turns it into a written description that starts the builder conversation.
πŸ“ž Voice lines Open any published agent as a live phone-style call. The demo receptionist checks Google Calendar and books appointments, through the same permission engine as every other action.
πŸ›‘οΈ Red team and blue team Every published agent can be attacked with five canary-verified test attacks. A blue team drafts fixes, a person approves them, and a fix counts only after the original exploit fails three times in a row.
🧭 The motivator An independent peer agent that reviews the main agent's exits and, when you turn on Approve for me, its risky permission requests.
πŸ”Œ Composio tool harness Per-user OAuth links to GitHub, Gmail, Slack, Google Calendar, and more. Reads run immediately, writes wait for approval.
πŸ” Tamper-evident audit trail Every action is a SHA-256 hash-chained event, streamed live to the run page and the workflow graph.

How it works

flowchart LR
    subgraph Build
        T["Type it"] --> D
        V["Talk to Astro"] --> D
        F["Upload a workflow video"] --> D
        D["Agent draft<br/>team, tools, apps"]
    end
    D -->|Publish| P["Published agent"]
    P --> R["Red-team check<br/>5 canary-verified attacks"]
    R -->|finding| B["Blue team<br/>triage, fix, verify"]
    B -->|you approve the diff| P
    P --> U["Run it<br/>text, API, or voice line"]
Loading
flowchart TB
    UI["Next.js app<br/>builder, runs, graph, security"] --> API["API routes"]
    API --> ENG["Run engine<br/>orchestrator and sub-agents"]
    ENG --> POL["Permission engine<br/>default-deny, grants, approvals"]
    ENG --> MODELS["Models<br/>Meta Muse via an OpenAI-compatible API"]
    ENG --> TOOLS["Tools<br/>sandbox files, knowledge base, web search, Composio apps"]
    ENG --> LOG[("Hash-chained event log<br/>Postgres")]
    LOG -->|Server-Sent Events| UI
    UI <-->|"one-use tokens"| LIVE["Gemini Live<br/>Astro and voice lines"]
Loading

Quick start

Requires Node 22.13+ and pnpm. Agent shell commands also require Docker.

pnpm install
pnpm dev

Open http://localhost:3000. The first request migrates and seeds local embedded Postgres in apps/web/.data/postgres. No API keys are needed to look around: the default planner is deterministic and every tool call still executes for real.

pnpm typecheck   # TypeScript, all packages
pnpm test        # Vitest, 380+ tests
pnpm lint        # ESLint and React Hooks checks
pnpm build       # production build
pnpm verify:package # start the standalone package and verify migrations

For shell and CLI tools, run pnpm sandbox:build and pnpm sandbox:verify first. See command isolation for the workspace, network, and deployment boundaries.

Configuration

Copy .env.example to apps/web/.env.local and fill in what you need. Keys never live in the repo.

Variable Turns on
MODEL_GATEWAY=openai, OPENAI_API_KEY, OPENAI_BASE_URL Live agents on any OpenAI-compatible endpoint. The base URL defaults to the Meta Model API.
GEMINI_API_KEY Talk to Astro, voice lines, and workflow videos. Server only: the browser gets one-use, short-lived tokens.
COMPOSIO_API_KEY Connecting GitHub, Google Calendar, and other apps.
SERPAPI_API_KEY Web search for agents and the builder.
NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY Sign-in and the usage ledger.
CREDENTIAL_ENCRYPTION_KEY Production credential encryption (AES-256-GCM).

Try it

  1. Create an agent. On Home, type what the agent should do, click Talk to Astro (use Chrome and headphones), or Upload video. Review the draft, then Publish agent.
  2. Red-team it. After publishing, run the red-team check. Open Security to see which of the five attack types held and which got through.
  3. Open its voice line. On a published agent's page, click Open voice line. Link Google Calendar on Connectors first if you want it to book.
  4. Watch a run. Open a run to see the live event stream, the router's model choice, and the agent graph with animated links between agents.
  5. Approve a gate. A high-risk action pauses the run with a real approval row. Approve or deny it and the engine resumes from the database.
  6. Inspect the sandbox. Open an agent's Console to read and edit its real workspace directory. Writes are path-guarded and audited.

Repository layout

apps/web/                 Next.js 16 App Router app and API routes
  src/app/                home builder, agents, workflows, runs, security, voice, connectors, usage
  src/app/api/            runs (SSE), approvals, builder, voice, connectors, agents, security
  src/lib/runtime/        engine, model gateways, tools, sandbox, builder, motivator, recovery
  src/lib/loop/           red-team checks, blue-team repair, case review
  src/lib/db/             Drizzle schema, migrations, seed
  src/components/voice/   Gemini Live client, audio pipeline, 3D voice sphere
packages/core/            shared protocol, model router, budget ledger, hash chain
  src/protocol/           agents, events, models, permissions, tools
  src/runtime/            hash chain, projection, budget, path-safe sandbox helpers
supabase/                 Postgres schema with row-level security

For a plain-language tour of the red and blue teams, read apps/web/src/lib/loop/README.md. Domain terms are in GLOSSARY.md.

The 12 platform pillars, as implemented

Pillar Where it lives
Use case / template Templates and the agent builder; instantiate through POST /api/agents/from-template
Connectors Composio apps, SerpAPI web search, and the workspace knowledge base
Context A workspace knowledge base with data-classification clearance, plus a shared CONTEXT.md agents read and update
Hardware / resources hardwareForComplexity() maps task complexity to a light, medium, or heavy envelope
Evaluations Canary-verified red-team attack suites and retests against recorded runs
Trigger Manual runs from the UI, POST /api/runs, and voice calls
Model Data-class-aware router; confidential and restricted data prefers in-VPC models
Budget Run and daily ledgers; at 75% the router downgrades the step and injects a wrap-up directive
Guardrails Default-deny policy, standing grants, per-run approval for high and critical risk, secret leases
Prompt Locked company blocks, team blocks, and agent instructions resolved by resolvePrompt()
Observability Hash-chained event log, SSE stream, run trace, live graph, usage ledger
Auto-heal The blue team proposes fixes; a person approves; the agent gets a new immutable version

Operating notes

  • Scripted vs live. The default gateway is scripted; the plan is deterministic and every tool call runs through the production executor. For live inference set MODEL_GATEWAY=openai and OPENAI_API_KEY in apps/web/.env.local. The workspace model policy allows Meta models, so live runs route to Muse. Without a key it falls back to scripted (check the run's mode). Reasoning models spend completion tokens thinking, so live steps cost roughly 400–600 tokens each against the run budget ceiling.
  • Storage. Production uses Supabase Postgres. Development uses embedded Postgres (DATABASE_URL=pglite://./.data/postgres). Agent sandboxes live under .runtime/workspaces/. The Google Cloud deployment guide covers persistent hosted storage and Docker execution.
  • Secrets. Credentials are encrypted at rest with AES-256-GCM. The local development key is derived; production requires CREDENTIAL_ENCRYPTION_KEY (32 bytes, base64).
  • Reset. pnpm db:reset clears and reseeds only a local PGlite database. It refuses remote database URLs. Existing SQLite files can be copied with pnpm db:import-sqlite; the source file stays unchanged.

Team

Built at HackTX 2026 by @spinkicks, @sid-chevvan, @Alex-Hel, and @netord.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages