Skip to content
cRED-fPublic

About

Trajecta is a desktop AI agent that reasons, executes tasks, remembers context, learns from experience, and builds reusable skills with human control and observability.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Trajecta app icon

Trajecta

A desktop AI agent that learns from experience.

Chat · Tools · Knowledge · Background learning · Human control


Status: Active development.

What Trajecta does

  • Agentic chat: Streaming conversations, tool activity, optional provider-supplied reasoning, attachments, document retrieval, message editing, regeneration, and branching.
  • Workspace tools: Select folders per conversation; work with files, code, shell commands, Git, web search, browsers, documents, and MCP tools. Desktop computer control is opt-in.
  • Persistent knowledge: Short-term, semantic, episodic, and procedural memory with conversation search, hybrid retrieval, and maintenance tools. SQLite, full-text search, and embedded Qdrant store local data; Ollama embeddings are optional.
  • Background learning: Durable reflection of completed runs and feedback, experience tracking, reusable skill candidates, evaluation, versioning, regression detection, and controlled promotion or rollback.
  • Human control: ALLOW / ASK / DENY tool permissions, approval and clarification prompts, Guardrails AI checks for prompt injection and sensitive data, and verification for configured external actions.
  • Scheduled tasks: Run one-time or recurring agent jobs with persisted execution history.
  • Model choice: Chat through Bifrost with selectable models and an optional local Ollama setup. Configure providers, API keys, and routing in the Bifrost dashboard—not in Trajecta.
  • Desktop startup: Restore settings and conversations, start local services and learning, check selected local models, and display warnings when services are unavailable.

LLM gateway ownership

Bifrost is Trajecta's model gateway

  • Open Bifrost Dashboard in the sidebar (or Settings → LLM Gateway & Models → Open Bifrost dashboard) to configure providers, credentials, upstream endpoints, virtual keys, routing rules, budgets and fallback chains. The link uses the gateway URL configured for this installation.
  • Choose the model for new conversations in Trajecta Settings. Select a model discovered from Bifrost.
  • The Windows installer creates a unique, persistent Trajecta virtual key at %LOCALAPPDATA%\ai.trajecta.desktop\data\bifrost\virtual-key and seeds data/bifrost/config.json with only Trajecta's governance entry. On upgrades it retains providers, other virtual keys and routing settings.

Architecture

Trajecta_System_Architecture Trajecta_Learning_Architecture

Install from a Git clone (Windows)

Prerequisites

  • Windows 10/11 and Microsoft Edge WebView2.
  • Git, Node.js 22+, pnpm, and uv.
  • Rust toolchain with the MSVC target and Visual Studio C++ build tools (for Tauri); see Tauri 2 prerequisites.
  • Internet access to download dependencies on first installation. uv provisions Python 3.11 for the managed backend.
  • Model credentials configured in the Bifrost dashboard for AI chat. The Windows installer provisions a managed gateway launcher and a persistent Trajecta virtual key; the gateway executable downloads on first launch.

First installation

Run these in PowerShell (replace the repository URL with your actual Git remote):

git clone https://github.com/cRED-f/Trajecta.git
cd Trajecta
pnpm trajecta:install
trajecta

Persistent data and updates

The installed application uses an isolated writable directory rather than storing live data inside the source checkout:

%LOCALAPPDATA%\ai.trajecta.desktop\
├── runtime\Trajecta.exe         # Locally compiled desktop executable
├── runtime\venv\                # Managed Python backend
├── data\.trajecta\              # Conversations, SQLite, Qdrant, skills and uploads
├── logs\backend.log             # FastAPI startup/runtime diagnostics
├── desktop.json                 # Desktop preferences
└── install.json                 # Git checkout reference

Enable automatic skill replay capture (installed Windows build)

Trajecta can save candidate workflows without workspace replay capture, but file-changing skills need reproducible workspace evidence for automatic verification and activation. Replay capture is off by default because it may store copies of local files and increase disk usage and task overhead.

To enable it in the installed Windows build, edit the persistent backend configuration (not the repository's config/default.yaml). In PowerShell:

$folder = "$env:LOCALAPPDATA\ai.trajecta.desktop\data\.trajecta"
New-Item -ItemType Directory -Force -Path $folder | Out-Null
notepad "$folder\config.yaml"

Add the following YAML, or merge fixtures into an existing skills: section rather than adding a duplicate key:

skills:
  fixtures:
    enabled: true
    capture_workspace: true
    max_files: 1000
    max_file_mb: 8
    max_total_mb: 100

Save the file, then fully exit Trajecta via the system tray → Quit Trajecta command and reopen it. Merely closing the window may leave the backend running. No rebuild or reinstall is required for this configuration change.

To verify the values loaded by the installed backend, run:

$base = "$env:LOCALAPPDATA\ai.trajecta.desktop"
Push-Location "$base\data"
try {
    & "$base\runtime\venv\Scripts\python.exe" -c "from server.src.config import Settings; s = Settings.load(); print('Replay enabled:', s.skills.fixtures.enabled); print('Workspace capture:', s.skills.fixtures.capture_workspace)"
} finally {
    Pop-Location
}

Both lines should show True. In Knowledge → Skills, the warning about workspace replay capture should disappear once the restarted backend reports its updated settings. Replay capture applies to future tasks: it cannot retroactively create missing evidence for prior tasks, and a captured workflow still must pass skill verification before activation.

The default limits above cap the number and size of captured files; an incomplete snapshot is not accepted as verified replay evidence. Review the privacy implications before enabling capture in workspaces containing secrets or sensitive files. To disable it again, set enabled: false and capture_workspace: false in the same YAML file and restart Trajecta.

Repository layout

Trajecta/
├── apps/desktop/            # React / Tauri desktop app and settings
├── cli/                     # Single global trajecta launcher
├── scripts/                 # Local install, update, and uninstall helpers
├── server/src/
│   ├── api/                 # FastAPI endpoints
│   ├── chat/                # Conversation and streaming orchestration
│   ├── guardrails/          # Guardrails AI content/privacy checks and tool policy
│   ├── memory/              # Task tracking, reflection, retrieval and storage
│   ├── skills/              # Candidates, evaluation, promotion and rollback
│   ├── tools/               # Local tools and MCP integrations
│   └── llm_gateway/         # Bifrost integration
├── config/                  # Defaults and guardrail rules
├── pyproject.toml
└── SOURCE_INSTALL.md

Further documentation

License

MIT

About

Trajecta is a desktop AI agent that reasons, executes tasks, remembers context, learns from experience, and builds reusable skills with human control and observability.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages