Founder Council: seven AI advisors debate your decision in Claude Code
- /founder-council skill: three-round protocol, scoring, and verdict - Seven seat agents with brains built from each expert's public work - The room: a zero-dependency local app that plays councils live from sessions/ - Three example councils to watch before running your own Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
8a6b473934
143 files changed
+12244
No files matched your search
@@ -0,0 +1,28 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
export const APP_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
||||
// Two layouts: nested two folders deep in a larger workspace, or the standalone
|
||||
// student repo (app/ beside .claude/). The kit has .claude one level up.
|
||||
const KIT = fs.existsSync(path.join(APP_ROOT, "..", ".claude", "skills", "founder-council"));
|
||||
export const REPO_ROOT = KIT ? path.resolve(APP_ROOT, "..") : path.resolve(APP_ROOT, "..", "..");
|
||||
export const BRAINS_DIR = path.join(REPO_ROOT, ".claude", "skills", "founder-council", "brains");
|
||||
export const AGENTS_DIR = path.join(REPO_ROOT, ".claude", "agents");
|
||||
export const SESSIONS_DIR = KIT ? path.join(REPO_ROOT, "sessions") : path.join(REPO_ROOT, "projects", "founder-council", "sessions");
|
||||
|
||||
let cache = null;
|
||||
export function env(key) {
|
||||
if (process.env[key]) return process.env[key];
|
||||
if (!cache) {
|
||||
cache = {};
|
||||
const p = path.join(REPO_ROOT, ".env");
|
||||
if (fs.existsSync(p)) {
|
||||
for (const line of fs.readFileSync(p, "utf8").split(/\r?\n/)) {
|
||||
const m = line.match(/^([A-Z0-9_]+)=(.*)$/);
|
||||
if (m && !(m[1] in cache)) cache[m[1]] = m[2].trim();
|
||||
}
|
||||
}
|
||||
}
|
||||
return cache[key] || "";
|
||||
}
|
||||
Reference in new issue
Block a user