harness-kit / taskit
CLAUDE.md100 starsChanged 9 months agoMITView on GitHub
This file provides guidance to Claude Code (claude.ai/code) when working in taskit/. Taskit is a full-stack task orchestration dashboard: Django REST API backend + React/TypeScript/Vite frontend. It tracks task lifecycles with full mutation history, provides timeline views, team analytics, and KPI visualizations. See taskit-backend/CLAUDE.md for detailed backend architecture, models, domain rules, API endpoints, and test commands.
- Reads credentials
- Installs packages
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- harness_usage_status/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- harness_usage_status/CLAUDE.mdCLAUDE.md
- odin/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- fable-auditSkill
- hk-arch-auditSkill
- hk-autonomy-auditSkill
- hk-breadcrumb-creatorSkill
- hk-changelogSkill
- hk-compoundSkill
- hk-follow-breadcrumbSkill
- hk-local-diagnoseSkill
- hk-local-logsSkill
- hk-local-run-specSkill
- hk-merge-resolveSkill
- hk-mock-firstSkill
- hk-rcaSkill
- hk-refineSkill
- hk-scout-wikiSkill
- hk-shift-changelogSkill
- hk-skill-creatorSkill
- hk-slop-auditSkill
The file
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working in taskit/.
What This Is
Taskit is a full-stack task orchestration dashboard: Django REST API backend + React/TypeScript/Vite frontend. It tracks task lifecycles with full mutation history, provides timeline views, team analytics, and KPI visualizations.
Commands
Backend (taskit-backend/)
pip install -r requirements.txt
python scripts/create_db.py # Initialize PostgreSQL database
python manage.py migrate
python manage.py runserver 0.0.0.0:8000Frontend (taskit-frontend/)
npm install
npm run dev # Dev server on http://localhost:9200
npm run build # TypeScript check + Vite build
npm run lint # ESLint
npm run test # Vitest (watch mode)
npm run test:run # Vitest (single run)Populate demo data
cd taskit-frontend && python populate_data.pyArchitecture
Backend
See taskit-backend/CLAUDE.md for detailed backend architecture, models, domain rules, API endpoints, and test commands.
Frontend (React + Vite + TypeScript)
- App.tsx: Root state management — holds
DashboardData, view mode, selected board/task, modal state. - Service layer (
services/harness/HarnessTimeService.ts): API client implementingIntegrationServiceinterface. Fetches, transforms, and computes time-in-status from mutation history. IncludesparseActor()for decoding agent identity emails ({agent}+{model}@odin.agent). - IntegrationService interface (
services/integration/): Abstraction layer so the data source can be swapped (Trello, Jira, etc.). - Types (
types/index.ts):Member,Task,TaskComment,Board,TaskMutation,DashboardData,DashboardStats,Spec,SpecComment,SpecCostSummary,ReflectionReport,ModelInfo,CommentType,CommentFileAttachment,ProcessMonitorTask,AgentConfig,ViewMode. - Pages (
components/pages/): BoardPage (kanban + timeline + DAG views per board), SpecsPage, MembersPage. - Components: KPICards, KanbanBoard, TaskCard, TaskDetailModal, TimelineView, DagView, TraceViewer, SpecListView, SpecDetailView, SpecDebugView, SpecJourney, ReflectionModal, ReflectionListView, ReflectionDetailView, ReflectionReportViewer, MemberCards, MemberAvatarBar, MemberManagementPopover, CreateTaskModal, CreateBoardModal, CreateUserModal, EditUserModal, ManageMembersModal, ProcessMonitorModal, OdinGuideModal, DashboardCharts, CountdownTimer, TaskTimeDisplay, LoginPage, ChangePasswordPage, SettingsView, MarkdownEditor, MarkdownRenderer, FilterBar, SearchBar.
- Utilities (
utils/):transformer.ts(status classification, formatting),dagUtils.ts(cycle detection, DAG layout with dagre, orphan separation, edge classification). - Contexts (
contexts/): AuthContext (Django JWT auth — access token in memory, refresh token via httponly cookie). - Testing: Vitest + @testing-library/react + jsdom. Config in
vitest.config.ts, setup insrc/test/setup.ts. Tests live alongside source files (*.test.ts,*.test.tsx). - Styling: Single
index.css(dark mode, glassmorphism, CSS variables, animations). Tailwind v4.
URL Parameters
?taskId=<id>— Opens TaskDetailModal for the specified task (any route).?view=dag— Switches Timeline view to DAG dependency graph mode (/timelineonly).
Frontend Design Conventions
- All view state must be URL-addressable. Every distinct view mode, toggle, or sub-view should be backed by a URL parameter or route segment — never component-local
useStatealone. This ensures the view survives page reload, is shareable via link, and works with browser back/forward. UseuseSearchParamsfor view toggles within a route (e.g.,?view=dag) and dedicated routes for top-level views. - Detail sidebar vertical budget. The TaskDetailModal sidebar (left 320px column) has a fixed space budget (~550px). New fields must be either (a) inlined with existing rows (Status+Priority pattern), (b) wrapped in
CollapsibleSectionif secondary, or (c) moved to the right column if > 2 lines. Destructive actions are pinned inshrink-0footers outside the scroll area. - Never hide metrics when data is absent. Metric cards (tokens, cost, duration, etc.) must always render with a placeholder value (
—) when data is unavailable — never conditionally hidden. Hiding creates layout shifts, makes it unclear whether the metric exists, and prevents the user from knowing data is missing vs. the field not being relevant. The consistent card grid is part of the UI contract.
Environment
Backend .env: DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD, PORT, SECRET_KEY, DEBUG, AUTH_ENABLED (default: False), JWT_ACCESS_SECONDS, JWT_REFRESH_SECONDS, CORS_ALLOWED_ORIGINS.
Frontend .env: VITE_HARNESS_TIME_API_URL (default: http://localhost:9100), VITE_AUTH_ENABLED (default: false), VITE_INSTANCE (instance label, e.g. dev).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

