Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

536 B
Raw Blame
import { useParams, Navigate } from 'react-router';
import AgentList from '../components/agents/AgentList';
import AgentDetail from '../components/agents/AgentDetail';

export default function Agents() {
  const { agentId, tab } = useParams();

  // No agentId → show agent list
  if (!agentId) {
    return <AgentList />;
  }

  // agentId without tab → redirect to overview
  if (!tab) {
    return <Navigate to={`/agents/${agentId}/overview`} replace />;
  }

  // agentId + tab → show agent detail
  return <AgentDetail />;
}