Skip to content

tenex-chat/tenex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2,773 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

TENEX

Collaborative AI development - A revolutionary context-first development environment where AI agents collaborate autonomously to build software.

License: MIT Built on Nostr

What is TENEX?

TENEX represents a paradigm shift in software development. If LLMs have fundamentally changed how we write code, shouldn't our development environments evolve too? TENEX answers this by replacing the traditional text editor with a context-first environment where context, not code, becomes the primary building block.

At its core, TENEX is a sophisticated multi-agent coordination system built on the Nostr protocol. It enables autonomous AI agents to collaborate on complex software development tasks through intelligent routing, phase-based workflows, and continuous learning.

Key Innovation: Intelligent Agent Coordination

Unlike traditional AI assistants where you interact with a single entity, TENEX employs an intelligent routing pattern. The system automatically routes your requests to specialized agents best suited for each task, creating a seamless experience where the right expertise appears exactly when needed.

โœจ Key Features

๐Ÿค– Multi-Agent Architecture

  • Specialized Agents: Agents for planning, execution, and project management fetched from Nostr
  • Dynamic Routing: Intelligent task delegation based on agent capabilities and context
  • Parallel Execution: Multiple agents can work simultaneously on different aspects of your project
  • Custom Agents: Extensible system allowing you to define domain-specific experts

๐Ÿ”„ Phase-Based Workflow

Agents can define phases (for example: planning, execution, review) to structure their own todo lists and to pass phase instructions when delegating. Phases are optional and vary per agent.

๐Ÿง  Continuous Learning System

  • Agents capture and apply lessons from every interaction
  • Cross-conversation knowledge sharing
  • Self-improving behavior based on accumulated experience
  • Persistent knowledge base stored on Nostr

๐Ÿ”ง Powerful Tool System

  • Comprehensive Tools: File operations, code analysis, shell execution, Git integration
  • MCP Integration: Model Context Protocol support for dynamic tool loading
  • Type-Safe: Comprehensive validation and error handling
  • Composable: Tools can be combined for complex operations

๐ŸŒ Nostr-Native Architecture

  • Decentralized by Design: No central server, peer-to-peer agent communication
  • Cryptographic Identity: Each project maintains its own nsec for secure context
  • Event Sourcing: Complete audit trail of all agent actions
  • Resilient: Continues operating even with network disruptions

๐ŸŽฏ LLM Provider Agnostic

  • Support for OpenAI, Anthropic, Google, OpenRouter, and more
  • Intelligent model selection based on task requirements
  • Automatic failover and rate limiting
  • Cost optimization through smart routing

๐Ÿš€ Getting Started

Prerequisites

  • A Rust toolchain (stable, via rustup)
  • Git for version control integration
  • An API key for at least one LLM provider (OpenAI, Anthropic, OpenRouter, โ€ฆ)

Installation

# Clone the repository
git clone https://github.com/tenex-chat/tenex
cd tenex

# Build the workspace
cargo build --release

The tenex binary is produced at target/release/tenex.

Configuration

Before using TENEX, run the setup wizard to configure your identity, relays, and LLM provider credentials:

tenex onboard

Then start the project supervisor, which subscribes to Nostr and spawns a runtime per project on inbound events:

tenex daemon

Quick Start

  1. Create a new project using the TENEX Web Client or iOS client

  2. Example interaction:

You: Create a REST API for a todo application with authentication

TENEX: [System routes to Planner]
[Planner creates structured approach]
[Executor implements the API]
[Verification runs tests]
[Documentation is updated]
[Lessons are captured for future use]

๐Ÿ“š Documentation

  • Architecture: Core principles, the Rust crate workspace, and module organization.
  • crates/AGENTS.md: Modularization philosophy and the rules for adding or splitting crates.
  • Module Inventory: Canonical map of every crate and its internal modules.
  • Contributing: Development workflow, coding guidelines, and testing.

๐Ÿ—๏ธ Project Structure

TENEX is a Rust workspace. The host CLI/supervisor lives in tenex/; every other concern is a focused crate under crates/. See MODULE_INVENTORY.md for the full map.

tenex/                     # Host CLI + supervisor: onboarding, config, doctor, daemon, runtime, agent/mcp/cron commands
crates/
โ”œโ”€โ”€ tenex-agent/           # One-shot agent runner: LLM loop + tools (NDJSON over stdio)
โ”œโ”€โ”€ tenex-conversations/   # SQLite conversation store (messages, prompt history, completions, delegations)
โ”œโ”€โ”€ tenex-context/         # Conversation-history โ†’ LLM-message projection
โ”œโ”€โ”€ tenex-system-prompt/   # Deterministic system-prompt assembly
โ”œโ”€โ”€ tenex-project/         # Read-side project view: membership, teams, signer
โ”œโ”€โ”€ tenex-agent-registry/  # Global installed-agent JSON registry
โ”œโ”€โ”€ tenex-llm-config/      # LLM/provider configuration resolver
โ”œโ”€โ”€ tenex-mcp/             # Project-scoped MCP server runtime
โ”œโ”€โ”€ tenex-rag/             # RAG storage + embeddings
โ”œโ”€โ”€ tenex-summarizer/      # kind:513 conversation-metadata daemon
โ”œโ”€โ”€ tenex-embedder/        # Conversation embedding daemon
โ”œโ”€โ”€ tenex-scheduler/       # Cron / schedule daemon
โ”œโ”€โ”€ tenex-intervention/    # Completion-timeout watcher daemon
โ”œโ”€โ”€ tenex-identity/        # kind:0 profile resolver + cache
โ”œโ”€โ”€ tenex-telegram/        # Telegram integration
โ”œโ”€โ”€ tenex-protocol/        # TENEX intent vocabulary + Nostr channel encoding
โ”œโ”€โ”€ tenex-whitelist/       # Local trust-set reader
โ”œโ”€โ”€ tenex-supervision/     # Pure supervision heuristics (no I/O)
โ”œโ”€โ”€ tenex-telemetry/       # OpenTelemetry / tracing bootstrap
โ””โ”€โ”€ tenex-accounting/      # LLM accounting store + embedded UI

๐Ÿค Contributing

We welcome contributions! Please read our Contributing Guide for a detailed overview of our development workflow, coding guidelines, and architectural principles.

Development Setup

# Build the workspace
cargo build

# Run the test suite
cargo test --workspace

# Lint (deny warnings)
cargo clippy --workspace --all-targets

# Format
cargo fmt --all

# Build optimized binaries
cargo build --release

The pre-commit hook runs cargo check --workspace.

๐Ÿ”ฎ What Makes TENEX Different?

Context Over Code

Traditional IDEs optimize for code editing. TENEX optimizes for context management, recognizing that in the LLM era, maintaining and utilizing context effectively is more valuable than syntax highlighting.

Invisible Complexity

The coordination system operates behind the scenes, presenting a simple conversational interface while managing sophisticated multi-agent collaboration underneath.

Quality by Design

Mandatory verification and reflection phases ensure every task meets quality standards and contributes to the system's collective knowledge.

Truly Decentralized

Built on Nostr from the ground up, not as an afterthought. This enables censorship-resistant, peer-to-peer agent networks with no single point of failure.

๐ŸŽฏ Use Cases

  • Rapid Prototyping: Go from idea to working prototype through natural conversation
  • Code Migration: Modernize legacy codebases with intelligent refactoring
  • Documentation: Automatic generation and maintenance of technical documentation
  • Testing: Comprehensive test generation and verification
  • Learning: Agents that get better at your specific codebase over time

๐Ÿ“ˆ Roadmap

  • Web-based interface improvements
  • Multi-model ensemble execution
  • Real-time collaborative editing
  • Advanced debugging and profiling tools

๐Ÿ“„ License

MIT

๐Ÿ“ž Contact & Support


Ready to experience the future of software development? Create your first project using the TENEX Web Client and let your AI agents handle the rest.

"The best code is the code you don't have to write. The second best is code written by agents who learn from every line they produce." - TENEX Philosophy

About

Vibessistant

Resources

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors