Spaces:
Running
Running
Deploy static build from 61362d3
Browse filesFiles changed (9)
- source/DEPLOYMENT.mdAdded+61
- source/README.mdAdded+62
- source/package-lock.jsonAdded
- source/package.jsonAdded+34
- source/public/index.htmlAdded+14
- source/src/App.cssAdded+67
- source/src/App.jsAdded+28
- source/src/index.cssAdded+3
- source/src/index.jsAdded+10
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061# Hugging Face Static Space deployment
**Status:** Implemented in GitHub Actions **Scope:** NLT Coding Agent React frontend **Space:** `divergent-tech/nlt-coding-agent` **Source:** `hf/` in this repository **Build workflow:** `.github/workflows/publish.yml`
## Deployment architecture
The Hugging Face Space is a React static frontend. GitHub Actions performs the Node.js build and uploads the prebuilt output to the Space. This keeps compilation on GitHub-hosted runners rather than invoking the Hugging Face Static Space build service.
The Space metadata uses `sdk: static` and `app_file: index.html`. It intentionally does not define `app_build_command`: the workflow publishes the compiled `index.html` and its static assets at the Space repository root.
## Workflow behavior
- Pull requests affecting `hf/**` run the React build and upload a build artifact, but do not publish to Hugging Face.- Pushes to `main` affecting `hf/**` build and publish the compiled static application.- Manual dispatch on `main` builds and publishes the Space.- The build uses Node.js 20 and the React app in `hf/`.- Only the compiled output and Space README are uploaded to Hugging Face; source remains maintained in GitHub.
## Authentication and publishing
Publishing uses Hugging Face Trusted Publishers with GitHub Actions OIDC. No `HF_TOKEN` GitHub secret or long-lived Hugging Face access token is required.
The publisher must match these GitHub claims:
- Repository: `NeuroLift-Technologies/nlt-coding-agent`- Branch: `main`- Workflow: `publish.yml`
The publish job requests `id-token: write`, sets `HF_OIDC_RESOURCE=spaces/divergent-tech/nlt-coding-agent`, and uses the Hugging Face CLI to exchange the GitHub OIDC identity for a short-lived, Space-scoped token.
Pull-request runs only build and upload a GitHub Actions artifact. They do not receive OIDC publishing permission and never publish to the Space.
## Local build
From the repository root:
```bashcd hfnpm install --legacy-peer-depsnpm run build```
The production output is written to `hf/build/`.
## Application boundary
The root repository application is a full-stack Next.js application using server-side API routes, sessions/cookies, Drizzle/Neon, and Vercel Sandbox. Those capabilities are not included in this static Space build.
The React Space is the user-facing frontend surface. Agent orchestration, model inference, repository operations, and code execution must be provided by separately configured backend services and exposed through explicit APIs.
## Acceptance criteria
- The GitHub Actions build completes successfully.- The published Space contains `index.html` and its generated static assets.- Pull request builds never publish.- Publishing is gated by the GitHub Actions OIDC identity matching the Trusted Publisher claims.- No secrets are committed to either repository.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162---title: NLT Coding Agentemoji: 🐠colorFrom: indigocolorTo: redsdk: staticapp_file: index.htmlpinned: falselicense: apache-2.0short_description: Human-directed AI software engineering agent---
# NLT Coding Agent
An AI-powered software engineering agent by NeuroLift Technologies.
The NLT Coding Agent is designed to perform software engineering tasks through repository understanding, code generation, implementation, testing, debugging, and documentation.
It combines model-driven reasoning with development tools and an isolated execution environment powered by Rivet agentOS.
## Mission
Enable an AI agent to perform structured software development work while maintaining transparency, execution integrity, and clear boundaries around its capabilities and permissions.
## Architecture
| Component | Responsibility ||---|---|| Coding Agent | Task interpretation and engineering workflow || Model Provider | Language-model inference || Rivet agentOS | Isolated execution runtime || Workspace | Repository files and development environment || Tool Interfaces | Filesystem, terminal, Git, and testing operations || Hugging Face Space | User-facing static React application |
Rivet agentOS provides execution capabilities. It is not the agent's reasoning engine or identity.
## Model Provider Independence
The agent is designed to support configurable model providers, including Hugging Face Inference Providers, Cloudflare Workers AI, Vercel AI Gateway, and OpenRouter.
Model selection should consider coding ability, context capacity, availability, latency, and cost. The agent should not depend on a single model vendor.
## Engineering Principles
- Inspect before modifying.- Preserve existing project architecture wherever practical.- Validate implementation and report actual results.- Distinguish generated code from executed and verified code.- Use least privilege and isolated execution.- Keep model and execution infrastructure replaceable.- Respect human authority; consequential operations require appropriate authorization.
## Deployment
The React frontend is built in GitHub Actions. The workflow publishes the prebuilt static output to this Space. Hugging Face receives the compiled files and serves `index.html`; it does not need to run the application build.
The full-stack Next.js application and its server-side capabilities remain separate from this static frontend.
Created by NeuroLift Technologies LLC.
**ElevAIting Minds, Changing Lives.**12345678910111213141516171819202122232425262728293031323334{ "name": "nlt-coding-agent-space", "version": "0.1.0", "private": true, "homepage": ".", "dependencies": { "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@testing-library/user-event": "^13.5.0", "ajv": "^8.20.0", "react": "^19.1.0", "react-dom": "^19.1.0", "react-scripts": "5.0.1", "web-vitals": "^2.1.4" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test --watchAll=false" }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }}1234567891011121314<!DOCTYPE html><html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="theme-color" content="#171717" /> <meta name="description" content="NLT Coding Agent by NeuroLift Technologies" /> <title>NLT Coding Agent</title> </head> <body> <noscript>JavaScript must be enabled to use the NLT Coding Agent.</noscript> <div id="root"></div> </body></html>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #090d18; color: #f4f6fb;}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
.app-shell { min-height: 100vh; display: grid; place-items: center; padding: 48px 24px 24px; background: radial-gradient(ellipse at 50% 10%, rgba(99, 102, 241, .2), transparent 48%), #090d18;}
.agent-panel { width: min(100%, 760px); padding: clamp(28px, 6vw, 64px); border: 1px solid rgba(148, 163, 184, .22); border-radius: 24px; background: rgba(15, 23, 42, .82); box-shadow: 0 24px 90px rgba(0, 0, 0, .3);}
.brand-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, #6366f1, #c026d3); font-weight: 800; letter-spacing: -.06em;}
.eyebrow { margin: 32px 0 10px; color: #a5b4fc; font-size: .75rem; font-weight: 700; letter-spacing: .16em;}
h1 { margin: 0; font-size: clamp(2.3rem, 7vw, 4rem); letter-spacing: -.055em; }.intro { margin: 18px 0 28px; color: #cbd5e1; font-size: 1.15rem; line-height: 1.6; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(52, 211, 153, .25); border-radius: 999px; background: rgba(16, 185, 129, .08); color: #a7f3d0; font-size: .9rem;}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; }.supporting-copy { max-width: 590px; margin: 28px 0 0; color: #94a3b8; line-height: 1.75; }footer { margin-top: 36px; color: #64748b; font-size: .8rem; letter-spacing: .04em; }12345678910111213141516171819202122232425262728import './App.css';
function App() { return ( <main className="app-shell"> <section className="agent-panel" aria-labelledby="app-title"> <div className="brand-mark" aria-hidden="true">NLT</div> <p className="eyebrow">NEUROLIFT TECHNOLOGIES</p> <h1 id="app-title">NLT Coding Agent</h1> <p className="intro"> A human-directed, AI-assisted software engineering agent. </p> <div className="status" role="status"> <span className="status-dot" /> React Space frontend build is online </div> <p className="supporting-copy"> The user interface and agent runtime are being developed as separate components. Repository analysis, model inference, and code execution will connect through the configured service layer. </p> </section> <footer>ElevAIting Minds, Changing Lives.</footer> </main> );}
export default App;123html { min-width: 320px; background: #090d18; }body { margin: 0; }button, input, textarea { font: inherit; }12345678910import React from 'react';import { createRoot } from 'react-dom/client';import './index.css';import App from './App';
createRoot(document.getElementById('root')).render( <React.StrictMode> <App /> </React.StrictMode>);source/DEPLOYMENT.mdAdded+61
source/README.mdAdded+62
source/package-lock.jsonAdded
source/package.jsonAdded+34
source/public/index.htmlAdded+14
source/src/App.cssAdded+67
source/src/App.jsAdded+28
source/src/index.cssAdded+3
source/src/index.jsAdded+10