Skip to content

Conversation

@Lexpeartha
Copy link
Contributor

Adds AGENTS.md at the project root to provide better context to coding agents

@Lexpeartha Lexpeartha requested a review from zsculac January 15, 2026 15:26
@Balki-OriginTrail Balki-OriginTrail marked this pull request as ready for review January 19, 2026 14:10

# Optional
DKG_BLOCKCHAIN=hardhat1:31337 # Network
DKG_OTNODE_URL=http://localhost:8900 # OT-node
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change comment to dkg-engine

DKG_OTNODE_URL=http://localhost:8900 # OT-node
PORT=9200 # Server port
EXPO_PUBLIC_MCP_URL=http://localhost:9200
EXPO_PUBLIC_APP_URL=http://localhost:8081
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for dev environment, for prod it's also 9200

## Debugging Tips

1. Check `apps/agent/dist/index.js` exists after build
2. Test database: `rm *.db && npm run script:setup`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we instruct the agent that for debugging one of the first it does is delete the db?

@zsculac
Copy link
Contributor

zsculac commented Jan 23, 2026

Looks pretty good @Lexpeartha. A couple of ideas to improve (not all need to be included now, I'll try to sort them by priority):

  1. Instructions for the agent to do after implementing any feature/fix/improvement - e.g. linting, formatting, add new tests if useful, running tests and fixing them if the change broke them
  2. withSourceKnowledgeAssets return when possible to include KA in the responses
  3. registering MCP prompts and resources

app = createExpressApp();

plugin(mockDkgContext, mockMcpServer, express.Router());
await connect();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't we need to mount the router for api tests below this line?
app.use("/", apiRouter);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants